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 General Discussion » ComboBox doesnt load resourcestring at initialization in relase built Collapse All
Subject Author Date
Thees Schwab Jan 14, 2005 - 8:55 AM

Hello,

I use several CExtComboBox objects in the Resizable property class. In the release build (static MCBS with MFC DLL) the comboboxes do not load the predefined strings but stay empty (All comboboxes in the project behave that way in release mode). I have to add them manually with the AddString member what I dont want to do. In the debug built it works fine.

See screenshot at http://mxcontrol.sf.net/emptycombo.jpg

Visual C++ 6.0 Pro, Prof-UI freeware 2.27

Thees Schwab Jan 15, 2005 - 3:06 AM

OK I played around with this a bit more and it seems to be a bug in the CExtResizablePropertyPage or CExtChildResizablePropertySheet classes. To reproduce this bug you can use the ResizableChildSheet example from the Prof-UIS Samples. Add a combobox to IDD_DIALOG_PAGE1 for example with some strings in it and start the program. The ComboBox will be emtpy :-(

Technical Support Jan 15, 2005 - 5:06 AM

This bug is already fixed. Please download Prof-UIS 2.27 from our website again. We are sorry for inconvenience we may have caused.

Thees Schwab Jan 15, 2005 - 5:32 AM

Sorry, but I redownloaded 2.27 rebuilt the library, rebuilt the project but the problem is still there.

Technical Support Jan 15, 2005 - 5:43 AM

Could you send us a test project that demonstrates the problem? That would be of great help in this case.

Thees Schwab Jan 15, 2005 - 7:27 AM

I made a simple project that is based on the resizable property sheet sample.

You can download it from here:

http://mxcontrol.sourceforge.net/mirror/ComboBoxBug.zip

Technical Support Jan 17, 2005 - 2:29 AM

We confirm the problem you described. But, in fact, it is not a real bug. You may insert a combo box into some page in the ResizablePropertySheet sample application and make sure that all strings are displayed OK. This sample is also based on the CExtResizablePropertySheet and CExtResizablePropertyPage classes. In fact, the property sheet window is designed to be pop-up with its caption and border. It is not designed to be a child window like that demonstrated in the ResizableChildSheet sample application in which this "bug" can be also reproduced. The child property sheet is our experimental work. It is based on the standard Windows property sheet control but implements much more features. For instance, when we created the Windows property sheet window as a child window we found out that Ctrl+Tab does not switch between controls on the page. So, we had to code keyboard handlers from scratch.

Of course, we will try to fix this problem in a few days time.

Thees Schwab Jan 17, 2005 - 9:43 AM

Oh, OK. Thanks for your time :) For now I just add the strings manually.

Thanks for this great lib. Hope I have some money soon to buy the full version ;)