Problems displaying icons in a dialog
-
I am trying to give my WinCE a better look by including icons on my dialogs. I have used "Create Picture Control" button from the "Controls" tool bar in the resources editor. I choose the apropiate resource and the icon appears there. I also test the dialog with the "test" button and it looks and acts as desired. The problem comes when I run the application on my Pocket PC or the emulator. There is no signal of the icons in any of those devices. I have checked the icon's properties and they seem to be correct (visible and so on). Have you experienced the same problems? Is there any solution? Answers and advice are welcome :)
-
I am trying to give my WinCE a better look by including icons on my dialogs. I have used "Create Picture Control" button from the "Controls" tool bar in the resources editor. I choose the apropiate resource and the icon appears there. I also test the dialog with the "test" button and it looks and acts as desired. The problem comes when I run the application on my Pocket PC or the emulator. There is no signal of the icons in any of those devices. I have checked the icon's properties and they seem to be correct (visible and so on). Have you experienced the same problems? Is there any solution? Answers and advice are welcome :)
Hi, Did you check if your icon's resource language is the same as the one you chose in the New Project wizard? If the languages are different, your resources will not be compiled into the executable. I always use English (U.S.) and everything has always worked fine. João Paulo
-
Hi, Did you check if your icon's resource language is the same as the one you chose in the New Project wizard? If the languages are different, your resources will not be compiled into the executable. I always use English (U.S.) and everything has always worked fine. João Paulo
Hello again As Joao suggested I have right-clicked on every resource of this project and I have selected English (US) as language for each of them. But the problem remains the same (no icon displayed). When searching for "Language" in my project, I still find sentences like // Spanish (Castilian) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP) #ifdef _WIN32 LANGUAGE LANG_SPANISH, SUBLANG_SPANISH #pragma code_page(1252) #endif //_WIN32 and others with LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US Is this the reason for the problem to continue? How can I select a single Language for my project and resources? Will I have problems displaying special characters (eg. ñ, á) if I use English as language? Thank you in advance. José M Castellanos survival-programming for beginners :)
-
Hello again As Joao suggested I have right-clicked on every resource of this project and I have selected English (US) as language for each of them. But the problem remains the same (no icon displayed). When searching for "Language" in my project, I still find sentences like // Spanish (Castilian) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP) #ifdef _WIN32 LANGUAGE LANG_SPANISH, SUBLANG_SPANISH #pragma code_page(1252) #endif //_WIN32 and others with LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US Is this the reason for the problem to continue? How can I select a single Language for my project and resources? Will I have problems displaying special characters (eg. ñ, á) if I use English as language? Thank you in advance. José M Castellanos survival-programming for beginners :)
Jose M Castellanos wrote: Is this the reason for the problem to continue? I don't think so. There is no problem in having your resources in different languages, as long as you have a similar set for each language. What you should check now is for the resource language defined in your project settings (Alt+F7 in eVC3). Go to the "Resources" tab and choose the language - English (U.S.), rebuild the project, and it should work out fine. Note that there should be no problem in choosing other language for your resources, as long as you keep all settings in sync. Good luck! João Paulo Figueira