Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The FreeBASIC GUI Compiler
#21
one of the things I want is the ability to not have any controls in the window and to have something like a pset command that allows me to draw in the window, that kind of thing.
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
[Image: 42-r]
Reply
#22
You have it in VB, in the fashion of

Code:
form1.pset (100,100)

so I guess it will be available in this thingo.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#23
Yes, the .PSet method will be supported, and most of the other VB methods will be supported as well.
I'd knock on wood, but my desk is particle board.
Reply
#24
How did you manage menus? Resource?

Like:
MenuItem "&Blah"
Popup "&Foo"
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#25
I haven't filddled with actual menus yet, so right now I'm not sure how they'll be handled internally. However, when it's all clear to my scrambled brain, then I'll write it up to work the same as it works in VB. Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#26
Quote:[Image: fb-gui-editor-window-editor.png]
Made progress on the window editor. I've got no idea how other editors do this though, so I'm going with a technique I already know. Big Grin However, it would be nice to be able to put an image of an actual window in there...anyone know how this kind of thing is subclassed?

Dim ParentForm As Form
Dim ChildForm As Form

Set ParentForm = New Form
Set ChildForm = New Form

ParentForm.Show vbModeless ' Show Parent Form
ChildForm.Show vbModeless, ParentForm ' Show ChildForm


In the generated FreeBasic code for the form you'd need to make a call to the SetParent API function you can look it up in VB to see what parameters are expected. I used this technique with the setparent API once to make a VB Project with more than one MDI Main Forms (now that was a twist LOL).

Hope this helps, PM me or reply here or email me or ICQ me 40296501 if you still have questions, the API is something I've had to work with a good couple times in my life ;-). Still am today ;-)
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#27
Err...that will make a form appear inside another form (aka a regular form appear inside another regular form)? Hrm...I'll give it a try, thanks. Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#28
Isn't it what you want to do? like VB's form designer?

Or should have had a couple more coffees before reading your post? lol. Could be...think that's why we need to talk lol.
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#29
Yep, that's exactly what I want to do. Big Grin Just like VB's form designer. If you say that this will work, then I'll trust ya on this. Smile
I'd knock on wood, but my desk is particle board.
Reply
#30
oh :-)...you might need to add code to keep that child for at the same position on the parent form :-). but yeah you should only need to do that.

Also, I have code somewhere to make those handles appear on forms and controls (so you can move them and size them etc....
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)