ExcalibursZone
Feb 1st, 2000, 09:46 AM
Howdy howdy all, just have a question or two :)
I'm writing a small little app that emulates a window from another OS (amiga OS) just to see if it can be done with VB. I have a form without a border, and instead, have images with the gui graphics displaying (there is no worry about resources here ... heh) I have a minimize/maximize gadget, a close window gadget, a zorder gadget, and a resize gadget. I have searched high and low for any info/tips/etc. on how to do these two things:
1) I'd like to resize the form, keeping the resize gadget in the lower right corner at all times, and not have the mouse pointer jump to 0,0 of the image and be able to resize the form properly, with a minimum of the titlebar height + the lower scrollbar height and the left border's width + the right scrollbar's width (approximately 21 pixels for the titlebar (height), 18 pixels for the lower scrollbar (height), 18 pixels for the right scrollbar (width), and 2 pixels for the left border (width)).
2) How does the form's ZOrder work? I'm not quite sure ;) when you click on the ZOrder gadget (upper right corner) the window should either move to the back or move to the front depending on it's current position.
I already have a very nice bit of code to move the window around using the titlebar, but these two functions are a major necessity ;) If anyone can help, I'd be really appreciative ;)
-Excalibur
I'm writing a small little app that emulates a window from another OS (amiga OS) just to see if it can be done with VB. I have a form without a border, and instead, have images with the gui graphics displaying (there is no worry about resources here ... heh) I have a minimize/maximize gadget, a close window gadget, a zorder gadget, and a resize gadget. I have searched high and low for any info/tips/etc. on how to do these two things:
1) I'd like to resize the form, keeping the resize gadget in the lower right corner at all times, and not have the mouse pointer jump to 0,0 of the image and be able to resize the form properly, with a minimum of the titlebar height + the lower scrollbar height and the left border's width + the right scrollbar's width (approximately 21 pixels for the titlebar (height), 18 pixels for the lower scrollbar (height), 18 pixels for the right scrollbar (width), and 2 pixels for the left border (width)).
2) How does the form's ZOrder work? I'm not quite sure ;) when you click on the ZOrder gadget (upper right corner) the window should either move to the back or move to the front depending on it's current position.
I already have a very nice bit of code to move the window around using the titlebar, but these two functions are a major necessity ;) If anyone can help, I'd be really appreciative ;)
-Excalibur