Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » Repainting of DropList
Repainting of DropList [message #51150] Sun, 10 February 2019 12:34 Go to next message
crydev is currently offline  crydev
Messages: 150
Registered: October 2012
Location: Netherlands
Experienced Member
Hello,

I'm having trouble with the DropList control. Suppose that I add some item with string description 'test' to the DropList. It will be added and visible. When I click the DropList, everything is okay. Now I change the string representation of this element to 'somethingelse', but I don't yet click the DropList. The DropList will not reflect the new string representation of the element, even when I call 'Refresh'. How can I make sure it refreshes without having to drop the list?

Thanks in advance!
Re: Repainting of DropList [message #51168 is a reply to message #51150] Wed, 13 February 2019 10:33 Go to previous message
mirek is currently offline  mirek
Messages: 11706
Registered: November 2005
Ultimate Member
crydev wrote on Sun, 10 February 2019 12:34
Hello,

I'm having trouble with the DropList control. Suppose that I add some item with string description 'test' to the DropList. It will be added and visible. When I click the DropList, everything is okay. Now I change the string representation of this element to 'somethingelse', but I don't yet click the DropList. The DropList will not reflect the new string representation of the element, even when I call 'Refresh'. How can I make sure it refreshes without having to drop the list?

Thanks in advance!


How do you change it?

Anyway, in general, the value displayed in DropList is not really the value from the list - it is independent. In fact, DropList can even display value that is not in the list (some setup of DropList is needed for this).

So if I understand your situation well, I think you will need to reassign the value (using <<= aka SetData). If not, provide better explanation and testcase please.

[Updated on: Wed, 13 February 2019 10:33]

Report message to a moderator

Previous Topic: Bar::Item - adding 'Get' function(s)?
Goto Forum:
  


Current Time: Tue Feb 19 19:40:54 CET 2019

Total time taken to generate the page: 0.00639 seconds