|
Pages: [1] 2 3
|
 |
|
Author
|
Topic: The FreeBASIC GUI Compiler (Read 8673 times)
|
adosorken
*/-\*
    
Posts: 3654

|
This is something I have been planning for a few days now and have started to code now. Basically (no pun intended), it's an editor similar to Visual Basic's, except that it generates sourcecode for FB that handles all the low-level stuff involved with making a GUI: the message loop, notifications, etc. As with FreeBASIC itself, I'm starting the project in Visual Basic, and then when it's advanced enough to compile itself, it will do so. It will not work exactly like VB, but it will be quite similar, with events (like Command1_Click, built from the message loop itself), properties (Command1.Caption, simple variables), and hopefully, methods (Command1.SetFocus, using FB's function field types). So if all goes according to plan, it will be sort of object-oriented.  Anyways, even if I cannot implement methods into it, the other two concepts have already been tested and will work. Also, there will be no need for bulky OCX files, as everything, even down to common dialogs and Windows Common Controls, will be built right into the compiler. And thanks to fsw, making programs with XP-style controls will be a breeze.  So yeah...I guess I better stop blabbering on about this thing and get back to actually coding it, eh? 
|
|
|
|
|
Logged
|
'd knock on wood, but my desk is particle board.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adosorken
*/-\*
    
Posts: 3654

|
I'm not 100% sure what you mean, but if you mean that each type of control would have its own module, then yeah, I'm already doing that.  Every type of control has its own little submodule that's included if necessary.  Makes everything really modular and far easier to debug later on. As far as the screenshot goes...that's not an FB program, that's VB. However, it would not, at this point, take much work to make the same kind of thing in FB. I've not yet experimented with MDI windows though...that's next on the list of things to nail down. Also, importing resources is still something I've yet to conquer, as well as device contexts (for loading dynamic images at runtime and other such fun stuff). When the GUI abstraction layer for FB is complete though, I'll use it to make the GUI editor itself.
|
|
|
|
|
Logged
|
'd knock on wood, but my desk is particle board.
|
|
|
|
|
adosorken
*/-\*
    
Posts: 3654

|
Icons in the menus are easy with...okay, we'll call it fbGUI.  There's a menu editor similar to the one in VB, except with a few extra options (such as...icon  ). I haven't touched on the status bar control yet so I'm not sure how that's going to be handled just yet. Each form (window, hehe) has a property which specifies the control to send menu status messages to. I don't even think even VB2005 has anything like that. Right now, I'm still figuring out all the low-level stuff required to make the controls, and developing the interface of the editor. It doesn't yet output code, nor does it place controls just yet. VB's editor is really powerful, and emulating it is not going to be very easy. On the other hand, I could always just make the "windows" in the editor appear without captions or borders, and that would make drawing windows a hell of a lot easier...
|
|
|
|
|
Logged
|
'd knock on wood, but my desk is particle board.
|
|
|
|
|
|
|
|
|
|
|
|
Pages: [1] 2 3
|
|
|
|
|