Re: List view : no scroll bar and maximum length ?
Adrien <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
I spoke about the list view being too short. Basically I would only
see two lines at once.
I found the solution but as it took me some time (I was searching for
something else), thought hopefully not that much, I thought I could
post it as well.
It is correctly documented but iirc it is not introduced in the
tutorial. When using some_box#pack, you have to use ~expand:true
method pack : ?from:Gtk.Tags.pack_type ->
?expand:bool -> ?fill:bool -> ?padding:int -> GObj.widget -> unit
from : default value is `START
expand : default vaue is false
fill : default value is true, ignored if expand is false
(from Class GPack.box_skel which many things of GPack inherit from)
This way the list uses as much space as possible.
---
Adrien Nader