Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Ellipsis button handler? Collapse All
Subject Author Date
Krustys Donuts Aug 12, 2005 - 3:21 PM

Hi, I’m trying to get my dialog to do something when the user clicks on an ellipsis button (CExtGridCell with the __EGCS_BUTTON_ELLIPSIS style bit ste). However, when I traced through the source, I saw that the OnButtonPressed handler handles three button types (updown/up, updown/down, and dropdown), but not the ellipsis! Would it be possible to add this functionality soon, and have it call something in CExtTreeGridWnd?

Technical Support Aug 13, 2005 - 12:56 PM

There must be some misunderstanding. The CExtGridCell::OnButtonPressed() virtual method is invoked from the CExtGridWnd::OnGridTrackCellButton() button. Please run the PropertyGridSample application and click the ellipsis button in the Misc/File property value. You can see how the CExtGridCellFile::OnButtonPressed() method shows the standard File Open dialog.

Krustys Donuts Aug 14, 2005 - 11:46 AM

The idea behind my approach is that I don’t want to have to subclass every Prof-UIS class just to implement slightly customized behavior. That’s why I was poking into CExtGridCell to see if would be possible to add some generic behavior. Ideally, it would just call back into the gridwnd, and then I could add my custom code elsewhere... like in my subclass CExtGridCtrl class.

Technical Support Aug 14, 2005 - 12:22 PM

We agree with you. We already added a set of new OnGridCell...() methods to the CExtGridWnd class. It seems we should extend the number of such methods to cover all the possible cell events.

Krustys Donuts Aug 14, 2005 - 9:05 PM

Yes, please, that would be fantastic! We would much prefer this sort of approach vs. having tons of subclasses in our projects.