View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0021820LazarusLCLpublic2012-04-20 22:492012-04-21 11:42
Assigned ToZeljan Rikalo 
StatusresolvedResolutionnot fixable 
PlatformOSOS Version
Product Version1.1 (SVN)Product Buildlatest build 
Target VersionFixed in Version 
Summary0021820: TComboBox Issue: Messes up text when text line goes beyond the end of the control
DescriptionHey guys

i have a long line of text that i add to a list on a combo box occassionally and it messes up the whole line or some it, the rest usually looks like encrypted text, i have included my source code to have a look at. the combo boxes are in ploginmanager and pprofilemanager. hopefully this will give you an idea of the problem.

when testing make sure you type over 50 or so characters. this is when the issue happens
TagsNo tags attached.
Fixed in Revision
WidgetsetGTK 2
Attached Fileszip file icon [^] (140,459 bytes) 2012-04-20 22:51
png file icon combo_gtk2.png [^] (4,576 bytes) 2012-04-20 23:13

diff file icon gtk2comboboxrenderer.diff [^] (4,744 bytes) 2012-04-21 11:41 [Show Content]

- Relationships

-  Notes
Vojtech Cihak (reporter)
2012-04-20 23:14

I see no problems on Qt. Very long lines are finished with "..."

On GTK2, combo has horizontal scrollbar. I uploaded screenshot.

Also, you can make your Login Manager window sizable.
jshand2010 (reporter)
2012-04-20 23:31

thanks for replying.

i cannot find a property that states if the combo box has scroll bars (especially horizontal)

i have made a work around for now

if (length(edfullname.Text)=(edfullname.MaxLength)) then
    ShowMessage('Line Length Reached');

Vojtech Cihak (reporter)
2012-04-20 23:55

@ i cannot find a property that states if the combo box has scroll bars (especially horizontal)

AFAIK there's no property for this. This is provided by underlaying widgetset and maybe it also depends on selected theme.
Zeljan Rikalo (developer)
2012-04-21 08:53

@jshand2010 PLEASE ATTACH EXAMPLES WHICH CONTAINS PROBLEM. Your examples are same all the time. Current example works fine here and does not show any problem.
Zeljan Rikalo (developer)
2012-04-21 08:57

It works fine here. Seem that's theme dependent. Gtk2 is very ugly with combos eg. my theme shows combo list as popup menu, so text is not cutted but very long texts could easily reach width of the screen.
Zeljan Rikalo (developer)
2012-04-21 11:42

Resolved as "not fixable". It's long standing gtk2 bug (or you can call it missing feature). Attached patch helps with cleanlooks theme, but not with themes like QtCurve which enables list instead of menu for combo popup).
Please close, since this is not fixable by us.

- Issue History
Date Modified Username Field Change
2012-04-20 22:49 jshand2010 New Issue
2012-04-20 22:49 jshand2010 Widgetset => GTK 2
2012-04-20 22:51 jshand2010 File Added:
2012-04-20 23:13 Vojtech Cihak File Added: combo_gtk2.png
2012-04-20 23:14 Vojtech Cihak Note Added: 0058818
2012-04-20 23:31 jshand2010 Note Added: 0058820
2012-04-20 23:55 Vojtech Cihak Note Added: 0058821
2012-04-21 08:53 Zeljan Rikalo LazTarget => -
2012-04-21 08:53 Zeljan Rikalo Note Added: 0058826
2012-04-21 08:53 Zeljan Rikalo Status new => feedback
2012-04-21 08:57 Zeljan Rikalo Note Added: 0058827
2012-04-21 10:37 Zeljan Rikalo Status feedback => assigned
2012-04-21 10:37 Zeljan Rikalo Assigned To => Zeljan Rikalo
2012-04-21 11:41 Zeljan Rikalo File Added: gtk2comboboxrenderer.diff
2012-04-21 11:42 Zeljan Rikalo Status assigned => resolved
2012-04-21 11:42 Zeljan Rikalo Resolution open => not fixable
2012-04-21 11:42 Zeljan Rikalo Note Added: 0058832

MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker