Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar slowwwwwing down app
Message
From
29/09/1998 12:51:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141836
Message ID:
00142004
Views:
29
>>>have one toolbar for the entire app. it has many buttons (too many to show them all at one time.) depending on the form, page, container, etc displayed, the buttons on the toolbar are set visible/enabled =.t. or .f.. can not determine exactly what is slowing down, but know that the toplevelform is resized for each button visible. can actually see the buttons pop around the toolbar. put the visible/enabled in a with, endwith but that did not seem to help. any ideas for speeding this up?
>>>
>>>thanks brenda
>
>>And in addition to lockscreen, first setall("Enabled",.t.,"CommandButton") (or .f. depending which one is more in count) then only disabling those that would be disabled might slightly get things faster. If possible having groups of buttons is also good for speeding up (ie: totally groups could be enabled/disabled).
>>Cetin
>
>good suggestion about the setall. will try it.
>
>if you disable groups, are the buttons turned gray. visually can you tell that the button is disabled?
>
>are toolbars known to be slow?
>
>thanks - brenda
Brenda,
Interesting results. Tested up to 1000 buttons with pictures selected randomly, enabled/disabled randomly. Indiviual buttons :
-As count doubles total showup time triples.
200 buttons showup time 7-8 secs
100 buttons showup time 2-3 secs
50 buttons showup time LT 1 secs

-Enable/disable is near instant (like blinking control panels at Houston space center).
Commandgroup each having 5 buttons :
- Showup time dramatically reduced !
1000 buttons 40 secs
500 buttons 8-9 secs
250 buttons 2-3 secs
50 buttons LT 0.5 secs
-Enable/disable OTOH slower. Still fast but not faster than fingers playing piano. Overall enable/disable seem faster (fast enough didn't measured).
BTW for tests I do cleared resources and testing sequence didn't make difference.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform