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 » U++ Widgets - General questions or Mixed problems » Equivalent widgets
Equivalent widgets [message #15286] Tue, 15 April 2008 19:02 Go to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Hi. I want to use a ListBox like widget. I don't know which control is it equivalent in Ultimate++. Should I use ArrayCtrl, GridCtrl or other control (ColumnList, FileList)?
Maybe an experienced user could give a list with Upp widgets and their equivalents in other toolkits (U++ - gtk+ - windows).



cdabbd745f1234c2751ee1f932d1dd75
Re: Equivalent widgets [message #15287 is a reply to message #15286] Tue, 15 April 2008 19:25 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
See the list of all widgets.

ColumnList is probably what you want, though it doesn't do keys unfortunately.
Re: Equivalent widgets [message #15296 is a reply to message #15286] Tue, 15 April 2008 21:56 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
You can customize ArrayCtrl to look like a ListBox.
Of course, it has much more features, but it is not a problem, I think.
Re: Equivalent widgets [message #15306 is a reply to message #15296] Wed, 16 April 2008 01:53 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Well, ListBox control is a simple widget. It doesn't need SQL integration, multiple columns, etc. I want to use it to control which columns are visible in GridCtrl widget.

|Stock(ListBox)|         |Current View(ListBox)|
-----------------------------------------------
|Column2        |         |Column1             |
|Column3        |         |Column4             |
|ColumnX        |   <=    |Column5             |
|ColumnX        |   =>    |                    |
-----------------------------------------------


In that case is better having a simple widget, because using ArrayCtrl or GridCtrl here and in other places where a ListBox is needed, will increase executable size.

It is possible to have something like Firefox "Grid" control have for hide its columns?
index.php?t=getfile&id=1149&private=0
  • Attachment: Grid.JPG
    (Size: 6.34KB, Downloaded 708 times)


cdabbd745f1234c2751ee1f932d1dd75
Re: Equivalent widgets [message #15318 is a reply to message #15306] Wed, 16 April 2008 10:51 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

GridCtrl has bulit-in controlling of columns visibility. You must write grid.Hiding() and now in popup menu columns submenu should be activated.

PS: Indeed firefox way to hide/show column is very nice. I was thinking about adding this to gridctrl.
Re: Equivalent widgets [message #15322 is a reply to message #15318] Wed, 16 April 2008 12:13 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
unodgs wrote on Wed, 16 April 2008 11:51

GridCtrl has bulit-in controlling of columns visibility. You must write grid.Hiding() and now in popup menu columns submenu should be activated.

PS: Indeed firefox way to hide/show column is very nice. I was thinking about adding this to gridctrl.


Thanks for your answer, it simplify the development process Smile .
The problem is when choosing column to be visible again, it doesn't resize to it last size.
index.php?t=getfile&id=1150&private=0
What should i do? Is it the default behavior of GridCtrl?


cdabbd745f1234c2751ee1f932d1dd75
Re: Equivalent widgets [message #15325 is a reply to message #15322] Wed, 16 April 2008 12:34 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Oops, I must have broken something lately (I think in absolute mode everything is ok). I'll check that today.
Previous Topic: SetFocus / ActiveFocus -- difference?
Next Topic: Exclamation Popup: two clicks to dismiss
Goto Forum:
  


Current Time: Fri Mar 29 14:33:12 CET 2024

Total time taken to generate the page: 0.01362 seconds