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 » CheckBox doesn't work correctly Collapse All
Subject Author Date
Finn Arildsen Jul 14, 2004 - 2:04 PM

 


Thanks for your excellent framework.   In general, I find it very easy to work with it.   However, I have a problem with a checkbox on a toolbar.


I create a CExtButton with the following style


WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX


and as the parent use a toolbar derived from CExtToolControlBar, then use SetButtonCtrl to position the control on the toolbar.


This checkbox behaves terribly.  


1)  There is no box as such apparent, but if I click on the area, a check mark appears, then disappears correctly if I click again.


2)  The check mark also disappears if I hover the cursor over the control.  This is not correct behavior.


Can you help me out of this trouble, i.e. tell me how I create a checkbox correctly.


Thanks,


Finn Arildsen


 


PS: I think it is crucial that there is a visible box to put the check mark in, otherwise the user will never recognize this as a checkbox control.

Technical Support Jul 15, 2004 - 2:10 AM

We sent you a test project by e-mail. Please take a look at the CMainFrame::CCheckBoxButton class. It should fit your requirements