How can disable the controls from code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
How can disable the controls from code
Hi to all
how can I disable one or more controls from code? It's need to do it one by one?
Thank You
how can I disable one or more controls from code? It's need to do it one by one?
Thank You
Re: How can disable the controls from code
Hi Alessio,
You should be able to disable controls via its disable property.
e.g. for a button
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
You should be able to disable controls via its disable property.
e.g. for a button
Code: Select all
set the disabled of button 1 to true
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: How can disable the controls from code
Hi Neil
Thank you
Having more controls to disable or enable you necessarily have to do one by one or you can group them?LCNeil wrote:Hi Alessio,
You should be able to disable controls via its disable property.
e.g. for a button
Code: Select all
set the disabled of button 1 to true
Thank you
Re: How can disable the controls from code
Hi Alessio,
Best regards
Jean-Marc
You can disable all controls of a group like that:Having more controls to disable or enable you necessarily have to do one by one or you can group them?
Code: Select all
set the disabled of group "mygroup" to true
Jean-Marc
https://alternatic.ch
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: How can disable the controls from code
Forgive me my many questions but are an absolute beginner.jmburnod wrote:Hi Alessio,You can disable all controls of a group like that:Having more controls to disable or enable you necessarily have to do one by one or you can group them?Best regardsCode: Select all
set the disabled of group "mygroup" to true
Jean-Marc
How do I group the controls?
Thanks
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: How can disable the controls from code
Forgive me my many questions but are an absolute beginner.jmburnod wrote:Hi Alessio,You can disable all controls of a group like that:Having more controls to disable or enable you necessarily have to do one by one or you can group them?Best regardsCode: Select all
set the disabled of group "mygroup" to true
Jean-Marc
How do I group the controls?
Thanks
Re: How can disable the controls from code
Hi Alessio,
To group several controls
1. Select the control you want in your group
2. Click on btn group of the toolbar
3. Group is made
For details have a look at "group" in the LC dictionary
Best regards
Jean-Marc
Please no apologise, this beginner forum is made for that.Forgive me my many questions but are an absolute beginner.
To group several controls
1. Select the control you want in your group
2. Click on btn group of the toolbar
3. Group is made

For details have a look at "group" in the LC dictionary
Best regards
Jean-Marc
https://alternatic.ch
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: How can disable the controls from code
It's really simple
Thanks

Thanks

Re: How can disable the controls from code
Buongiorno Alesio,
you might be intereted in taking a look at these great stacks to get the basics of LC:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
you might be intereted in taking a look at these great stacks to get the basics of LC:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus