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
 Hiding grips
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - Apr 12 2012 :  11:57:06  Show Profile  Reply
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

fab

1310 Posts

Posted - Apr 12 2012 :  13:02:44  Show Profile  Reply
Please re-check.
In my tests setting ObjGripPen.Style and ObjGripBrush.Style actually hides the grips.
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Apr 12 2012 :  13:25:02  Show Profile  Reply
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.
Go to Top of Page

fab

1310 Posts

Posted - Apr 12 2012 :  13:31:10  Show Profile  Reply
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.
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Apr 12 2012 :  13:52:58  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: