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
 Hiding grips

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
pierrotsc Posted - Apr 12 2012 : 11:57:06
I am trying to hide the grips around an object. I am using:
ObjGripPen.Style := psClear;
ObjGripBrush.Style := bsClear;

But it has no effect.
When i click on an object, the grips appears around the objject. I want to hide them by code without clicking anywhere else.

Can it be done?
thanks.
P
4   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Apr 12 2012 : 13:52:58
I think i got it to work. I also had a selection grip on top of the object grip and it was the one that would stay. By using deselect, everything is good now. My mistake.
Sorry
fab Posted - Apr 12 2012 : 13:31:10
No, I tried an empty project with just a TImageEnVect. A button click executes ObjGripPen/ObjGripBrush settings, and the grips immediately hide.
Of course this is valid for "objects" grips, not for selection grips.
pierrotsc Posted - Apr 12 2012 : 13:25:02
maybe I am doing it wrong. It is really the last selected object grips I want to hide.
Do i need to add something else to my 2 lines statement? I still see all the yellow circles around my box..
Thanks.
fab Posted - Apr 12 2012 : 13:02:44
Please re-check.
In my tests setting ObjGripPen.Style and ObjGripBrush.Style actually hides the grips.