jpm 93 Posted March 25, 2004 What is the reasonable maximum number of control that AutoIt-gui must provide? Today is small 100. I have no idea of the impact on the size when running a script. Thanks to comment why the limit should such or such. Share this post Link to post Share on other sites
alawoona 0 Posted March 25, 2004 I do not know thye answer JP - but the most controls I have used in a script was 74. Share this post Link to post Share on other sites
Holger 14 Posted March 25, 2004 (edited) @jpm: I have a script which has between 95 and 107 controls. The most of them are checkboxes. It's like an software-choose-screen, there you can choose SW to delete from an preinstalled pc which has preinstalled sw on it you know. So I don't know if 100 should be the highest control-number... Edited March 25, 2004 by Holger Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
Jon 1,009 Posted March 25, 2004 For these I always go to the nearest "binary" number and then double it. So 107...nearest is 128 so max controls = 256. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
CyberSlug 6 Posted March 26, 2004 256 ought to be enough for anybody You heard it here first. If I'm wrong, I'll take the blame Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Valik 478 Posted March 26, 2004 We really need some sort of generic container to store this kind of stuff internally so there doesn't need to be a limit. I did have something I was working on that allocated things in blocks to try to minimize both re-allocation and wasted space, but it was being very mean to me. It was difficult to get iterators working and they were pretty much mandatory as operator[] was unsafe. Maybe I should go back and look at it again and try to get it working... Share this post Link to post Share on other sites
Nutster 3 Posted March 26, 2004 One of my VB students once ran into VB's limitation of 255 controls on a form. He wanted to put about 300 controls on a form. So he split it, with my recommendation, into a series of screens based on functionality, essentially a wizard. I think a limit of 255 control would also work for AutoItGUI. It would also allow for an optimization of using 1 byte for the count/identity of controls (0-255). Of course, a window with no controls is a little boring. David NuttallNuttall Computer ConsultingAn Aquarius born during the Age of AquariusAutoIt allows me to re-invent the wheel so much faster.I'm off to write a wizard, a wonderful wizard of odd... Share this post Link to post Share on other sites
Lazycat 13 Posted March 26, 2004 The maximum controls I have in one script with AU3GUIXP was 232 controls - this is was 21x11 matrix of buttons + another one. This is an extremal case and I don't think I will need more, but who knows... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Share this post Link to post Share on other sites
Jon 1,009 Posted March 26, 2004 So, 232, nearest number is 256 = 512 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
jpm 93 Posted March 26, 2004 So, 232, nearest number is 256 = 512 The mean of the vote as the same trend.Did you see the colored labels?That I think end my evolution on GUI. It will be yours soon. Share this post Link to post Share on other sites