Re: [PHP-GTK] GtkComboBox Displayed Items

[email protected] (kksou)
Newsgroups php.gtk.general
Message-ID <[email protected]>

Jake Cobb wrote:
> Does anyone know how to control the number of items shown at a time when 
> a GtkComboBox shows its popup in response to a user click?  I have a 
> couple combos for choosing State (so 50 entries) and they always take 
> whatever screen height is available, including running right over the 
> task bar in Windows.  The only difference between Linux and Windows for 
> me is that Linux takes the entire screen height from top to bottom and 
> Windows chooses the direction with the most space (from top or bottom) 
> and expands in that direction all the way to the edge.
> 
> If there's no way to set this in terms of item height (e.g. such that 
> say 10 items show at a time and the rest are scrolled to), getting a 
> reference to the popup window itself so I could force a fixed height 
> would still be much better than its current behavior.
> 
> -Jake Cobb
> 

Don't think php-gtk2 allow us to set the number of items displayed in the
combobox. Nor does it expose the handle to the internal popup window. 

If you need such fine control, maybe you have to set up the combobox
manually.

I have written something similar earlier:
http://www.kksou.com/php-gtk2/articles/setup-pulldown-menu-with-2-columns---Part-3---using-self-defined-combobox.php

If you look at line 69, you can set the specific size of the pulldown menu
window.

Regards,
/kksou




-- 
View this message in context: http://www.nabble.com/GtkComboBox-Displayed-Items-tp14341071p14354465.html
Sent from the Php - GTK - General mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.