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. General Programming
  3. C / C++ / MFC
  4. ComboBox display problem on Windows 98

ComboBox display problem on Windows 98

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studioquestion
5 Posts 3 Posters 0 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
    J B 0
    wrote on last edited by
    #1

    Hello guys, I am encountering a problem with serveral ComboBox objects created directly from the resouce editior of my dialog-based program. The style is drop-down with a pre-entered set of data. The comboboxes in Windows XP would appear fine, clicking the arrow on the side will show a dropdown list displaying all the item strings. But when running the app in Windows 98, the dropdown list only extends to the height which just occupies the first item. I can, however, go through previous/next items by using the up/down arrow keys. Further, if I then enable "Vertical Scrollbar", a vertical scrollbar will now be available on the dropdown list, which I can use to go through the items. In Windows XP, enabling vertical scrollbar does not make any difference. Clicking on the arrow still gives the complete dropdown list. I am not sure why it happens? Does it sound like IDE related issue? I am using .Net 2002 Please help, thanks alot

    K 1 Reply Last reply
    0
    • J J B 0

      Hello guys, I am encountering a problem with serveral ComboBox objects created directly from the resouce editior of my dialog-based program. The style is drop-down with a pre-entered set of data. The comboboxes in Windows XP would appear fine, clicking the arrow on the side will show a dropdown list displaying all the item strings. But when running the app in Windows 98, the dropdown list only extends to the height which just occupies the first item. I can, however, go through previous/next items by using the up/down arrow keys. Further, if I then enable "Vertical Scrollbar", a vertical scrollbar will now be available on the dropdown list, which I can use to go through the items. In Windows XP, enabling vertical scrollbar does not make any difference. Clicking on the arrow still gives the complete dropdown list. I am not sure why it happens? Does it sound like IDE related issue? I am using .Net 2002 Please help, thanks alot

      K Offline
      K Offline
      krithika_Ramanujam
      wrote on last edited by
      #2

      hi I think the problem is u didnt pull down the extent of ur combo drop down in the resource view, Go to your resource view,get the respurce where ur combo is,click on the dropdown arrow,u will get a dotted box, pull it down to the extent u want to display the data When u do this, vertical scroll appears automatically...:) Thanks krithika

      J 1 Reply Last reply
      0
      • K krithika_Ramanujam

        hi I think the problem is u didnt pull down the extent of ur combo drop down in the resource view, Go to your resource view,get the respurce where ur combo is,click on the dropdown arrow,u will get a dotted box, pull it down to the extent u want to display the data When u do this, vertical scroll appears automatically...:) Thanks krithika

        J Offline
        J Offline
        J B 0
        wrote on last edited by
        #3

        Thanks for the reply, krithika, I go back to the resource view and indeed there are two different selection boxes, when you click on the combobox conetent location and the drop-down arrows. I have extended the drop-down view box and hopefully it will make a difference. Will report back. Assuming it works, why it doesn't cause a problem when the app is running on Windows XP?

        M 1 Reply Last reply
        0
        • J J B 0

          Thanks for the reply, krithika, I go back to the resource view and indeed there are two different selection boxes, when you click on the combobox conetent location and the drop-down arrows. I have extended the drop-down view box and hopefully it will make a difference. Will report back. Assuming it works, why it doesn't cause a problem when the app is running on Windows XP?

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          J.B. wrote: why it doesn't cause a problem when the app is running on Windows XP? The OS is compensating for the (very common) error of forgetting to set the combo box height properly. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

          J 1 Reply Last reply
          0
          • M Michael Dunn

            J.B. wrote: why it doesn't cause a problem when the app is running on Windows XP? The OS is compensating for the (very common) error of forgetting to set the combo box height properly. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

            J Offline
            J Offline
            J B 0
            wrote on last edited by
            #5

            Michael Dunn wrote: The OS is compensating for the (very common) error of forgetting to set the combo box height properly. That's exactly the mistake I made. Reszing Combobox's dropdown box height solves the problem in Windows 98. Thanks guys

            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