BBC BASIC for Windows
« Sizing the root window »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:19pm



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: Sizing the root window  (Read 673 times)
g3nrw
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 74
xx Sizing the root window
« Thread started on: May 12th, 2014, 8:00pm »

I have been writing an app that follows the model in the example program DLGDEMO.BBC, creating a child window based on:

dlg%=FN_newdialog("Dialogue box", 20, 20, 160, 128, 8, 560)

To accommodate all the controls, I have had to increase the size parameter from 560 to 6000.

Everything works fine.

I now want to run the application in the root window, without creating a child, but when it starts it complains there is not enough room to display the dialog box. How do I supply a size parameter to the root window to make it large enough?

--
Ian
User IP Logged

rtr
Guest
xx Re: Sizing the root window
« Reply #1 on: May 12th, 2014, 8:14pm »

on May 12th, 2014, 8:00pm, g3nrw wrote:
I now want to run the application in the root window, without creating a child

Why? Dialogue boxes provide facilities that the mainwin doesn't, notably the ability to navigate from one control to another using Tab (forwards) or Shift+Tab (backwards) and support for a 'default' pushbutton. Losing those facilities is a high price to pay.

Could you not achieve the effect you want by keeping the dialogue box, but 'docking' it to the mainwin as described in the documentation here:

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwini.html#hint14

Richard.
User IP Logged

g3nrw
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 74
xx Re: Sizing the root window
« Reply #2 on: May 12th, 2014, 9:03pm »

on May 12th, 2014, 8:14pm, Richard Russell wrote:
Could you not achieve the effect you want by keeping the dialogue box, but 'docking' it to the mainwin as described in the documentation here:

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwini.html#hint14

Richard.


Just the job. I had overlooked the Hints section of the documentation.

I've said this before, and I'm sure I'll say it again: the more I learn about BBC Basic, the more I like it. Thanks Richard.

--
Ian
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