hackin on the layout and window management
This commit is contained in:
10
oplevel.ml
10
oplevel.ml
@ -126,7 +126,7 @@ let main =
|
||||
(String.concat "/" initial_path))
|
||||
|> Lwt.return
|
||||
>>= fun to_init ->
|
||||
let out_ppf =
|
||||
let _out_ppf =
|
||||
let insert s =
|
||||
Lwt.async (fun () ->
|
||||
TextBuffer.length to_init >>= fun len ->
|
||||
@ -174,15 +174,13 @@ let main =
|
||||
]));
|
||||
|
||||
WindowManager.make ui
|
||||
~style:
|
||||
Layout.Style.
|
||||
{ default with margin = Margin.symmetric 10.0 10.0 }
|
||||
(Lwd.var
|
||||
(`T
|
||||
( `Y,
|
||||
[
|
||||
`TextEdit (TextEdit.multiline ui tb_init, `Ratio 1.0);
|
||||
`TextEdit (TextEdit.multiline ui to_init, `Ratio 0.5);
|
||||
(`TextEdit (TextEdit.multiline ui to_init), `Ratio 0.333);
|
||||
(`TextEdit (TextEdit.multiline ui tb_init), `Ratio 0.5);
|
||||
(`TextEdit (TextEdit.multiline ui to_init), `Ratio 1.0);
|
||||
] )))
|
||||
>>= fun page ->
|
||||
let page_root = Lwd.observe page in
|
||||
|
||||
Reference in New Issue
Block a user