Author |
Topic: Multiple windows run from a BBC BASIC program (Read 1288 times) |
|
simong42
New Member
member is offline


Posts: 14
|
 |
Re: Multiple windows run from a BBC BASIC program
« Reply #4 on: May 19th, 2011, 08:40am » |
|
I got sidetracked from this, and have only just got back to it, so forgive the time lapse.
Just to repeat the requirement : I need to have a master window, which can be used for text input and graphics display, and a couple of child windows, which should be scrollable, and which will be used solely for text output.
I'm not sure about dialogue boxes ... isn't it the case that you click on OK or some such, and the box disappears? I'd like the child windows to be on display as long as the program is running.
I started experimenting with MULTIWIN instead, and with scrolling instead, but i'm not sure if the scrolling can be set up with the child windows.
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Multiple windows run from a BBC BASIC program
« Reply #5 on: May 19th, 2011, 11:08am » |
|
on May 19th, 2011, 08:40am, simong42 wrote:| I need to have a master window, which can be used for text input and graphics display, and a couple of child windows, which should be scrollable, and which will be used solely for text output. |
|
Sounds like a couple of scrollable Edit Boxes would be ideal. If you don't want the user to be able to modify their contents set them to Read Only. If you want to populate the edit boxes 'one line at a time' rather than all at once that's easily arranged.
Quote:| I'm not sure about dialogue boxes |
|
There's no need to use dialogue boxes at all. Simply create two ordinary multi-line Edit Boxes (FN_editbox in WINLIB5) and you're done. If you want things like coloured text then use Rich Edit Controls instead, but that's slightly more complicated.
Quote:| I started experimenting with MULTIWIN |
|
I don't think MULTIWIN is well-suited to your application.
Richard.
|
|
Logged
|
|
|
|
simong42
New Member
member is offline


Posts: 14
|
 |
Re: Multiple windows run from a BBC BASIC program
« Reply #6 on: May 23rd, 2011, 07:30am » |
|
Thanks for that. I've got multiple edit windows working, but still need to get the scrolling bit done. I presume this is driven by the 'style' parameter - how can I achieve this?
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Multiple windows run from a BBC BASIC program
« Reply #7 on: May 23rd, 2011, 08:19am » |
|
on May 23rd, 2011, 07:30am, simong42 wrote:| Thanks for that. I've got multiple edit windows working, but still need to get the scrolling bit done. I presume this is driven by the 'style' parameter - how can I achieve this? |
|
To enable scroll bars add WS_HSCROLL and WS_VSCROLL to the style (the Add Windows Constants utility will give you their values).
|
|
Logged
|
|
|
|
simong42
New Member
member is offline


Posts: 14
|
 |
Re: Multiple windows run from a BBC BASIC program
« Reply #8 on: Jan 16th, 2012, 09:15am » |
|
In the event, I plumped for a couple of child windows using MULTIWIN. I can position the child windows on creation - is there any way I can set the position of the parent window?
|
|
Logged
|
|
|
|
|