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 » CExtPopupDatePickerMenuWnd usage Collapse All
Subject Author Date
Neville Franks May 21, 2007 - 1:38 AM

What is the correct method to handle a date selection using CExtPopupDatePickerMenuWnd? I can’t find anything on this class in the Help and the samples show instantiating it, but not interacting with it.

Do I derive a new class from CExtPopupDatePickerMenuWnd, overide _OnMouseClick() and then use the m_pExternalSelectionInfo atribute?

I want to know that user has clicked on a date and then get that date.

Thanks,
Nevillle

Technical Support May 21, 2007 - 10:24 AM

It depends on you are using the CExtPopupDatePickerMenuWnd. If it is a CExtBarDateFieldButton toolbar button or menu item, you can override the CExtCustomizeSite::OnPopupDatePickerSelChange() virtual method in your CMainFrame class. If you are using CExtPopupDatePickerMenuWnd directly as a menu item, you can do this by handling the CExtDatePickerWnd::g_nMsgSelectionNotification notification. So to provide you with a more detailed answer, we need more details about in which way you are using CExtPopupDatePickerMenuWnd.

Neville Franks May 21, 2007 - 4:45 PM

I found the sample code that uses the CExtDatePickerWnd::g_nMsgSelectionNotification and have it all working now.

Thanks for your help,
Neville

Neville Franks May 21, 2007 - 3:00 PM

Thanks for the reply. I am using it from a menu item.

Neville.

Neville Franks May 21, 2007 - 6:05 AM

I’ve noticed there is a: CExtPopupInplaceDatePicker::pCbDatePickerSelection m_pCbDatePickerSelection; function pointer in CExtPopupDatePickerMenuWnd. Is this what’s used to get date picker notifications? If so can you provide a code example.

Thanks,
Neville