Click one button previousely opened group have to be hidden

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Click one button previousely opened group have to be hidden

Post 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
--
Thanks
Shalu S
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

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

Post 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
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

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

Post by shalu »

Hi All

Thank you for your valuable reply :lol: :D

Thanks
Shalu
--
Thanks
Shalu S
Post Reply