![]() |
Custom FileBox behavior. preventing edit |
Post Reply ![]() |
Author | |
turbowagon ![]() Newbie ![]() Joined: 28 June 2005 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Set m_nFlags = xtpGridItemHasExpandButton; in its constructor |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
turbowagon ![]() Newbie ![]() Joined: 28 June 2005 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Thanks! That worked perfectly. Don't know how I missed that.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |