Author |
Topic: How to spawn 1-3 child windows for graphics (Read 495 times) |
|
19Grumpah42
Junior Member
member is offline


Gender: 
Posts: 57
|
 |
How to spawn 1-3 child windows for graphics
« Thread started on: Sep 3rd, 2009, 05:25am » |
|
Hello BBC World Service!  I could use some help with Win SYS API calls. I have pop-ups and file-opens working fine, now I need to open (and draw to) a series of child (?) windows which stay open as long as the user wants. I have loaded WINLIB3 and D3DLIB and MDILIB. I have tried my aging best to set up for MDI multiple windows. I have noted, and incorporated, the need to close these (especially if error). I am starting with only one child window, and think I have passed hwindow% correctly. I am getting one too many windows opened (but not the regular "console" window) and nothing gets written to anything (using PRINT ".."as a simple test). Do I need to use the MDI routines to achieve my goal? Is there perhaps some example code which will do only what I want (i.e. a minimal listing)? Any help a bonus when in despair of ignorance.  --Grahame
|
|
Logged
|
C-2-Q 3GB, C-2-Duo 2GB, both GeForce 9500 GT, WinXP sp3. Two Linux Ubuntu boxes (rock solid, lean and mean, but they won't run BB4W!).
|
|
|
Michael Hutton
Developer
member is offline


Gender: 
Posts: 248
|
 |
Re: How to spawn 1-3 child windows for graphics
« Reply #1 on: Sep 3rd, 2009, 05:55am » |
|
Grahame,
Richard has uploaded pipeclient in the files/micellaneous area of the Yahoo group. His original message on the group was:
Quote:
I can't actually locate it at the moment because the Yahoo search facility seems to be down, so I can't give you the message number.
I hope this is what you are looking for.
Michael
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: How to spawn 1-3 child windows for graphics
« Reply #2 on: Sep 3rd, 2009, 08:40am » |
|
Quote:I need to open (and draw to) a series of child (?) windows which stay open as long as the user wants. |
|
What kind of 'drawing' do you want to do to these Windows? If the drawing can be easily achieved using Windows API (GDI) calls then the simplest way to achieve what you want is probably to use 'Picture Boxes' (Static Controls with the SS_BITMAP style) as your child windows.
If you want to do 'BBC BASIC-style' drawing (i.e. using the built-in graphics features of BB4W) then it gets more difficult. The MDI approach might work, but Windows isn't very flexible when it comes to adapting MDI to slightly out-of-the-ordinary uses.
As Michael says, you could use the pipeserver/pipeclient approach, but that does mean each of your 'child' windows would be running as a separate process, which might be considered overkill.
If you can explain in a little more detail exactly what you want to achieve I should be able to help further.
Richard.
|
|
Logged
|
|
|
|
|