T Tony Tetley Active Member Licensed User Longtime User Apr 11, 2015 #1 I want to use check boxes to show some true/false values but I do not want the user to be able to change the value. If I disable the check box it is dimmed out and too hard to see. Is it possible to make a check box enabled but read only, or am I going to have to do a click event on each of them to keep the true/false state? Thanks, Tony
I want to use check boxes to show some true/false values but I do not want the user to be able to change the value. If I disable the check box it is dimmed out and too hard to see. Is it possible to make a check box enabled but read only, or am I going to have to do a click event on each of them to keep the true/false state? Thanks, Tony
RandomCoder Well-Known Member Licensed User Longtime User Apr 11, 2015 #2 If you have several it might be easier to place a transparent panel over the top of the check boxes. This should then be able to consume the click event instead of it reaching the check boxes. I'm pretty sure it will work. Upvote 0
If you have several it might be easier to place a transparent panel over the top of the check boxes. This should then be able to consume the click event instead of it reaching the check boxes. I'm pretty sure it will work.
Peter Simpson Expert Licensed User Longtime User Apr 11, 2015 #3 That sounds good idea @RandomCoder. EDIT: I just thought, shouldn't it still click through a transparent panel? Upvote 0
That sounds good idea @RandomCoder. EDIT: I just thought, shouldn't it still click through a transparent panel?
T Tony Tetley Active Member Licensed User Longtime User Apr 11, 2015 #4 Thanks for the idea, but it does not work, it does click through the transparent panel. Upvote 0
NJDude Expert Licensed User Longtime User Apr 11, 2015 #5 You have to add the TOUCH event in order to consume the tap/click/touch. Upvote 0
Beja Expert Licensed User Longtime User Apr 11, 2015 #6 Sub Panel1_Click Return End Sub Edit: implementation of RandomCoder and NJDude suggestions Upvote 0
T Tony Tetley Active Member Licensed User Longtime User Apr 11, 2015 #7 Yes!! adding the panel click event doe the trick. Thanks. Upvote 0
Cableguy Expert Licensed User Longtime User Apr 11, 2015 #8 NJDude said: You have to add the TOUCH event in order to consume the tap/click/touch. Click to expand... Remembering the BASICS in BASIC...4 Android Upvote 0
NJDude said: You have to add the TOUCH event in order to consume the tap/click/touch. Click to expand... Remembering the BASICS in BASIC...4 Android
NJDude Expert Licensed User Longtime User Apr 11, 2015 #9 Tony Tetley said: Yes!! adding the panel click event doe the trick. Thanks. Click to expand... Not the click but the TOUCH just like indicated below, otherwise you might get the clicking sound too: Code: Sub Panel1_Touch(Action As Int, X As Float, Y As Float) End Sub Upvote 0
Tony Tetley said: Yes!! adding the panel click event doe the trick. Thanks. Click to expand... Not the click but the TOUCH just like indicated below, otherwise you might get the clicking sound too: Code: Sub Panel1_Touch(Action As Int, X As Float, Y As Float) End Sub
T Tony Tetley Active Member Licensed User Longtime User Apr 11, 2015 #10 Click and touch both work, but NJ dude is correct, the touch prevents the clicking sound. Thanks! Upvote 0