PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Gary Stout on November 29, 2012, 03:20:55 PM

Title: How to Hide/Show Controls on the fly???
Post by: Gary Stout on November 29, 2012, 03:20:55 PM
Can someone give me some clues how to hide a control and how to show a control on the fly? I am creating a series of buttons on a form, but when a particular button is clicked, I need to hide certain buttons. Then, if the Exit button is clicked, I need to re-show the original buttons that were hidden.

Thanks,
Gary
Title: Re: How to Hide/Show Controls on the fly???
Post by: José Roca on November 29, 2012, 04:47:58 PM
ShowWindow (<handle of the control>, %SW_HIDE)
ShowWindow (<handle of the control>, %SW_SHOW)
Title: Re: How to Hide/Show Controls on the fly???
Post by: Gary Stout on November 30, 2012, 03:16:48 AM
Thanks Jose! I will give that a try.
I have been away from FF for a while and right now between projects, so I am trying to get re-acquainted with it.

Thanks again,
Gary