Sign in to follow this  
Followers 0
program builder

need help with double next and back buttons.

1 post in this topic

#1 ·  Posted (edited)

this is the part of the code that i think is messed up. I created the buttons already

next and back work just fine

however when I do the next 100 it errors out, if there is no more to go to.

Here is the code. Could someone please help?

Func Set_Next()

For $x = 1 To $children - 1

$Nwin = WinGetState($Child_[$x])

If $Nwin > 5 Then

GUISetState(@SW_HIDE, $Child_[$x])

GUISetState(@SW_SHOW, $Child_[$x + 1])

Return

EndIf

Next

EndFunc ;==>Set_Next

Func Set_Back()

For $x = 1 To $children - 1

$Nwin = WinGetState($Child_[$x])

If $Nwin > 5 Then

GUISetState(@SW_HIDE, $Child_[$x])

GUISetState(@SW_SHOW, $Child_[$x - 1])

Return

EndIf

Next

endfunc

Func Set_next100()

For $x = 1 To $children - 1

$Nwin = WinGetState($Child_[$x])

If $Nwin > 5 Then

GUISetState(@SW_HIDE, $Child_[$x])

GUISetState(@SW_SHOW, $Child_[$x + 10])

Return

EndIf

Next

endfunc

Func Set_Back100()

For $x = 1 To $children - 1

$Nwin = WinGetState($Child_[$x])

If $Nwin > 5 Then

GUISetState(@SW_HIDE, $Child_[$x])

GUISetState(@SW_SHOW, $Child_[$x - 10])

Return

EndIf

Next

endfunc

Func _IsChecked($control)

Return BitAND(GUICtrlRead($control), $GUI_CHECKED) = $GUI_CHECKED

EndFunc

Edited by program builder

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