Results 1 to 4 of 4

Thread: DropDown Combo w/Search Button and Cue Text

  1. #1

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Lightbulb DropDown Combo w/Search Button and Cue Text

    A DropDown (only) style ComboBox with a built-in search button.
    Created with VB10/FW 4.0.


    Version 1.01: Nov 11, 2014

    * Added property CueBannerText:
    Sets a textual cue displayed in the ComboBox edit control to prompt user for information.

    * Added property CueBannerAlways:
    Controls visibility of cue banner text when edit control has focus.


    Name:  ComboBoxButton.png
Views: 755
Size:  14.8 KB
    Attached Files Attached Files
    Last edited by Edgemeal; Nov 12th, 2014 at 01:12 AM. Reason: Version 1.01

  2. #2

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: DropDown Combo w/Search Button and Cue Text

    Update v1.01:
    Added CueBannerText, This was a bit tricky since you can't call the SendMessage API until the control has been created.

  3. #3
    PowerPoster
    Join Date
    Oct 2010
    Posts
    2,141

    Re: DropDown Combo w/Search Button and Cue Text

    Hi Edgemeal,

    You may want to look at the CB_SETCUEBANNER message as an alternative to EM_SETCUEBANNER.

  4. #4

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: DropDown Combo w/Search Button and Cue Text

    Quote Originally Posted by TnTinMN View Post
    Hi Edgemeal,

    You may want to look at the CB_SETCUEBANNER message as an alternative to EM_SETCUEBANNER.
    Didn't know about that!
    Thanks

    EDIT: I probably just leave the code as is for awhile since CB_SETCUEBANNER is Vista minimum.
    Last edited by Edgemeal; Nov 22nd, 2014 at 11:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width