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
 ImageEnVect Add Text (no bounding rectangle)

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
andyhill Posted - Apr 12 2016 : 02:18:04
I have an ImageEnVect control that when I add a Text Object it always displays a bounding rectangle which I do not want.

How do you disable the bounding rectangle for iekTEXT ?

I save ieDisplay.Proc.SaveUndo() before adding the text then after use I try to remove it by ieDisplay.Proc.Undo() but it fails to be removed, please advise - thanks in advance.


  ieDisplay.Proc.SaveUndo();
  iObj:= ieDisplay.AddNewObject;
  ieDisplay.ObjKind[iObj]:= iekTEXT;
  if LeftIrisFlag = True then ieDisplay.ObjText[iObj]:= 'L'
  else ieDisplay.ObjText[iObj]:= 'R';
  ieDisplay.ObjTextAlign[iObj]:= iejCenter;
  ieDisplay.ObjTop[iObj]:= CentrePoint.Y-30;
  ieDisplay.ObjLeft[iObj]:= CentrePoint.X-30;
  ieDisplay.ObjPenColor[iObj]:= clWhite;
  ieDisplay.ObjFontHeight[iObj]:= 56;
  //ieDisplay.ObjBoxHighlight[iObj]:= False;
  //ieDisplay.ObjMemoBorderStyle[iObj]:= psClear; //TPenStyle;

...

  ieDisplay.Proc.Undo();



Andy
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 12 2016 : 23:35:32
Hi Andy

By default, TImageEnVect uses its own Undo stack. You can share the undo stack of TImageEnProc by setting ObjUndoMode:

http://www.imageen.com/help/TImageEnVect.ObjUndoMode.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
andyhill Posted - Apr 12 2016 : 18:21:03
Box gone - Great.

Why does ieDisplay.Proc.SaveUndo(); ... ieDisplay.Proc.Undo(); not restore bitmap back to before the text was added ?

Andy
xequte Posted - Apr 12 2016 : 16:23:04
Hi Andy

Please set:

ObjPenStyle[obj] := psClear;

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com