BBC BASIC for Windows
General >> General Board >> Hiding a Button
http://bb4w.conforums.com/index.cgi?board=general&action=display&num=1410598475

Hiding a Button
Post by swalters on Sep 13th, 2014, 08:54am

I need to hide a button but not to close it.
ie with
PROC_closewindow(button1%)

Button was created using;

button1% = FN_button("Edit Price", 450,81,70,20, FN_setproc(PROCedit1), 0)

I suppose it would be similar to Hide dialog but I cannot find anything, Cheers Simon
Re: Hiding a Button
Post by rtr2 on Sep 13th, 2014, 10:11am

on Sep 13th, 2014, 08:54am, swalters wrote:
I need to hide a button

ShowWindow should do it:

Code:
      SYS "ShowWindow", button1%, SW_HIDE 

(use the Add Windows Constants utility to add the declaration for SW_HIDE).

P.S. This question would have been better posted in the User Interface board. Please only post in 'General' if none of the other categories apply.