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 » Problems with PropertyGrid Collapse All
Subject Author Date
Ulrich Heinicke Mar 4, 2009 - 3:18 PM

Hi,


i have a problem with the PropertyGrid. When i choose an item from a  combobox, then the text, that will be displayed, is changed but not in bold. In the Apply-function i can retrieve with GetCurSel only the old value. Only when i highlighted the text and choose a secound time an item from the combobox, then GetCursel gives me the new value.


I send you yesterday an example per mail.


Please tell me what’s wrong.


Ulrich


 

Technical Support Mar 15, 2009 - 10:03 AM

We still didn’t receive any e-mail from you.

Technical Support Mar 5, 2009 - 8:05 AM

We compiled and run the test project you sent us. If we change the ’Aussehen’ property, then it becomes bold. The result message box displays new theme index each time. If we open the options dialog with the property grid inside second time, then the ’Aussehen’ property displays old theme value. This happens because the COptionDlg is reconstructed again and its m_Values contains constructed by default property tree. This is not correct. We think the property store should be kept somewhere outside the options dialog or the COptionDlg class instance should not be re-created in the COptionDialogDlg::OnBnClickedSettings() method each time you need to display this dialog.

Ulrich Heinicke Mar 13, 2009 - 4:48 PM

Hi,


the problem isn’t solved. I modify the example and send you a small video qbout the problem last friday per mail. So i need a solution.


Ulrich