Advertisement

Results for "Author: tom pydeski"

C_Volume2 #73047
Print Directory

My friend Carlos was after me to write something to print and save directories that he could then use to make labels for cds full of mp3s. i looked at what was on psc and found one but modified it greatly. sorry, i dont know who the original author was, but this is not even close to what he had. instead of just listing the files, the list contains the size and date of the file this was accomplished using tabs to separate the data within each list item. the tabstops then had to be set for the longest entry in each column i then added the option buttons to sort by filename; size; extension; or date. Additionally, the 10 last directories are stored as well as any additional filters for the file list. An option for displaying the file names only will use a different unsorted listbox (you cant change the sort property at run time) to contain only the file names in the order they appear in the directory (un-sorted) If a right click menuitem is added to explorer, the program can be launched to print the directory. try putting a directory name in the command line option (goto project; properties; and the make tab and put something like C:\WINDOWS\CONFIG\ in the command line arguments The original had drag and drop, so i left that in.

C_Volume2 #77754
AutoSetHTML

This program will save the field entry data on html web pages and will reload that data again if desired. (I got tired of filling out the same forms day after day, even with using the autocomplete for Internet Explorer.) Enter a URL and press enter to navigate there. Fill out the form and click the "Read Values" button. You will be prompted to save the data to a file (I made the web url the defult name of the file). When you navigate again later, you can click the "Set Values" and the form will be filled out after the proper data file is opened. At launch, the program reads the last stored data and puts it in at the last visited page. Re-Uploaded 1/22/2003. Fixed a few bugs and added a recent url list under the file menu.

C_Volume2 #80159
XP CommandButton with Picture

Another Method of putting a picture in a command button with style set to normal (to preserve XP skin-ability). This is in response to a posting by Abílio Rodrigues "A Command Button with Icon (XP)" at http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=57116&lngWId=1. I tried to post it as a comment on his posting, but received an email saying it did not work. So, it's easier to just upload it as a zip. This works for XP, but might work in other OS's.

Java_Volume1 #87456
ModBus Communications Protocol

This one is mostly for Controls Engineers. Emerson Control Techniques manufactures Servo drives that communicate via the ModBus Protocol. This was and old GWBasic version of the protocol that I think I got from Taylor Software 10 years ago. I have adapted it for VB 6.0 (Win XP is my OS) using flexgrid to display the register contents. I also set this demo up to poll the physical I/O and velocity of an Emerson EN-208 Base drive. It can be adapted to communicate with any serial device that uses the ModBus Protocol.

Java_Volume1 #87849
Grid Highlight

This code is in response to a question from armbararan, who wanted to highlight the navigation of the flex grid. I threw this together from some of my other projects as a quick example to allow highlighting of gridrow and gridcol in the msflexgrid.

Java_Volume1 #87854
Binary Reflected Gray Code Conversion

Example to convert Decimal to Binary Reflected Gray Code. I did some poking around and found some info, but could not find any examples in visual basic. I took the C examples and converted them to VB. I only tried it up to a byte leve(255) Can probably easily be changed to convert integers and larger, but for my purpose, 255 was enough.

Java_Volume1 #88948
RecentDocList Retriever

Updated 12/28/2004 Added the ability to delete all values in a selected node. Also added the typedURLs key and runMRU key 'This Program will read the Recent Doc List located in the registry at: 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs 'This data is stored in a binary format, so we have to read the binary data into 'a byte array and build it into strings. 'As with all of my submissions, I have utilized code found on PSC and elsewhere 'for various functions, but the rest was written by me. 'Special thanks to Kegham, whose Winstartup 2004 project had some valuable code 'for enumerating and walking through registry keys and for some treeview pointers 'and to MrBoBo who also had some very useful code for the registry 'also to David Sykes for his XP style module that i have implemented in all 'of my projects for that XP Look 'once the key values are loaded into the list, pressing delete will delete the selected 'entry from the registry. '

Java_Volume1 #90545
API Listbox as Inputbox Replacement

This Code was written by Dave Andrews and modified by Tom Pydeski It is an api form with a listbox which can be used as an inputbox replacement where the user is presented with a list of choices in a listbox form instead of the standard inputbox. modifications include: made list 3d automatically size list based on the number of entries and the width of the longest entry added the keystroke capability added the option of changing the font to that of the calling form or any of its container controls that support .textheight. added double click capability to the list

Java_Volume1 #91309
Center Text in the Windows Titlebar

This code will read the active titlebar height and font parameters. The Caption of the window is then centered with the date and time. I looked long and hard to try to do this. Most PC's don't use a proportional font for the titlebar and thus the amount of characters displayed depend on the size of the character (i.e. "WWWWWWWWWW" is wider than "llllllllll" in most non-proportional fonts). I found some info on the web and modified it to allow the caption to be centered in the area between the titlebar bitmap and the 3 controlboxes. The Titlebar size and the titlebar font & size can be different from machine to machine. These settings affect how much data can be displayed in the caption of the window, as does the screen resolution. I had originally tried constants based on the form width, but these were not 100%. Try changing the form size and the active title bar settings to see it in operation.

Java_Volume1 #91591
Print Directory

My friend Carlos was after me to write something to print and save directories that he could then use to make labels for cds full of mp3s. i looked at what was on psc and found one but modified it greatly. sorry, i dont know who the original author was, but this is not even close to what he had. instead of just listing the files, the list contains the size and date of the file this was accomplished using tabs to separate the data within each list item. the tabstops then had to be set for the longest entry in each column i then added the option buttons to sort by filename; size; extension; or date. Additionally, the 10 last directories are stored as well as any additional filters for the file list. An option for displaying the file names only will use a different unsorted listbox (you cant change the sort property at run time) to contain only the file names in the order they appear in the directory (un-sorted) If a right click menuitem is added to explorer, the program can be launched to print the directory. try putting a directory name in the command line option (goto project; properties; and the make tab and put something like C:\WINDOWS\CONFIG\ in the command line arguments The original had drag and drop, so i left that in.

Java_Volume1 #96298
AutoSetHTML

This program will save the field entry data on html web pages and will reload that data again if desired. (I got tired of filling out the same forms day after day, even with using the autocomplete for Internet Explorer.) Enter a URL and press enter to navigate there. Fill out the form and click the "Read Values" button. You will be prompted to save the data to a file (I made the web url the defult name of the file). When you navigate again later, you can click the "Set Values" and the form will be filled out after the proper data file is opened. At launch, the program reads the last stored data and puts it in at the last visited page. Re-Uploaded 1/22/2003. Fixed a few bugs and added a recent url list under the file menu.

Java_Volume1 #98703
XP CommandButton with Picture

Another Method of putting a picture in a command button with style set to normal (to preserve XP skin-ability). This is in response to a posting by Abílio Rodrigues "A Command Button with Icon (XP)" at http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=57116&lngWId=1. I tried to post it as a comment on his posting, but received an email saying it did not work. So, it's easier to just upload it as a zip. This works for XP, but might work in other OS's.

1_2002 #106093
AutoSetHTML

This program will save the field entry data on html web pages and will reload that data again if desired. (I got tired of filling out the same forms day after day, even with using the autocomplete for Internet Explorer.) Enter a URL and press enter to navigate there. Fill out the form and click the "Read Values" button. You will be prompted to save the data to a file (I made the web url the defult name of the file). When you navigate again later, you can click the "Set Values" and the form will be filled out after the proper data file is opened. At launch, the program reads the last stored data and puts it in at the last visited page.

1_2002 #106094
API Listbox as Inputbox Replacement

This Code was written by Dave Andrews and modified by Tom Pydeski It is an api form with a listbox which can be used as an inputbox replacement where the user is presented with a list of choices in a listbox form instead of the standard inputbox. modifications include: made list 3d automatically size list based on the number of entries and the width of the longest entry added the keystroke capability added the option of changing the font to that of the calling form or any of its container controls that support .textheight. added double click capability to the list

1_2002 #106095
Center Text in the Windows Titlebar

This code will read the active titlebar height and font parameters. The Caption of the window is then centered with the date and time. I looked long and hard to try to do this. Most PC's don't use a proportional font for the titlebar and thus the amount of characters displayed depend on the size of the character (i.e. "WWWWWWWWWW" is wider than "llllllllll" in most non-proportional fonts). I found some info on the web and modified it to allow the caption to be centered in the area between the titlebar bitmap and the 3 controlboxes. The Titlebar size and the titlebar font & size can be different from machine to machine. These settings affect how much data can be displayed in the caption of the window, as does the screen resolution. I had originally tried constants based on the form width, but these were not 100%. Try changing the form size and the active title bar settings to see it in operation.

2_2002-2004 #114603
ModBus Communications Protocol

This one is mostly for Controls Engineers. Emerson Control Techniques manufactures Servo drives that communicate via the ModBus Protocol. This was and old GWBasic version of the protocol that I think I got from Taylor Software 10 years ago. I have adapted it for VB 6.0 (Win XP is my OS) using flexgrid to display the register contents. I also set this demo up to poll the physical I/O and velocity of an Emerson EN-208 Base drive. It can be adapted to communicate with any serial device that uses the ModBus Protocol.

2_2002-2004 #114996
Grid Highlight

This code is in response to a question from armbararan, who wanted to highlight the navigation of the flex grid. I threw this together from some of my other projects as a quick example to allow highlighting of gridrow and gridcol in the msflexgrid.

2_2002-2004 #115001
Binary Reflected Gray Code Conversion

Example to convert Decimal to Binary Reflected Gray Code. I did some poking around and found some info, but could not find any examples in visual basic. I took the C examples and converted them to VB. I only tried it up to a byte leve(255) Can probably easily be changed to convert integers and larger, but for my purpose, 255 was enough.

2_2002-2004 #116095
RecentDocList Retriever

Updated 12/28/2004 Added the ability to delete all values in a selected node. Also added the typedURLs key and runMRU key 'This Program will read the Recent Doc List located in the registry at: 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs 'This data is stored in a binary format, so we have to read the binary data into 'a byte array and build it into strings. 'As with all of my submissions, I have utilized code found on PSC and elsewhere 'for various functions, but the rest was written by me. 'Special thanks to Kegham, whose Winstartup 2004 project had some valuable code 'for enumerating and walking through registry keys and for some treeview pointers 'and to MrBoBo who also had some very useful code for the registry 'also to David Sykes for his XP style module that i have implemented in all 'of my projects for that XP Look 'once the key values are loaded into the list, pressing delete will delete the selected 'entry from the registry. '

2_2002-2004 #117692
API Listbox as Inputbox Replacement

This Code was written by Dave Andrews and modified by Tom Pydeski It is an api form with a listbox which can be used as an inputbox replacement where the user is presented with a list of choices in a listbox form instead of the standard inputbox. modifications include: made list 3d automatically size list based on the number of entries and the width of the longest entry added the keystroke capability added the option of changing the font to that of the calling form or any of its container controls that support .textheight. added double click capability to the list

Languages
Top Categories
Global Discovery