BBC BASIC for Windows
« 64bit Applications »

Welcome Guest. Please Login or Register.
Apr 6th, 2018, 12:12am



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: 64bit Applications  (Read 836 times)
Katogoon
Guest
xx 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?

User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx 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.
User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx 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
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