From: Rodrigo M. <rod...@te...> - 2004-05-09 23:03:25
|
Marcos, Thanks, but i not understand ? FindWindowEx return a handle ? What is the next step, use FindControl ? I've tried GetEditText( getmodalhandle(), oCombo:id) ) and is fine, also, i've used SetDlgItemText to set the string, and its ok too. My plans is add 2 new parameters to @..COMBOBOX: EDIT TEXT. EDIT, will set the TEXT parameter to true by default and allow the user change combo entry and get string value. TEXT, will allow the user use string values. Any suggestions ? Regards Rodrigo -----Mensagem original----- De: hwg...@li... [mailto:hwg...@li...]Em nome de Marcos Antonio Gambeta Enviada em: domingo, 9 de maio de 2004 18:22 Para: Rodrigo Moreno; HwGui-Developers Assunto: Re: [Hwgui-developers] Getting type value in a ComboBox > I have changed the combobox style from CBS_DROPDOWNLIST to CBS_DROPDOWN, > it's allow the user change the supplied options. But the question is: How to > get the value typed by user ? Or, i need to get the string value typed by > the user. Rodrigo, Try this: 1. Use FindWindowEx to get the handle of the edit control: hedit := FindWindowEx( oCombo:handle, 0, "Edit", Nil ) 2. Get the text of the edit control. The function FindWindowEx: HB_FUNC( FINDWINDOWEX ) { hb_retnl( (LONG) FindWindowEx( (HWND) hb_parnl(1), (HWND) hb_parnl(2), (LPCSTR) hb_parc(3), (LPCSTR) hb_parc(4) ) ) ; } Regards, Marcos Gambeta --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.679 / Virus Database: 441 - Release Date: 7/5/2004 ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Hwgui-developers mailing list Hwg...@li... https://lists.sourceforge.net/lists/listinfo/hwgui-developers |