| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #3032
Application: | FLTK Library |
Status: | 2 - Closed w/o Resolution |
Priority: | 4 - High, e.g. key functionality not working |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Choice bug with more than 3275 items. |
Version: | 1.3-current |
Created By: | kdiman |
Assigned To: | ianmacarthur |
Fix Version: | 1.3-current |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | kdiman 18:42 Jan 22, 2014 |
| When I create choice with number of items more than 3275 I get incorrect drawing labels in the items and sometime get incorrect number of the items.
That was tested for a my own widget for control access to pages and I find out the bug.
Page: |<<|<|9999|-|>|>>|
-- regards. | |
|
#2 | greg.ercolano 09:34 Jan 26, 2014 |
| Haven't looked into this, but this might not be avoidable.
You mention 3275 items; if each item is 14 pixels tall, the math for the coords would be about 45,850, about 10,000 above 32,767, which is a magic number that I think is a 16 bit limit for pixel coordinates in many of the window managers we support. (-32768 thru 32767)
Is this a linear menu of items, or is there a hierarchy? By linear, I mean:
Aaa-111 Aaa-222 Aaa-333 Bbb-111 Bbb-222 Bbb-333
..where it's one giant linear list, vs. a hierarchical layout with submenus to break it up a bit, e.g.:
Aaa/111 222 333 Bbb/111 222 333
If hierarchical, you may be able to solve the problem, and make it easier for your users to navigate. (If you're getting the problem with that, though, I guess we'd have to see a test program.)
Arguably, Fl_Choice is the wrong widget to use for this much data, and might better be represented with an Fl_Browser or Fl_Tree. | |
|
#3 | kdiman 21:56 Jan 27, 2014 |
| Greg, you can to look up into attached, there is example... | |
|
#4 | kdiman 21:58 Jan 27, 2014 |
| for me that bug is not critical, I am using maximum 999 number of pages in this moment ... | |
|
#5 | ianmacarthur 15:49 Mar 11, 2014 |
| Is any action required here? Or can this be closed? | |
|
#6 | kdiman 05:20 Mar 13, 2014 |
| can be closed I think | |
|
#7 | ianmacarthur 13:24 Sep 04, 2014 |
| Closed on advice of OP | |
[ Return to Bugs & Features ]
|
| |