microera Posted January 15, 2011 Share Posted January 15, 2011 Hi I Create one Graphic within GUI (Graph_UDF.au3) ....... Global $Graphic2 = _Graph_Create($x_GUIstart, $y_2GUIstart, $cGraphWidthPixel, 88, $Const_SelectColor, 0xFFFFFF) GUICtrlSetOnEvent($Graphic2[1], "Graphic2Click") ....... In $Graphic2[1] is ControlID This ControlID is from Graph_UDF.au3: GUICtrlCreateGraphic($iLeft, $iTop, $iWidth + 1, $iHeight + 1) If I click on this Graphic function "Graphic2Click" is runing OK but if I plot on this graphic some lines or labels .... then Click on this $Graphic2 isn't possible anymore! Why? p.s. I check with "Auitoit v3 Window Info" and ID for this Graphic is allways same! Only Instance is different (before ploting 2...after ploting 26) Link to comment Share on other sites More sharing options...
microera Posted January 20, 2011 Author Share Posted January 20, 2011 download: http://freeweb.siol.net/js1234/Sony_red_button.txt http://freeweb.siol.net/js1234/g1_tmp.au3 http://freeweb.siol.net/js1234/Graph_UDF_Joze.au3 run: g1_tmp.au3 and click on all 4 Graphic (rectangle) for example..... in console windows allways see one of all fore activated Graphics: $indexIR=1 $GraphicACTIVE= ... But if you "load" Sony_red_button.txt: File.....OpenLOG ..... load Sony_red_button.txt we see Graphic1! All OK! But if we click on Graphic1 (above 1st graphic) then Graphic1Click NEVER happen! Why? p.s. all other Graphic2Click (and3 and4) working OK! p.s.2 I'm beginner on gui! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now