Resizing forms question (newbie question) 
Author Message
 Resizing forms question (newbie question)

Hello all...

    I would like to build an application similar to outlook express. I am
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
are listed and the lower right pane would be where the actual email message
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
appreciated.

Thanks,

Robert Suffecool



Sat, 10 Jul 2004 14:46:07 GMT  
 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


Sat, 10 Jul 2004 23:38:22 GMT  
 Resizing forms question (newbie question)
Hi Adrian,

    Yes... this helps out a lot! Thank you very much for taking the time to
create an example that you provided. I do have one question... what does
"PictureHResize," and "PictureVResize" mean? Where can I find more
information about these terms?

Robert


Quote:
> 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

> >-----Original Message-----
> >Hello all...

> >    I would like to build an application similar to
> outlook express. I am
> >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
> >are listed and the lower right pane would be where the
> actual email message
> >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
> >appreciated.

> >Thanks,

> >Robert Suffecool

> >.



Sun, 11 Jul 2004 04:47:11 GMT  
 Resizing forms question (newbie question)
Hi again.

There's no special 'meaning'. PictureHResize and
PictureVResize are just PictureBox controls. V has long
width and very short height (just the space between the
message listview and the message's detail frame); the code
traps 3 mouse events to allow the user to 'move' the
picture and reposition those two controls when user
releases the mouse button. H has long height and short
width (just the space between the treeview and the
listview & frame controls). the code is a bit more complex
since it has to reposition more controls than V when user
releases the mouse button.

Regards,

   Adrian

Quote:
>-----Original Message-----
>Hi Adrian,

>    Yes... this helps out a lot! Thank you very much for
taking the time to
>create an example that you provided. I do have one

question... what does
Quote:
>"PictureHResize," and "PictureVResize" mean? Where can I
find more
>information about these terms?

>Robert


message

>> 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

>> >-----Original Message-----
>> >Hello all...

>> >    I would like to build an application similar to
>> outlook express. I am
>> >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
>> >are listed and the lower right pane would be where the
>> actual email message
>> >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
>> >appreciated.

>> >Thanks,

>> >Robert Suffecool

>> >.

>.



Tue, 13 Jul 2004 17:36:48 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. newbie resizing question

2. Newbie Question: Resize of ListView and TreeView.

3. Newbie question: Resize treeView and ListView

4. Question on resizing a form

5. Silly question: Form doesn't resize

6. MDI child forms resize question

7. Question on resizing a form

8. Form resizing question

9. Form Resize Question

10. Form resizing question

11. Form resizing question

12. Control / form resize question.

 

 
Powered by phpBB® Forum Software