Combobox not change

Combobox not change

Postby souza.fo » Mon May 10, 2010 3:43 pm

The code below does not work:

Code: Select all  Expand view  RUN

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
souza.fo
 
Posts: 8
Joined: Thu Apr 22, 2010 1:31 pm

Re: Combobox not change

Postby Antonio Linares » Wed May 12, 2010 9:07 pm

Fabio,

Are you using it from a window or from a dialog ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Combobox not change

Postby souza.fo » Fri May 14, 2010 1:24 pm

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


Thanks,

Fabio Souza
souza.fo
 
Posts: 8
Joined: Thu Apr 22, 2010 1:31 pm

Re: Combobox not change

Postby Antonio Linares » Fri May 14, 2010 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 10 guests