Combobox in toolbar question....

This is a discussion on Combobox in toolbar question.... within the Windows Programming forums, part of the Platform Specific Boards category; Ok, I get how to add a combox to the end of a toolbar... Just create the combox as a ...

  1. #1
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547

    Question Combobox in toolbar question....

    Ok, I get how to add a combox to the end of a toolbar...

    Just create the combox as a child of the toolbar and away it goes...

    But how do you put one at the beginning or in the middle of the buttons?

    That is... how do you get the buttons to move out of the way?

    (This is the first time I've tried this... fwiw)

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Never mind.... Figured it out....

    Just create a text button on the toolbar where the combobox will sit and pad it out with spaces....

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Well... that almost worked.

    Only thing is I can't tab to the combobox...

    Any suggestions?

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Bump.... Still trying to get this to work....

  5. #5
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Did you create it with the WS_TABSTOP window style?

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by SMurf View Post
    Did you create it with the WS_TABSTOP window style?
    Yep... but because it's a child of the toolbar, it never see the tabs... You can tab to a toolbar but you can't tab inside one...

    I tried subclassing with the Want Tab response to WM_GETDLGCODE message, tried creating the combobox inside the subclass... I can get it to display correctly but there's just now way to tab to it.

    I even tried using a rebar control and you STILL can't tab to it.

    Normally I would not make a fuss over this but I have a couple of users who are disabled and mousing just isn't their thing...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie question, C #
    By mate222 in forum C# Programming
    Replies: 4
    Last Post: 12-01-2009, 05:24 AM
  2. toolbar button question
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 05-25-2009, 08:24 PM
  3. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  4. Win32 COMBOBOX 'Enter' Key??
    By tdk_ratboy in forum Windows Programming
    Replies: 0
    Last Post: 04-17-2004, 05:52 PM
  5. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21