ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 objects can't response doubleclick event

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
winner Posted - Oct 27 2012 : 14:11:26
I draw some box in imageenvector,but these objects can response doubleclick event,why?I set propority of objectselected,but I can't select it ? I found that some object can response objmouseover,but some cant response?

with img1 do
begin
for i := 0 to 10 do
begin
hobj := AddNewObject;
ObjKind[hobj]:= iekBOX;
ObjLeft[hobj]:= 200 ;
ObjTop[hobj]:= 200+40+16*(i);
ObjWidth[hobj]:= 21;
ObjHeight[hobj]:=5;
ObjPenColor[hobj]:=clBlue;
ObjStyle[hobj]:=ObjStyle[hobj]+[ievsSelectable];
ObjName[hobj]:='P'+inttostr(i+1);
end;

procedure TfrmGen.img1ObjectOver(Sender: TObject; hobj: Integer);
begin
stBar1.Panels[0].Text:=img1.ObjName[hobj];
end;

procedure TfrmGen.img1ObjectDblClick(Sender: TObject; hobj: Integer);
begin
stBar1.Panels[1].Text:=img1.ObjName[hobj];
end;
5   L A T E S T    R E P L I E S    (Newest First)
winner Posted - Nov 02 2012 : 20:22:49
I found the reason is the box was coverd by other objects ,so it can't response!
thanks all!
winner Posted - Oct 31 2012 : 16:17:09
thank you .
I try your suggestion. click and dbclick canot response yet.
w2m Posted - Oct 31 2012 : 06:04:39
Yor code works just fine here. DoubleClick and OnMouseover work as expected. You may want to try this:
ImageEnVect1.MaxSelectionDistance := 10;
I can not determine what is causing your problem with the code you provided.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
winner Posted - Oct 31 2012 : 04:20:25
which one can help me how to resolve this question ?
thx!
winner Posted - Oct 30 2012 : 15:44:29
snap picture


5.92 KB