C-Lite conversion

Posted By: laci

C-Lite conversion - 12/27/11 13:09

Hi,

how can I convert this code (optimal) in C-Lite?

function swap_choice_panel()
{
// show / hide
choice_pan.visible = (choice_pan.visible == off);
choice_txt.visible = (choice_txt.visible == off);
}

thx - Laci
Posted By: Bone

Re: C-Lite conversion - 12/27/11 13:26

Take a look at http://www.conitec.net/beta/flags.htm

Oder unter http://www.conitec.net/manual_d/flags.htm auf deutsch
wink
Posted By: Myrkling

Re: C-Lite conversion - 12/27/11 13:27

With the toggle macro:

toggle(choice_pan, SHOW);
toggle(choice_txt, SHOW);
Posted By: laci

Re: C-Lite conversion - 12/27/11 14:16

The toggle macro is perfect!

Thank you.
© 2024 lite-C Forums