Page 1 of 1

Problem to set HSplitter max on the right

Posted: Sat Aug 17, 2024 5:06 pm
by papiosaur
Hello,

i would like to set a HSplitter max on the right at startup

i try to use this command:

Code: Select all

moai.domethod("hsplitter", "split", -200)
but the hsplitter is always at center

Any ideas please?

Re: Problem to set HSplitter max on the right

Posted: Sat Aug 17, 2024 5:51 pm
by papiosaur
sorry, it's a RAPAGui topic, moderator could move it please?

Re: Problem to set HSplitter max on the right

Posted: Sun Aug 18, 2024 7:01 am
by plouf
Split is used AFTER an unsplit, (unsplit complete REMOVES on of the 2 panels)
so split reposition panel in dimension you set
better use for position size

Code: Select all

moai.Set("hsplitter","Position",200)
however it seems that in both cases the min size of the object prohibit maximun position i.e. you cant make it 1 pixel wide

Re: Problem to set HSplitter max on the right

Posted: Sun Aug 18, 2024 1:28 pm
by papiosaur
Thanks plouf, unfortunally Position option seems don't work on MorphOS, the split is always at the center...

I've found a solution to my problem, i've set the vertical group on the right of the split with weight="0" and won the right side has a minimal size.