Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Read Only Property with button functionality
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Read Only Property with button functionality

 Post Reply Post Reply
Author
Message
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Topic: Read Only Property with button functionality
    Posted: 06 June 2007 at 5:02pm
Hi can there be a way to set an item to being readOnly = true and still have the in place button inside that item still fire? we are trying lock down the item so it forces the user to make all the changes in a popup fired by the button.

Thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2007 at 1:29am
Hi,
 
You can remove ItemHasEdit flag from Item.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Fossil View Drop Down
Groupie
Groupie
Avatar

Joined: 29 April 2006
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fossil Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2007 at 11:17am
What we tried was Item.Flags=Not ItemHasEdit and that added a Expand Button to the Item.  What I am doing is setting the forecolor of both the caption and value to gray text color and in request_edit setting cancel to true.  Which seems to work.  Did you mean something else?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2007 at 1:22am
Its also nice solution.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2007 at 11:51am
Oleg -
What would this logical syntax look like in C#?  Obviously the compiler is not happy with item.Flags = !(PropertyItemFlags.ItemHasEdit);
 
I would like to make all property items read-only without changing their visual appearance (item.ReadOnly dims the item).
 
Thanks ~ jp
 
EDIT:  Not too sure if this is a clear way of doing it... but item.Flags = 0; did what I wanted it to
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2007 at 5:49am
Hi,
 
Yes, you need Item.Flags = 0.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.