English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] Osiris - gtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-28 (13:48)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] Osiris - gtk
> And I don't know much about geometry management.
> It seems it has some border-layout like management, but it is not so
> simple to use. I think a single wrapper, which behaves like HPanel and
> VPanel in gtk will be nice. I also wonder if I can do split-panes.

Automatic split bars are not yet implemented.
They're on my todo-list

> Some sort of automatic placement will be fine. Configure, that all
> elements in a container vill be top aligned. (=VPanel)
> The last thing I miss is to enable auto-fill an element. (AlClient is
> for that purpose?)

try to work with the "#align" calls in order to align compents
 left/top/right/bottom/client & center are allowed ).
you can also use #span & #space on the containers ( windows, panels ).
This let Osiris handle all the resize / positionning of the components,
especially when resizing the window or adding new elements.

> For example how can I achieve a simple layout like this: (rolodex
> (sorry, don't know the correct spelling)
> And, if it is possible, how to have a labelled border around each row,
> like this
>     +-borderlabel----------+
>     |                      |
>     |  Element in the pane |
>     |                      |
>     +----------------------+

Labeled border are also not part of the API.
when you wanna have several " label : <edit> " lines you can simply create a
panel for each line ( setting #border to BdNone to hide the layout ) and
adding both the label & the edit with #align AlLeft.

Nicolas Cannasse

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners