Problem to set HSplitter max on the right

Find quick help here to get you started with Hollywood
Post Reply
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Problem to set HSplitter max on the right

Post 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?
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Re: Problem to set HSplitter max on the right

Post by papiosaur »

sorry, it's a RAPAGui topic, moderator could move it please?
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Problem to set HSplitter max on the right

Post 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
Christos
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Re: Problem to set HSplitter max on the right

Post 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.
Post Reply