strate Posted February 27, 2006 Share Posted February 27, 2006 Is it possible to create a GUI that has check boxes inside of a edit control? I want to create something that is the same as the FileOpenDialog except that if the user wants to select multiple items instead of holding ctrl they just check the boxes. Maybe this is to ambitious (SP?) INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Sokko Posted February 27, 2006 Share Posted February 27, 2006 One might raise the question "What's wrong with holding Ctrl?" but there's always a reason I guess. At any rate, the most flexible solution would probably be a ListView with the $LVS_EX_CHECKBOXES extended style, but I am a little unclear on exactly how this works so you might need to dig around in the help files (and make liberal use of the ListView UDF collection). As far as I know there isn't any really simple or easy way to just bring up a file selection dialog with checkboxes for each file, so if using Ctrl is only a minor inconvenience then I'd say go with that. Link to comment Share on other sites More sharing options...
strate Posted February 27, 2006 Author Share Posted February 27, 2006 Using ctrl is a pain because clicking on 30 or so files and you mess up one then you have to start over, it sucks. We have over 7500 different files to choose from so its easier to print in lots. I'll look into what has been suggested thanks, I had nothing to go on. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Stumpii Posted February 27, 2006 Share Posted February 27, 2006 Use a listview with checkboxes? “Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
strate Posted February 28, 2006 Author Share Posted February 28, 2006 So far it looks like it might work i need to see if i can get horizontial scroll bar in it. Will one be created? INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Valuater Posted February 28, 2006 Share Posted February 28, 2006 So far it looks like it might work i need to see if i can get horizontial scroll bar in it. Will one be created?yes8) Link to comment Share on other sites More sharing options...
greenmachine Posted February 28, 2006 Share Posted February 28, 2006 Hmm, I wonder if strate realizes that you can click on a file a second time while holding control and it will deselect the file... Link to comment Share on other sites More sharing options...
Sokko Posted February 28, 2006 Share Posted February 28, 2006 Hmm, I wonder if strate realizes that you can click on a file a second time while holding control and it will deselect the file...A good point. Also, while you can use horizontal scrollbars with a ListView control, it's only for the purposes of scrolling sideways to view more of the same list item (if the text or columns are too long to fit in the control). You can't get the "look and feel" of a file selection dialog with sideways scrolling to view more files, you'll have to go with a long vertical list of filenames. Link to comment Share on other sites More sharing options...
strate Posted February 28, 2006 Author Share Posted February 28, 2006 (edited) Hmm, I wonder if strate realizes that you can click on a file a second time while holding control and it will deselect the file...greenmachine brought jokes to the topic, lol. Yes I realize that, this idea is to prevent the user from clicking in a area and deselecting everything. Edited February 28, 2006 by strate INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
strate Posted February 28, 2006 Author Share Posted February 28, 2006 Well nevermind about that whole idea I just tried to create a GUI for this and AutoIt crashed out. I must be hitting a limit considering I'm trying to create roughly 7500 GUICtrlCreateListViewItems INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Stumpii Posted February 28, 2006 Share Posted February 28, 2006 Have a drop down box that filters the list by first char (A, B, C)? Have a drop down box that filters the list by extension? Randomly select x% of the total files to show to the user? Filter by file size? Date? I think that if you need more help, you will need to give more details on how you select what files you want from the 7500. “Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
strate Posted February 28, 2006 Author Share Posted February 28, 2006 Have a drop down box that filters the list by first char (A, B, C)?Have a drop down box that filters the list by extension?Randomly select x% of the total files to show to the user?Filter by file size? Date?I think that if you need more help, you will need to give more details on how you select what files you want from the 7500.The 7500 files are processes we use here at work to produce product for the customer. The only method we have of choosing the files we print is from our production schedule. I was trying to complete this part before I made it so that it only shows the files that match the ones on the schedule. Now due to this limitation I need to work the other way around. Get the schedule into a format that is readable by autoit then use that to pull the files needed out of the directory. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Stumpii Posted February 28, 2006 Share Posted February 28, 2006 Well good luck! “Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
strate Posted February 28, 2006 Author Share Posted February 28, 2006 (edited) Well good luck!Lol thanks Edited February 28, 2006 by strate INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
randallc Posted March 1, 2006 Share Posted March 1, 2006 (edited) Hi,I may have some ideas here for you too..Well nevermind about that whole idea I just tried to create a GUI for this and AutoIt crashed out. I must be hitting a limit considering I'm trying to create roughly 7500 GUICtrlCreateListViewItemsIf you look at my signature, the last link shows GUI showing only one page at a time of a limitless number of items, using a text file of a directory list.also SQL_View in the UDF shows an index of C drive with 200,000 files, using SQL; though could have used text files if I didn't want to sort.Selecting the files, as Stumpi says, I'd need more info.Best, RandallPS I haven't tried the check boxes; did you get that to work? Edited March 1, 2006 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now