Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Problems displaying icons in a dialog

Problems displaying icons in a dialog

Scheduled Pinned Locked Moved Mobile
helpquestionlearning
4 Posts 2 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jose M Castellanos
    wrote on last edited by
    #1

    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 :)

    J 1 Reply Last reply
    0
    • J Jose M Castellanos

      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 :)

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        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

        J Offline
        J Offline
        Jose M Castellanos
        wrote on last edited by
        #3

        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 :)

        J 1 Reply Last reply
        0
        • J Jose M Castellanos

          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 :)

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups