BBC BASIC for Windows
Programming >> Libraries >> POP_UP windows
http://bb4w.conforums.com/index.cgi?board=libraries&action=display&num=1519770294
POP_UP windows
Post by Ric on Feb 27th, 2018, 9:24pm
In the example program MULTIDEM.BBC the main window opens with four pop_up windows. I can not see a way of closing them. Is it possible to change the style so they have minimise, maximaise and close buttons?
Regards Ric
Re: POP_UP windows
Post by DDRM on Feb 28th, 2018, 10:53am
Hi Ric,
You can close them with the PROC_closewin(n%), as long as it isn't the currently selected window.
To change the window style you'd need to alter the values of the windows style and/or the extended windows style, which are the parameters s% and e%. However, it's possible that the buttons you want aren't allowed for pop-up windows? It looks like adding &30000 to the window style should add WS_MINIMIZEBOX and WS_MAXIMIZEBOX, though it doesn't seem to, and I can't see a code for "close window box".
As usual, if you want to know stuff like that, Richard is probably your best port of call if MSDN doesn't help enough...
Best wishes,
D