Plz Help.How recall Measure items when Listbox Resizing

  • Thread starter Thread starter Irakli Lomidze
  • Start date Start date
I

Irakli Lomidze

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
 
Why don't you try toggling the DrawMode to Normal then back to ownerdraw?
 
Thank you.
It's works and quite wlll.

Andrew S (Infragistics) said:
Why don't you try toggling the DrawMode to Normal then back to ownerdraw?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top