Author |
Topic: 64bit Applications (Read 839 times) |
|
Katogoon
Guest
|
 |
Re: 64bit Applications
« Reply #4 on: Jul 2nd, 2013, 3:31pm » |
|
Hi Richard,
After looking at these examples they don't actually refer to any function for creating a window I presume this is created automatically, is this something thats interal to BB4W only or is this how the Windows API works?
Is this documented any where for beginners like myself?
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: 64bit Applications
« Reply #5 on: Jul 2nd, 2013, 6:09pm » |
|
on Jul 2nd, 2013, 3:31pm, Guest-Katogoon wrote:| After looking at these examples they don't actually refer to any function for creating a window |
|
Applications having more than one window are relatively rare. If you take Notepad, for example, it basically has just the one main window in which the document is displayed. The rest of the user interface consists of standard elements like menu bars, toolbars, status bars and dialogue boxes.
I would encourage you to design your application in this style if possible. Doing so has advantages both for you as the programmer and for the user, because this 'single main window' style is the basis for much of the standard Windows GUI.
If multiple windows are unavoidable then you will need to decide whether to use the old Multiple Document Interface (MDI) style of application - as typified by early versions of Microsoft Word - or to 'roll your own'. Either way it will be considerably more work than a single-window application.
Richard.
|
|
Logged
|
|
|
|
DDRM
Administrator
member is offline


Gender: 
Posts: 321
|
 |
Re: 64bit Applications
« Reply #6 on: Jul 4th, 2013, 08:29am » |
|
Hi Katogoon,
I'm guessing you may not actually have tried using BB4W yet, so some of these comments may be a bit simplistic if you have: forgive me. Why not try the trial version, and see what it can do? Then you can look at how these things work.
If you want to create a dialogue box (which is a new window in which you can place additional components, such as a text box, or buttons), have a look at the section in the manual on dialogue boxes: it's in the section on library routines.
If you want to use this approach you will need to install WINLIB2, and then use the FN_newdialog that provides - it's all pretty well explained in the manual.
You may also want to look at the section on docking a dialogue box: that way you can "attach" the new dialogue box to the main window of your application.
Having said all that, if your application is mainly text-based is there any reason you can't just use the standard BB4W output window for your output? It will run just fine, in a well-behaved window. You can later add menus, toolbars etc - look for the relevant sections of the manual. Or, once the program does what you want, and you feel more comfortable with the way BB4W works, you could convert it to use a dialogue box interface.
Best wishes,
D
|
|
Logged
|
|
|
|
|