locked
Windows CE 5.0, make controls larger so that you can use your fingers... RRS feed

  • Question

  • When I am edting a dialog, some controls cannot be make larger (i.e. combo box). How does one get around this? The reason for wanting larger controls is so that the end user can use their fingers instead of a stylist.

     

    Thanks

    Monday, June 9, 2008 1:36 PM

Answers

  • I don´t know how to do that with built-in Functions. The only thing you can do is to draw the whole control by yourself.

    Take a look at http://www.codeproject.com/KB/combobox/

    There are articles on subclassing and deriving you own control class.

    Wednesday, June 11, 2008 7:36 AM

All replies

  • You can do it per Code.

    For example:

     

    Code Snippet
    GetDlgItem(IDC_COMBO1)->SendMessage(CB_SETITEMHEIGHT,-1,200);

     

     

     

    See MSDN for more Infos: http://msdn.microsoft.com/en-us/library/ms907150.aspx
    Tuesday, June 10, 2008 6:49 AM
  • Patrick,

     

    That works great to increase the height, but how do I make the drop down button larger? When I increase the height, it does not increase the button's width proportionally.

     

    Any ideas?

     

    I would think there would be a way. I tried using Remote Spy++, but I could not see the objects that make up the combo box.

    Tuesday, June 10, 2008 2:55 PM
  • I don´t know how to do that with built-in Functions. The only thing you can do is to draw the whole control by yourself.

    Take a look at http://www.codeproject.com/KB/combobox/

    There are articles on subclassing and deriving you own control class.

    Wednesday, June 11, 2008 7:36 AM
  • Some properties, including the drop down button width can be changed globally in GWES Registry Settings.

    Monday, June 18, 2018 8:12 AM