granthierry Member Licensed User Longtime User Oct 14, 2014 #1 Hi everybody, first thing sorry for my english. I wish for the checkbox a function for setting check/unckeck programmaticaly, Without the code passed in checkbox_checked Thanks
Hi everybody, first thing sorry for my english. I wish for the checkbox a function for setting check/unckeck programmaticaly, Without the code passed in checkbox_checked Thanks
eps Expert Licensed User Longtime User Oct 14, 2014 #2 ? Do you mean Checkbox.Checked (True or False)? http://www.b4x.com/android/help/views.html#checkbox_checked
? Do you mean Checkbox.Checked (True or False)? http://www.b4x.com/android/help/views.html#checkbox_checked
granthierry Member Licensed User Longtime User Oct 14, 2014 #3 eps said: ? Do you mean Checkbox.Checked (True or False)? http://www.b4x.com/android/help/views.html#checkbox_checked Click to expand... Exactly i mean just a property to set true/false without any treatment
eps said: ? Do you mean Checkbox.Checked (True or False)? http://www.b4x.com/android/help/views.html#checkbox_checked Click to expand... Exactly i mean just a property to set true/false without any treatment
eps Expert Licensed User Longtime User Oct 14, 2014 #4 I'm sorry I don't really follow, are you able to give a bit more of an example or outline your idea or problem a bit more? Surely Checkbox.Checked(True) is simple enough?
I'm sorry I don't really follow, are you able to give a bit more of an example or outline your idea or problem a bit more? Surely Checkbox.Checked(True) is simple enough?
G granmaestro Member Licensed User Longtime User Oct 14, 2014 #5 it's difficult to explain in english : when you set the checkbox : checkbox1.checked=true the application go to checkbox1_ckecked and you have some code. Ok ? what i "want" is => you write checkbox1.state=true just to have the good appearance, you understand what i mean ?
it's difficult to explain in english : when you set the checkbox : checkbox1.checked=true the application go to checkbox1_ckecked and you have some code. Ok ? what i "want" is => you write checkbox1.state=true just to have the good appearance, you understand what i mean ?
Informatix Expert Licensed User Longtime User Oct 20, 2014 #6 granmaestro said: it's difficult to explain in english : when you set the checkbox : checkbox1.checked=true the application go to checkbox1_ckecked and you have some code. Ok ? what i "want" is => you write checkbox1.state=true just to have the good appearance, you understand what i mean ? Click to expand... Then set a boolean to avoid running your code. E.g. ChangedByUser is set to false when you want to change only the visual state of the checkbox (and reset to True just after). And your event sub begins by If ChangedByUser then ...
granmaestro said: it's difficult to explain in english : when you set the checkbox : checkbox1.checked=true the application go to checkbox1_ckecked and you have some code. Ok ? what i "want" is => you write checkbox1.state=true just to have the good appearance, you understand what i mean ? Click to expand... Then set a boolean to avoid running your code. E.g. ChangedByUser is set to false when you want to change only the visual state of the checkbox (and reset to True just after). And your event sub begins by If ChangedByUser then ...
LucaMs Expert Licensed User Longtime User Oct 20, 2014 #7 granmaestro said: you understand what i mean ? Click to expand... Non è che per caso sei italiano? Se fosse così ricordati che c'è anche il forum italiano. Are you italian? There is also the Italian Forum.
granmaestro said: you understand what i mean ? Click to expand... Non è che per caso sei italiano? Se fosse così ricordati che c'è anche il forum italiano. Are you italian? There is also the Italian Forum.