Sign in to follow this  
Followers 0
microera

GUICtrlCreateGraphic .... plot ....Graphic1Click

2 posts in this topic

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)

Share this post


Link to post
Share on other sites



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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0