D devmobile Active Member Licensed User Nov 15, 2017 #1 I have many labels in panel that contain numbers I need to user when touch label and when user slide to left or right,i can understand how label is touching Example user maybe select number from 1 to 10 so user touch number 1 and slide to number 10 Please answer to me guys I apologize to Erel for last problems
I have many labels in panel that contain numbers I need to user when touch label and when user slide to left or right,i can understand how label is touching Example user maybe select number from 1 to 10 so user touch number 1 and slide to number 10 Please answer to me guys I apologize to Erel for last problems
Alexander Stolte Expert Licensed User Longtime User Nov 15, 2017 #2 Code: Dim Panel1 as Panel Button1 = Panel1.Parent Panel1.getview(0) 'the chronological order of the views in the panel Upvote 0
Code: Dim Panel1 as Panel Button1 = Panel1.Parent Panel1.getview(0) 'the chronological order of the views in the panel
D devmobile Active Member Licensed User Nov 15, 2017 #3 Alexander Stolte said: Code: Dim Panel1 as Panel Button1 = Panel1.Parent Panel1.getview(0) 'the chronological order of the views in the panel Click to expand... No No I add this event for panel Sub pnl_Touch(Action as int,X as float,Y as float) ENd Sub I have many label in panel But when i touch on label,not raise touch event but when i touch part of panel,it raised Upvote 0
Alexander Stolte said: Code: Dim Panel1 as Panel Button1 = Panel1.Parent Panel1.getview(0) 'the chronological order of the views in the panel Click to expand... No No I add this event for panel Sub pnl_Touch(Action as int,X as float,Y as float) ENd Sub I have many label in panel But when i touch on label,not raise touch event but when i touch part of panel,it raised
Star-Dust Expert Licensed User Longtime User Nov 15, 2017 #4 Try this Code: Sub pnl_Touch(Action As Int,X As Float,Y As Float) Dim NumLab As Int = X /40dip ' if labels are 40dip Dim MyLabel As Label = pnl..getview(0) ' If are present only label Dim Tag As String = MyLabel.Tag Log("Clicked Label number : " & Tag) End Sub Assuming there are only labels in the panel and one under the other Upvote 0
Try this Code: Sub pnl_Touch(Action As Int,X As Float,Y As Float) Dim NumLab As Int = X /40dip ' if labels are 40dip Dim MyLabel As Label = pnl..getview(0) ' If are present only label Dim Tag As String = MyLabel.Tag Log("Clicked Label number : " & Tag) End Sub Assuming there are only labels in the panel and one under the other
D devmobile Active Member Licensed User Nov 15, 2017 #5 Star-Dust said: Try this Code: Sub pnl_Touch(Action As Int,X As Float,Y As Float) Dim NumLab As Int = X /40dip ' if labels are 40dip Dim MyLabel As Label = pnl..getview(0) ' If are present only label Dim Tag As String = MyLabel.Tag Log("Clicked Label number : " & Tag) End Sub Assuming there are only labels in the panel and one under the other Click to expand... My friend you mistake When i touch on label,Touch Event didn't raise and so i cannot detect touch When i touch part of panel that not exist label,Touch Event raised Upvote 0
Star-Dust said: Try this Code: Sub pnl_Touch(Action As Int,X As Float,Y As Float) Dim NumLab As Int = X /40dip ' if labels are 40dip Dim MyLabel As Label = pnl..getview(0) ' If are present only label Dim Tag As String = MyLabel.Tag Log("Clicked Label number : " & Tag) End Sub Assuming there are only labels in the panel and one under the other Click to expand... My friend you mistake When i touch on label,Touch Event didn't raise and so i cannot detect touch When i touch part of panel that not exist label,Touch Event raised
D devmobile Active Member Licensed User Nov 15, 2017 #7 Star-Dust said: Set Name Label Event empty Click to expand... What? I didn't what you say Can you give me example? Upvote 0
Star-Dust said: Set Name Label Event empty Click to expand... What? I didn't what you say Can you give me example?
Star-Dust Expert Licensed User Longtime User Nov 15, 2017 #8 I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from raising you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty so the panel event will be raised and captured Upvote 0
I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from raising you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty so the panel event will be raised and captured
D devmobile Active Member Licensed User Nov 15, 2017 #9 Star-Dust said: I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from lifting you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty Click to expand... Ok please let to me for try it Thanks I will coming soon Upvote 0
Star-Dust said: I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from lifting you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty Click to expand... Ok please let to me for try it Thanks I will coming soon
D devmobile Active Member Licensed User Nov 15, 2017 #10 Star-Dust said: I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from raising you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty so the panel event will be raised and captured Click to expand... I try it and i working Very Thanks But there is other problem I add labels in scrollview But we cannot detect touch for scollview Is right? Upvote 0
Star-Dust said: I understand that you do not want to capture the label Event but the panel event raised. To prevent the event from raising you need to set the label so: Label1.Initialize ("") If you design it, the name of the event must be empty so the panel event will be raised and captured Click to expand... I try it and i working Very Thanks But there is other problem I add labels in scrollview But we cannot detect touch for scollview Is right?
Star-Dust Expert Licensed User Longtime User Nov 15, 2017 #11 Please open new thread for this new question. Upvote 0
D devmobile Active Member Licensed User Nov 15, 2017 #12 Star-Dust said: Please open new thread for this new question. Click to expand... Ok Upvote 0
Star-Dust Expert Licensed User Longtime User Nov 16, 2017 #13 We will also appreciate a like Upvote 0
D devmobile Active Member Licensed User Nov 16, 2017 #14 Star-Dust said: We will also appreciate a like Click to expand... I'm sorry i forgot your like Very Very Thanks Upvote 0
Star-Dust said: We will also appreciate a like Click to expand... I'm sorry i forgot your like Very Very Thanks