tufanv Expert Licensed User Longtime User Apr 17, 2016 #1 Hello I am using : Code: Copy for i=0 to listtakip.size-1 panel(i).Initialize("panel") panel(i).SetBorder(1,Colors.RGB(235,235,235),3) panel(i).Color=Colors.Transparent panel(i).Tag=eskitext.SubString2(eskitext.IndexOf("secilenid")+9,eskitext.Length) next in a sub. In another sub i want to retrieve which panel clicked. So I have to use a code with the following sub: Code: Copy sub panel_click end sub but i cant retrieve the tag of the clicked panel. I tried log(panel().tag) with no luck. What must i use to be able to retrieve the tag of the clicked panel? TY
Hello I am using : Code: Copy for i=0 to listtakip.size-1 panel(i).Initialize("panel") panel(i).SetBorder(1,Colors.RGB(235,235,235),3) panel(i).Color=Colors.Transparent panel(i).Tag=eskitext.SubString2(eskitext.IndexOf("secilenid")+9,eskitext.Length) next in a sub. In another sub i want to retrieve which panel clicked. So I have to use a code with the following sub: Code: Copy sub panel_click end sub but i cant retrieve the tag of the clicked panel. I tried log(panel().tag) with no luck. What must i use to be able to retrieve the tag of the clicked panel? TY
narek adonts Well-Known Member Licensed User Longtime User Apr 17, 2016 #2 Sub panel_click Dim pnl as Panel=Sender Log(pnl.Tag) End Sub Upvote 0
tufanv Expert Licensed User Longtime User Apr 17, 2016 #3 to the point , works perfect. Thanks Narek ! Upvote 0
tufanv Expert Licensed User Longtime User Apr 27, 2016 #4 I have another question for this. with Narek's help i can get the tag but i also want to change the other panels ( for example panel(5)) from another sub so i can change a panel's color from other sub. I cant declare the panel in process globals because i need the list size in jobdone sub. So i decalre them in jobdone. How can i reach the panel from outside sub so i can change its properties. ? Upvote 0
I have another question for this. with Narek's help i can get the tag but i also want to change the other panels ( for example panel(5)) from another sub so i can change a panel's color from other sub. I cant declare the panel in process globals because i need the list size in jobdone sub. So i decalre them in jobdone. How can i reach the panel from outside sub so i can change its properties. ?
narek adonts Well-Known Member Licensed User Longtime User Apr 27, 2016 #5 Create a List and add when creating a panel add it to that list. And after Dim pnl as Panel=panellist.get... Upvote 0
Create a List and add when creating a panel add it to that list. And after Dim pnl as Panel=panellist.get...