I want some pushbuttons in the main windows of my application. I did a test with the XDEMO.PRG source.
I added the following code in xdemo.prg on line 190.
Code: Select all
@ 50,50 dcpushbutton ;
Size 150,150 ;
Parent oDialog ;
Caption "TESTING" ;
ACTION {|o| msgbox("I'm clicked") } pixel
When I select an option in the menu, the button stays there as you can see below.
How can I prevent this?