Page 1 of 1

Click one button previousely opened group have to be hidden

Posted: Wed Sep 30, 2015 9:41 am
by shalu
Hi All,

I am a beginner in LiveCode, I have a group of buttons when I click any one the button it expands (one of the set of hidden group are visible), if again click the same button the visible group are hidden, My problem is when i click any one of the button a group is visible and if I click another one then the first visible group have to be hidden and must be visible only with the current clicked button's group. :idea:

Thanks
Shalu

Re: Click one button previousely opened group have to be hid

Posted: Wed Sep 30, 2015 1:20 pm
by Klaus
Hi Shalu,

two quick ideas:
1. Memorize the last visible group (local or global variable or a custom property) and hide it before showing another group.
2. Before showing a "new" group, first hide ALL other possible groups (lock scren!), LC is fast enough for that!

You get the picture! :D


Best

Klaus

Re: Click one button previousely opened group have to be hid

Posted: Wed Sep 30, 2015 1:50 pm
by dunbarx
Shalu.

Klaus' second suggestion is best. Lock the screen when implementing it. In this way, you never have to worry about how many groups there are, or have to change anything if you add or remove a group.

Craig Newman

Re: Click one button previousely opened group have to be hid

Posted: Thu Oct 01, 2015 3:37 am
by shalu
Hi All

Thank you for your valuable reply :lol: :D

Thanks
Shalu