BBC BASIC for Windows
« POP_UP windows »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:49pm

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 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: POP_UP windows  (Read 122 times)
Full Member

member is offline



Gender: Male
Posts: 136
xx POP_UP windows
« Thread started 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
User IP Logged

It's always possible, but not necessarily how you first thought. Chin up and try again.

member is offline



Gender: Male
Posts: 321
xx Re: POP_UP windows
« Reply #1 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,

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