
Resizing forms question (newbie question)
Hi.
You can simulate the Outlook Express panes using small
PictureBox controls that act like resizers. These
pictureboxes will fill just the space between panes.
I attach you a sample form (you will need to add a
reference to Microsoft Windows Common Controls 6.0, since
it uses a TreeView and a ListView). The code is very
simple:
- Form_Resize event holds both code for default
locations of controls and for processing the event that
the user resizes the form.
- PictureXScroll_MouseDown event changes a switch for
PictureXScroll_MouseMove to know the user is resizing, not
just moving the mouse over the form (he has the left
button pressed)
- PictureXScroll_MouseMove moves the PictureBox that
acts as a resizer.
- PictureXScroll_MouseUp repositions controls to fit the
new position of the resizer.
Notice all resizing techniques use values relative to
other controls' postions. The only fixed value is the one
representing the space between controls (60 twips).
Hope this helps,
Adrian
Quote:
>-----Original Message-----
>Hello all...
> I would like to build an application similar to
outlook express. I am
Quote:
>wondering how I would go about setting up the different
panes for the
>program. For example, on the left pane, I would have a
tree list for
>folders, etc..etc.. On the upper right pane would be
where email messages
Quote:
>are listed and the lower right pane would be where the
actual email message
Quote:
>would be displayed.
> I guess my question is this: are these panes on one
form or are they
>three separate forms tiled together somehow? I will be
using vb6
>professional for building this application. Any
suggestions would be
Quote:
>appreciated.
>Thanks,
>Robert Suffecool
>.
|
|
FormResizeSample.frm
6K
Download
|