COMBOBOX CBS_SIMPLE

COMBOBOX CBS_SIMPLE

Postby Blessed » Thu Nov 19, 2009 6:35 pm

Hello, friends of the forum.
I need a thread with this;
I am having a problem with a combobox from resources in the RC is defined as follows:

Code: Select all  Expand view
COMBOBOX 800, 35, 7, 180, 62, CBS_SIMPLE | CBS_SORT | CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP


In the code is as follows:

Code: Select all  Expand view
REDEFINE COMBOBOX oGet VAR cOtrosBenef ITEMS aOtrosBenef ID 800 OF oCitas UPDATE


The combobox when introducing a new element in the list, the variable "cOtrosBenef" I get empty, and also Oget: VarGet (), not how to recover the value entered in the combobox, besides if I use the mouse to move the combobox loses the value entered.
There is another way to recover the value of the new item of the combobox, or some way to correct this.

I'm using 9.06 FWH

Greetings from Honduras :)
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

Re: COMBOBOX CBS_SIMPLE

Postby Antonio Linares » Tue Nov 24, 2009 12:50 pm

Oscar,

Could you please test FWH\samples\combos.prg and combos.rc and check if you get the same problem ? thanks
regards, saludos

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

Re: COMBOBOX CBS_SIMPLE

Postby Blessed » Tue Nov 24, 2009 2:05 pm

Antonio I appreciate your time.
I reviewed the example that follows, and the valid only works when you ENTER me with a new element, and with the tab key or the mouse on the combobox valid is ignored (Combo Simple).
Any suggestions are welcomed.

Greetings from Honduras :)
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

Re: COMBOBOX CBS_SIMPLE

Postby Antonio Linares » Tue Nov 24, 2009 2:35 pm

Oscar,

Those combos contain a GET control object, so you can also use their VALIDs, i.e.:

oCbx1:oGet:bValid := { || MsgBeep(), .T. }

Please check if that helps you, thanks
regards, saludos

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

Re: COMBOBOX CBS_SIMPLE

Postby Blessed » Tue Nov 24, 2009 3:59 pm

Antonio,

try this:

Code: Select all  Expand view
  oCbx1:oGet:bValid := { || MsgInfo( "Hello word", oCbx1:oGet:VarGet() ), .T. }
 


And it ignores the valid, with the mouse, the enter key and tab; And just how such "combos.prg" say the object is not updated, when introducing a new element; any other suggestions?

Thanks for the help :wink:
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.

Re: COMBOBOX CBS_SIMPLE

Postby Blessed » Thu Nov 26, 2009 4:06 pm

Okay, I'll have to use a combobox DROPDOWNLIST, and with new elements add a button, not pretty, but good.
Esperaro that in the not too distant future this is fixed, who knows maybe it will contribute.

Thanks for the help :wink:
Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
Blessed
 
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests