BBC BASIC
« GUI library for bbcsdl? »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:43pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: GUI library for bbcsdl?  (Read 52 times)
PatrickM
New Member
Image


member is offline

Avatar




PM


Posts: 14
xx GUI library for bbcsdl?
« Thread started on: Mar 18th, 2018, 12:24am »

Hello,

I notice that the SDLide has a pretty full featured GUI.

I'm wondering, is the code used to create the GUI (the menubar, the status bar, toolbar, entry boxes, scrollbars, etc) a library that's made available for use by users of bbcsdl?
Or is it code that you made specially for sdlide, that's not intended for use by other people?

If it is a library that's intended for use by users of bbcsdl, what's the name of the library, and is there a page of information about how to use it? Similar to the information here: http://www.bbcbasic.co.uk/bbcwin/manual/bbcwing.html#spritelib

I'm asking because I was thinking of making a simple GUI application with BBC BASIC/bbcsdl.

Regards,
Patrick
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: GUI library for bbcsdl?
« Reply #1 on: Mar 18th, 2018, 10:34am »

on Mar 18th, 2018, 12:24am, PatrickM wrote:
I'm wondering, is the code used to create the GUI (the menubar, the status bar, toolbar, entry boxes, scrollbars, etc) a library that's made available for use by users of bbcsdl?

Not as a library, no; I didn't want the overhead of making it 'general purpose' (for example the toolbar is a bitmap with the coordinates of the buttons hard-coded). Indeed most of the GUI elements you mention are no more than static graphics, drawn either using a bitmap or BBC BASIC's regular plotting statements.

However you are of course free to extract the relevant code from SDLIDE.bbc and adapt it to your own needs. The program is designed to be compatible with both BB4W and BBCSDL so it necessarily uses only a common subset of standard language features (or where unavoidable, which is only very rarely, conditional code according to the platform).

The 'dialogue box' features of the program are an exception (so for example the list box used by the File Selector, the dialogues for Find, Replace, Set Font, Set Colours etc.). They are provided in a library (dlglib.bbc) and can be incorporated in other programs fairly easily. The supplied example program dlgdemo.bbc illustrates their use, as well as them being used in SDLIDE.bbc, optics.bbc, polyfit.bbc and solve.bbc.

I have uploaded the latest (not formally released) version of SDLIDE.bbc to the discussion group's Files area here because it has some alterations for compatibility with the 64-bit BBCSDL, and you should also use the latest version of dlglib.bbc as supplied with the Android and iOS editions for the same reason.

Richard.
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