Toolbar problem

Post

Posted
Rating:
#1 (In Topic #505)
Avatar
Guru
cogier is in the usergroup ‘Guru’
Can anybody tell me how to get add a spring to a ToolBar (gb.form.mdi). I can add one at run time while using the configure option but how to I do it in the IDE?

<IMG src="https://www.cogier.com/gambas/toolbar1.png"> </IMG>

<IMG src="https://www.cogier.com/gambas/toolbar2.png"> </IMG>
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Expert
Quincunxian is in the usergroup ‘Expert’
 Hi Cogier,
Unless I have misunderstood the problem, this worked for me on Mint 20.

Added a toolbar to a form.
Added several toolbuttons and a single checkbox, seperated by a spring.
Ran the test and they were spaced as required.

Have I missed something ?

Image

(Click to enlarge)


Cheers - Quin.
I code therefore I am
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Expert
Quincunxian is in the usergroup ‘Expert’
 Additionally:
Found something interesting.
I had an existing 'tool bar' and added a spring and it did not work in the way I expected.
When I checked the hierarchy tab in the GUI, I found that the spring was last on the list for the container. ( a panel in this case)
I moved the spring up to where it should be in the sequence of the controls and it worked.
This may be just a coincidence and unrelated to your problem , but may be worth checking.

Cheers - Quin.
I code therefore I am
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
cage is in the usergroup ‘Regular’
 Quin that solved a problem I was having too.  Many times I had a problem with the spring but never thought to look in the hierarchy tab.  Thanks for that tid bit.
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Guru
cogier is in the usergroup ‘Guru’
Well, would you believe it! I put the spring back to test out Quincunxian's theory and it all worked as expected :(  :D . I think, like cage found out, you were probably correct in that the hierarchy was wrong but I can't confirm it now! The time I spent trying to get this right…. winge!

Thanks I'll try to remember this for next time.
Online now: No Back to the top
1 guest and 0 members have just viewed this.