Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Custom FileBox behavior. preventing edit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom FileBox behavior. preventing edit

 Post Reply Post Reply
Author
Message
turbowagon View Drop Down
Newbie
Newbie


Joined: 28 June 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote turbowagon Quote  Post ReplyReply Direct Link To This Post Topic: Custom FileBox behavior. preventing edit
    Posted: 14 July 2005 at 5:53pm

Using the PropertyGrid sample program as an example, I would like to create something similar to the CCustomItemFileBox class in CustomItems.h.

However, I would like to prevent the user from editing the edit field, but still allow them to press the [...] file dialog button.

If I set the flags to disallow editing, the little file dialog button disappears.  Also, if I override the OnChar() method, it does not prevent entries in the edit box.

How can I acheive the desired behavior?

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: 15 July 2005 at 12:32am

Set

m_nFlags = xtpGridItemHasExpandButton; in its constructor

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
turbowagon View Drop Down
Newbie
Newbie


Joined: 28 June 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote turbowagon Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2005 at 12:27pm
Thanks!  That worked perfectly.  Don't know how I missed that.
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.203 seconds.