Dear Sirs.

Plz Help me i send this question in 7th - time.

I Use OwnerDraw Method in ListBox Component.
All Works Fine But i have problem when i resizing the ListBox Component.
(need redraw)
in List Box OnMeasureItem and OnDrawItem Called when ListBox is Created or
when Add new Item.
But They are not calling when i resize a listbox.

I try in my code:
onresize()
{ listbox1.Invalidate();
}

but I have no effect

one way is remove and readd all item on listbox. but i have big amount of
items
and this way is very bad.

plz help me how is posible extend exsiting listbox.
or i need reimplement full textbox.


Thank you in Advance.
Irakli Lomidze

Re: Plz Help.How recall Measure items when Listbox Resizing by Andrew

Andrew
Thu Jan 22 20:02:47 CST 2004

Why don't you try toggling the DrawMode to Normal then back to ownerdraw?

"Irakli Lomidze" <Irakli_lomidze@access.sanet.ge> wrote in message
news:OcI3FWM4DHA.3104@TK2MSFTNGP11.phx.gbl...
> Dear Sirs.
>
> Plz Help me i send this question in 7th - time.
>
> I Use OwnerDraw Method in ListBox Component.
> All Works Fine But i have problem when i resizing the ListBox Component.
> (need redraw)
> in List Box OnMeasureItem and OnDrawItem Called when ListBox is Created
or
> when Add new Item.
> But They are not calling when i resize a listbox.
>
> I try in my code:
> onresize()
> { listbox1.Invalidate();
> }
>
> but I have no effect
>
> one way is remove and readd all item on listbox. but i have big amount of
> items
> and this way is very bad.
>
> plz help me how is posible extend exsiting listbox.
> or i need reimplement full textbox.
>
>
> Thank you in Advance.
> Irakli Lomidze
>
>
>
>
>
>
>
>



Re: Plz Help.How recall Measure items when Listbox Resizing by Irakli

Irakli
Fri Jan 23 02:38:03 CST 2004

Thank you.
It's works and quite wlll.

"Andrew S (Infragistics)" <productmanager@infragistics.com> wrote in message
news:e78f%23TV4DHA.2184@TK2MSFTNGP10.phx.gbl...
> Why don't you try toggling the DrawMode to Normal then back to ownerdraw?
>
> "Irakli Lomidze" <Irakli_lomidze@access.sanet.ge> wrote in message
> news:OcI3FWM4DHA.3104@TK2MSFTNGP11.phx.gbl...
> > Dear Sirs.
> >
> > Plz Help me i send this question in 7th - time.
> >
> > I Use OwnerDraw Method in ListBox Component.
> > All Works Fine But i have problem when i resizing the ListBox Component.
> > (need redraw)
> > in List Box OnMeasureItem and OnDrawItem Called when ListBox is Created
> or
> > when Add new Item.
> > But They are not calling when i resize a listbox.
> >
> > I try in my code:
> > onresize()
> > { listbox1.Invalidate();
> > }
> >
> > but I have no effect
> >
> > one way is remove and readd all item on listbox. but i have big amount
of
> > items
> > and this way is very bad.
> >
> > plz help me how is posible extend exsiting listbox.
> > or i need reimplement full textbox.
> >
> >
> > Thank you in Advance.
> > Irakli Lomidze
> >
> >
> >
> >
> >
> >
> >
> >
>
>