Home All Groups Group Topic Archive Search About
Author
13 Apr 2005 12:51 AM
Jesse Aufiero
Hello all,

I have many buttons on a form and at the bottom of the form is a grid that
behaves as though it is 'retractable' - at various times during the life of
the app, the grid becomes taller and conceals the many buttons below it.
That transition is fine.

The problem is that when the grid retracts back down to the bottom portion
of the form, to reveal the many buttons underneath it, the repainting is
slow and ugly.

Is there a way to manipulate the painting of the form so that this
transition is more attractive?

Thank so much,
Jesse

Author
13 Apr 2005 1:09 AM
Beth Massi [Architect MVP]
Try calling the Form's Update() method.

Show quoteHide quote
"Jesse Aufiero" <jaufi***@moaboil.com> wrote in message
news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl...
> Hello all,
>
> I have many buttons on a form and at the bottom of the form is a grid that
> behaves as though it is 'retractable' - at various times during the life
> of the app, the grid becomes taller and conceals the many buttons below
> it. That transition is fine.
>
> The problem is that when the grid retracts back down to the bottom portion
> of the form, to reveal the many buttons underneath it, the repainting is
> slow and ugly.
>
> Is there a way to manipulate the painting of the form so that this
> transition is more attractive?
>
> Thank so much,
> Jesse
>
Author
13 Apr 2005 1:35 AM
Jesse Aufiero
hmmm, is there a way to prevent the repainting till the end, and then update
the form all at once?  I HAVE to think that if you can do this in Access VBA
(docmd.echo false.... docmd.echo true), that you can do it in vb.net.

What I'm getting by using me.update is the same result.  I can literally see
the buttons form on the page one at a time.

Thank you.


Show quoteHide quote
"Beth Massi [Architect MVP]" <bma***@comcast.net> wrote in message
news:e0vr8V8PFHA.1236@TK2MSFTNGP14.phx.gbl...
> Try calling the Form's Update() method.
>
> "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message
> news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl...
>> Hello all,
>>
>> I have many buttons on a form and at the bottom of the form is a grid
>> that behaves as though it is 'retractable' - at various times during the
>> life of the app, the grid becomes taller and conceals the many buttons
>> below it. That transition is fine.
>>
>> The problem is that when the grid retracts back down to the bottom
>> portion of the form, to reveal the many buttons underneath it, the
>> repainting is slow and ugly.
>>
>> Is there a way to manipulate the painting of the form so that this
>> transition is more attractive?
>>
>> Thank so much,
>> Jesse
>>
>
>
Author
13 Apr 2005 1:46 AM
Dennis
You might check out double buffering!

Show quoteHide quote
"Jesse Aufiero" wrote:

> hmmm, is there a way to prevent the repainting till the end, and then update
> the form all at once?  I HAVE to think that if you can do this in Access VBA
> (docmd.echo false.... docmd.echo true), that you can do it in vb.net.
>
> What I'm getting by using me.update is the same result.  I can literally see
> the buttons form on the page one at a time.
>
> Thank you.
>
>
> "Beth Massi [Architect MVP]" <bma***@comcast.net> wrote in message
> news:e0vr8V8PFHA.1236@TK2MSFTNGP14.phx.gbl...
> > Try calling the Form's Update() method.
> >
> > "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message
> > news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl...
> >> Hello all,
> >>
> >> I have many buttons on a form and at the bottom of the form is a grid
> >> that behaves as though it is 'retractable' - at various times during the
> >> life of the app, the grid becomes taller and conceals the many buttons
> >> below it. That transition is fine.
> >>
> >> The problem is that when the grid retracts back down to the bottom
> >> portion of the form, to reveal the many buttons underneath it, the
> >> repainting is slow and ugly.
> >>
> >> Is there a way to manipulate the painting of the form so that this
> >> transition is more attractive?
> >>
> >> Thank so much,
> >> Jesse
> >>
> >
> >
>
>
>
Author
13 Apr 2005 2:54 AM
Ken Tucker [MVP]
Hi,

        In the forms new event enable double buffering.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssetstyletopic.asp

Ken
----------------
"Jesse Aufiero" <jaufi***@moaboil.com> wrote in message
news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl...
Hello all,

I have many buttons on a form and at the bottom of the form is a grid that
behaves as though it is 'retractable' - at various times during the life of
the app, the grid becomes taller and conceals the many buttons below it.
That transition is fine.

The problem is that when the grid retracts back down to the bottom portion
of the form, to reveal the many buttons underneath it, the repainting is
slow and ugly.

Is there a way to manipulate the painting of the form so that this
transition is more attractive?

Thank so much,
Jesse
Author
13 Apr 2005 6:06 AM
Cor Ligthert
Jesse,

Why don't you set the buttons above it (and use a toolbar for that)?

Just a thought,

Cor