Page 1 of 1
Posted: Mon Jan 14, 2002 1:49 pm
by BackupUser
Restored from previous forum. Originally posted by Saint.
Hi,
How can I delete a Text or String Gadget from my Window? Is there any command?
CU
Posted: Tue Jan 15, 2002 4:20 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
How can I delete a Text or String Gadget from my Window? Is there any command?
There's no built-in command, but if you're using the Windows version of PureBasic
then you can hide any gadget with the ShowWindow_() API. To do it, you must
create your gadget with a leading handle like this:
r=StringGadget(...
Then, to hide it, use this code:
ShowWindow_(r,#SW_HIDE)
Note that you can use #SW_SHOW to re-show it again later, if you wish.
PB - Registered PureBasic Coder
Posted: Tue Jan 15, 2002 4:49 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
You can use FreeGadget(#Gadget).
Fred - AlphaSND
Posted: Tue Jan 15, 2002 5:50 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
You can use FreeGadget(#Gadget).
Oops, I totally overlooked this command!
Fred, will a future update support a command like GadgetVisible?
PB - Registered PureBasic Coder
Posted: Tue Jan 15, 2002 6:19 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
Why not..
Fred - AlphaSND
Posted: Tue Jan 15, 2002 9:18 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
Why not..
Damn you're great!
I used to request stuff to Microsoft for Visual Basic, but they NEVER listened.
They even have a "wish" E-Mail address but nothing ever comes of using it, no
matter how many people try (and believe me, a lot of us have).
So it's fantastic to have such dedication to a product like you do.
PB - Registered PureBasic Coder