Posts: 437
Threads: 32
Joined: Mar 2004
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.
Posts: 6,419
Threads: 74
Joined: Mar 2002
You have it in VB, in the fashion of
Code:
form1.pset (100,100)
so I guess it will be available in this thingo.
Posts: 3,279
Threads: 170
Joined: Nov 2003
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.
Posts: 3,288
Threads: 167
Joined: Nov 2001
How did you manage menus? Resource?
Like:
MenuItem "&Blah"
Popup "&Foo"
Posts: 3,279
Threads: 170
Joined: Nov 2003
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.
I'd knock on wood, but my desk is particle board.
Posts: 525
Threads: 23
Joined: Oct 2004
Quote:
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. 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 ;-)
Posts: 3,279
Threads: 170
Joined: Nov 2003
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.
I'd knock on wood, but my desk is particle board.
Posts: 525
Threads: 23
Joined: Oct 2004
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.
Posts: 3,279
Threads: 170
Joined: Nov 2003
Yep, that's exactly what I want to do.
Just like VB's form designer. If you say that this will work, then I'll trust ya on this.
I'd knock on wood, but my desk is particle board.
Posts: 525
Threads: 23
Joined: Oct 2004
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....