BBC BASIC for Windows
« Hiding a Button »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:45pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Hiding a Button  (Read 529 times)
swalters
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Hiding a Button
« Thread started 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
User IP Logged

rtr2
Guest
xx Re: Hiding a Button
« Reply #1 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.
« Last Edit: Sep 13th, 2014, 10:13am by rtr2 » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls