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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnVect Add Text (no bounding rectangle)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
159 Posts

Posted - Apr 12 2016 :  02:18:04  Show Profile  Reply
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

xequte

39053 Posts

Posted - Apr 12 2016 :  16:23:04  Show Profile  Reply
Hi Andy

Please set:

ObjPenStyle[obj] := psClear;

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

andyhill

Australia
159 Posts

Posted - Apr 12 2016 :  18:21:03  Show Profile  Reply
Box gone - Great.

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

Andy
Go to Top of Page

xequte

39053 Posts

Posted - Apr 12 2016 :  23:35:32  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: