Strange DisableGadget()
Posted: Fri Sep 18, 2015 7:14 am
When I open a new window, I want to disable the gadgets on the previous window, I do it like this:
When I execute code below, it just stops after 1 gadget, while I'm sure that (most of) the gadgets are initiated!
What am I doing wrong?
Code: Select all
Enumeration
#imgLocatie = 10
#imgLogo = #imgLocatie + 20
#imgAdd
#imgDel
#imgEdit
#imgMail
#imgLoading
#MainGadgetsStart ;------------------------
#gimLogo
#gimLocatie
#gimLoading
#gimgAddv
#gimgDelv
#gimgEditv
#gimgMailv
#gimgAddk
#gimgDelk
#gimgEditk
#prgLaden
#Panel
#MainGadgetsEnd ;------------------------
#txtLocatie
#cmbLocatie
#txtWachtwoord
#strWachtwoord
#btnInloggen
#txtLoginError
#lstDeeln
#frmDeeln
#lstVrij
EndEnumeration
Code: Select all
For g = #MainGadgetsStart To #MainGadgetsEnd
If IsGadget(g)
DisableGadget(g,1)
EndIf
Next g