@RobK
Did you read my message above.
@Guyon
Try calling create hidden command at the begining of the program and then making each individual gadget visible when needed.
example
`%ProjectTitle%
`======================
`©%Author%
`======================
`Main Source File
SET WINDOW TITLE "MyApp"
Setup GUI "MyApp","my init code goes here"
A$ = "Hello"
B$ = "This is a message box"
create hidden
Create Gadget Window 1, 1, "My window", 0
Set Gadget 1, 0,0,600,400
CREATE WITH PARENT 1
CREATE GADGET GROUPBOX 2," my group box"
POSITION GADGET 2,1,0
RESIZE GADGET 2,125,70
CREATE WITH PARENT 2
CREATE GADGET RADIOBUTTON 3
POSITION GADGET 3,5,20
SET GADGET TEXT 3,"Button1"
CREATE GADGET RADIOBUTTON 4
POSITION GADGET 4,5,40
SET GADGET TEXT 4,"Button2"
CREATE WITH PARENT 1
CREATE GADGET GROUPBOX 5," my group box2"
RESIZE GADGET 5,125,70
POSITION GADGET 5,150,0
CREATE WITH PARENT 5
CREATE GADGET RADIOBUTTON 6
POSITION GADGET 6,5,20
SET GADGET TEXT 6,"Button3"
CREATE GADGET RADIOBUTTON 7
POSITION GADGET 7,5,40
SET GADGET TEXT 7,"Button4"
CREATE WITH PARENT 1
CREATE GADGET TEXTAREA 10
RESIZE GADGET 10,125,70
POSITION GADGET 10,1,100
`now make the first gadget window with gadgets visible
show gadget 1
show gadget 2
show gadget 3
show gadget 4
show gadget 5
show gadget 6
show gadget 7
w= x= y= z= 0
DO
w= GADGET CHECKED (3)
x= GADGET CHECKED (4)
y= GADGET CHECKED (6)
z= GADGET CHECKED (7)
ExitLoop = w+x+y+z
IF ExitLoop > 1 then EXIT
loop
If w = 1 and y = 1 then SET GADGET TEXT 10, "Button 1" + chr$(10) + chr$(13) + "Button 3"
If w = 1 and z = 1 then SET GADGET TEXT 10, "Button 1" + chr$(10) + chr$(13) + "Button 4"
If x = 1 and y = 1 then SET GADGET TEXT 10, "Button 2" + chr$(10) + chr$(13) + "Button 3"
If x = 1 and z = 1 then SET GADGET TEXT 10, "Button 2" + chr$(10) + chr$(13) + "Button 4"
sleep 2000
CREATE WITH PARENT 1
MESSAGE A$, B$
sleep 5000
CREATE WITHOUT PARENT
This should be what you are looking for, but if this doesn't work try checking your mouse settings because their is a way that will make the window that the mouse is hovering over active after quite a few milliseconds.
Hopefully this is what you were looking for.