FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Combobox not change
Posts: 8
Joined: Thu Apr 22, 2010 01:31 PM
Combobox not change
Posted: Mon May 10, 2010 03:43 PM
The code below does not work:

Code (fw): Select all Collapse
STATIC aQtdes, cQtde

(...)

aQtdes := { "1", "2", "3", "4", "5", "6" }
cQtde := "1"

@ 13,98.5 COMBOBOX oCmbnQtde VAR cQtde OF oWndProdutos ITEMS aQtdes SIZE 20,75 PIXEL 

(...)

MudarQtde()

(...)

STATIC FUNCTION MudarQtde()
 oCmbnQtde:nAt := 2         // this does not work
 oCmbnQtde:SetText("2")   //this does not work
 oCmbnQtde:Select(2)        // this does not work
 oCmbnQtde:Refresh()  
RETURN .T.


Even if the style is changed (CBS_DROPDOWN, CBS_DROPDOWNLIST), still does not work.


Best Regards,

Fabio Souza
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Combobox not change
Posted: Wed May 12, 2010 09:07 PM

Fabio,

Are you using it from a window or from a dialog ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8
Joined: Thu Apr 22, 2010 01:31 PM
Re: Combobox not change
Posted: Fri May 14, 2010 01:24 PM

I'm using Dialog.
I use TSBUTTON, but it does not work with Window.

Thanks,

Fabio Souza

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Combobox not change
Posted: Fri May 14, 2010 05:12 PM

Fabio,

Please build and test samples\combos.prg and check if it works for you, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion