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 » CExtColorButton & Internationalization Collapse All
Subject Author Date
Ulrich Kallenbach Aug 9, 2004 - 12:25 PM

Hi,

I’ve been playing around with CExtColorButton and your ProfUIS_Control sample. It works great (just like Chris Maunder’s "Office 97 style Colour Picker control", but with adjustable Look&Feel for the first Popup). It is what I could use in a current project. However, it has a draw-back.

The tooltips showing the color names are constantly in English language. I’ve tried to change this, by changing the color table in ExtPopupMenuWnd.cpp (lines 11864 thru 11907) trying to read the color names from a resource (string table). But I could not get this to work. I tried CString.LoadString( IDS_something ) and CString( LPCSTR( IDS_something ) ) without success. It builds the library, but the application asserts, when trying to load the resource string.

Any hints?

Best regards,
Ulrich



Technical Support Aug 10, 2004 - 6:32 AM

Dear Ulrich,

To help you, we need some more details on where did you add the string resources and how they are loaded. You may also send us your test project so that we can help you as quick as possible.

Ulrich Kallenbach Aug 10, 2004 - 9:07 AM

Hello,

I changed the color table in ExtPopupMenuWnd (see above). I added #define IDS_something to ProfUISDLL\resource.h and put resp. StringTable entries to ProfUISDLL\profuisdll.rc. The libraries built without any problem.

The test app was created in VS 7.1 using the ProfUIS Wizard. It uses ProfUIS and MFC statically linked. The string resources were added with Visual Studio (identical to the changes in resource.h and profuisdll.rc).

Ulrich

Technical Support Aug 10, 2004 - 10:30 AM

You wrote "It uses ProfUIS and MFC statically linked" and this the answer to your question about why the resources are not loaded. Please note, any static configuration (see the profuislib project) does not contain any resources at all.

Ulrich Kallenbach Aug 12, 2004 - 1:56 AM

Hello,
you are right, profuislib comes without resources. But this leads me to another question: The test app (e.g. MyWonderfulApp) has a MyWonderfulApp.rc and a resource.h. If I redefine some resource (e.g. IDS_EXT_RESET_ALL_CMD_STATS) in there, the resource is loaded in MyWonderfulApp and the new values is used. Can this be implemented for the color names in CExtColorButton?  If yes, how can it be done?


Ulrich

Technical Support Aug 13, 2004 - 12:52 AM

By your request we could add the translated color names to Prof-UIS resourses. But this will take some time because we need to request the translation from the programmers who support the localizations.

Ulrich Kallenbach Aug 13, 2004 - 3:09 PM

Could be a good solution, but how long will ’some time’ last? In fact, I probably do not need a ’real’ solution, just English, German and French. I’ve noticed that if I add a resource string to ALL lanugage specifics in profuisdll, myapp does not assert. (Unfortunately it allways loads the Enlish string regardless of what I put into myapp’s .rc file). May be a short hint on what I’m still missing could provide a (quick & dirty) solution to this.

Technical Support Aug 14, 2004 - 10:08 AM

We added the color names to the library resource and they will be available in the next version of Prof-UIS. We plan to publish soon Prof-UIS 2.26 that will include the Automation support for GUI elements and some bug fixes.