Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Perl/Tk: BrowseEntry Listbox alignment on osx/linuxby mtmcc (Hermit) |
on Oct 02, 2013 at 15:28 UTC ( [id://1056628]=perlquestion: print w/replies, xml ) | Need Help?? |
mtmcc has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I was wondering if anyone may be able to help on this minor problem that's starting to bug me. I'm writing a perl/Tk application that uses a BrowseEntry widget. I've recently noticed that on windows, the listbox drops down perfectly aligned with the entry space every time, but on osx and linux, the listbox always aligns to the left-most edge of the widget. This is fine when the BrowseEntry widget does not have a label, but when it does have a label, the listbox is no longer aligned with the entry space. As a minimal example, this perl/Tk window has a BrowseEntry widget with a label ('Options:'), and the drop-down list box is misaligned on osx/linux:
At the moment, the only way I can find to align the listbox and entry space on osx/linux is to use a separate label widget, something like this:
But does anybody know if it's possible to adjust the listbox alignment without adding a separate label widget? Windows seems to do this automatically... Thanks in advance!
Back to
Seekers of Perl Wisdom
|
|