Sign in to follow this  
Followers 0
Enforcer

Houston we got problems

2 posts in this topic

#1 ·  Posted (edited)

Hi all, I have problem, I'm trying to hide/show many controls using 2 hide methods (i posted them)

but they hiding/showing too slowly (As you see my program have many controls and "picture controls" that i need to hide/show verry fast)

I dont have any "Sleeps" in my program but it's still works too slow (to hide all controls it brings over 2 seconds)

What can we do here ? :) Need help...

p.s: sorry for my English.

Func hide_page1a()
For $i = $PG_1 to $Label4bb
GuiCtrlSetState($i, $GUI_HIDE)
Next
EndFunc

Func show_page1a()
For $i = $PG_1 to $Label4bb
GuiCtrlSetState($i, $GUI_SHOW)
Next
EndFunc

Func hide_page1()
GUICtrlSetState ($BLK1, $GUI_HIDE)
GUICtrlSetState ($BLK2, $GUI_HIDE)
GUICtrlSetState ($BLK3, $GUI_HIDE)
GUICtrlSetState ($BLK4, $GUI_HIDE)
GUICtrlSetState ($DOT1, $GUI_HIDE)
GUICtrlSetState ($DOT2, $GUI_HIDE)
GUICtrlSetState ($DOT3, $GUI_HIDE)
GUICtrlSetState ($Label1XA, $GUI_HIDE)
GUICtrlSetState ($Label1XB, $GUI_HIDE)
GUICtrlSetState ($Label2XA, $GUI_HIDE)
GUICtrlSetState ($Label2XB, $GUI_HIDE)
GUICtrlSetState ($Label3XA, $GUI_HIDE)
GUICtrlSetState ($Label3XB, $GUI_HIDE)
GUICtrlSetState ($ICO_LOG, $GUI_HIDE)
GUICtrlSetState ($LAB1, $GUI_HIDE)
GUICtrlSetState ($LAB2, $GUI_HIDE)
GUICtrlSetState ($LAB3, $GUI_HIDE)
GUICtrlSetState ($Label1, $GUI_HIDE)
GUICtrlSetState ($Label1a, $GUI_HIDE)
GUICtrlSetState ($Label1aa, $GUI_HIDE)
GUICtrlSetState ($Label1b, $GUI_HIDE)
GUICtrlSetState ($Label1bb, $GUI_HIDE)
GUICtrlSetState ($Label2, $GUI_HIDE)
GUICtrlSetState ($Label2a, $GUI_HIDE)
GUICtrlSetState ($Label2aa, $GUI_HIDE)
GUICtrlSetState ($Label2b, $GUI_HIDE)
GUICtrlSetState ($Label2bb, $GUI_HIDE)
GUICtrlSetState ($Label3, $GUI_HIDE)
GUICtrlSetState ($Label3a, $GUI_HIDE)
GUICtrlSetState ($Label3aa, $GUI_HIDE)
GUICtrlSetState ($Label3b, $GUI_HIDE)
GUICtrlSetState ($Label3bb, $GUI_HIDE)
GUICtrlSetState ($Label4, $GUI_HIDE)
GUICtrlSetState ($Label4a, $GUI_HIDE)
GUICtrlSetState ($Label4aa, $GUI_HIDE)
GUICtrlSetState ($Label4b, $GUI_HIDE)
GUICtrlSetState ($Label4bb, $GUI_HIDE)
EndFunc
; --------------------------------------------
Func show_page1()
GUICtrlSetState ($BLK1, $GUI_SHOW)
GUICtrlSetState ($BLK2, $GUI_SHOW)
GUICtrlSetState ($BLK3, $GUI_SHOW)
GUICtrlSetState ($BLK4, $GUI_SHOW)
GUICtrlSetState ($DOT1, $GUI_SHOW)
GUICtrlSetState ($DOT2, $GUI_SHOW)
GUICtrlSetState ($DOT3, $GUI_SHOW)
GUICtrlSetState ($Label1XA, $GUI_SHOW)
GUICtrlSetState ($Label1XB, $GUI_SHOW)
GUICtrlSetState ($Label2XA, $GUI_SHOW)
GUICtrlSetState ($Label2XB, $GUI_SHOW)
GUICtrlSetState ($Label3XA, $GUI_SHOW)
GUICtrlSetState ($Label3XB, $GUI_SHOW)
GUICtrlSetState ($ICO_LOG, $GUI_SHOW)
GUICtrlSetState ($LAB1, $GUI_SHOW)
GUICtrlSetState ($LAB2, $GUI_SHOW)
GUICtrlSetState ($LAB3, $GUI_SHOW)
GUICtrlSetState ($Label1, $GUI_SHOW)
GUICtrlSetState ($Label1a, $GUI_SHOW)
GUICtrlSetState ($Label1aa, $GUI_SHOW)
GUICtrlSetState ($Label1b, $GUI_SHOW)
GUICtrlSetState ($Label1bb, $GUI_SHOW)
GUICtrlSetState ($Label2, $GUI_SHOW)
GUICtrlSetState ($Label2a, $GUI_SHOW)
GUICtrlSetState ($Label2aa, $GUI_SHOW)
GUICtrlSetState ($Label2b, $GUI_SHOW)
GUICtrlSetState ($Label2bb, $GUI_SHOW)
GUICtrlSetState ($Label3, $GUI_SHOW)
GUICtrlSetState ($Label3a, $GUI_SHOW)
GUICtrlSetState ($Label3aa, $GUI_SHOW)
GUICtrlSetState ($Label3b, $GUI_SHOW)
GUICtrlSetState ($Label3bb, $GUI_SHOW)
GUICtrlSetState ($Label4, $GUI_SHOW)
GUICtrlSetState ($Label4a, $GUI_SHOW)
GUICtrlSetState ($Label4aa, $GUI_SHOW)
GUICtrlSetState ($Label4b, $GUI_SHOW)
GUICtrlSetState ($Label4bb, $GUI_SHOW)
EndFunc
Edited by Enforcer

[RU] Zone

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0