Combobox - prevent DropDown

forum.td.development (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Combobox - prevent DropDown

Post by NewsgroupServer » 16 Mar 2010, 09:10

 Posted by:  Klaus Haidinger 

Hi!

is it possible to create a combobox, which does´nt dropdown?
a return FALSE on SAM_DropDown or VisListSetDropdownState() doesn´t work.

TD52 SP1

thank you
klausl

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Combobox - prevent DropDown

Post by NewsgroupServer » 16 Mar 2010, 16:01

 Posted by:  Thomas 

Hi, Klaus.
Maybe you like it like that?!

On SAM_Create
Call SalDisableWindow( hWndItem )

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Combobox - prevent DropDown

Post by NewsgroupServer » 17 Mar 2010, 07:32

 Posted by:  Klaus Haidinger 

Hi Thomas,

thank you, but i need the datafield part of the combobox and the
listbox-button, too. the
only thing is that the listbox shouldn´t popup.

regards
klaus

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Combobox - prevent DropDown

Post by NewsgroupServer » 24 Mar 2010, 22:14

 Posted by:  Dave Rabelink 

Hi Klaus,

I just uploaded a sample which actually does this.

Download it from here:
http://samples.tdcommunity.net/index.php?dir=&file=WIKI_PreventComboboxDropdown.zip

Is this what you need?

Regards,
Dave

Return to “td.development”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests