- Code: Select all Expand view
- METHOD Select( nItem ) INLINE ::nAt := nItem,;
::SendMsg( CB_SETCURSEL, nItem - 1, 0 )
It seems, that the variable is not updated if i use ::select(). In method Select() should be added a ::change()!
METHOD Select( nItem ) INLINE ::nAt := nItem,;
::SendMsg( CB_SETCURSEL, nItem - 1, 0 )
METHOD SelectItem( nItem ) CLASS TComboBox
::nAt := nItem
::SendMsg( CB_SETCURSEL, nItem - 1, 0 )
if ::nAt == 0
return nil
endif
if ::nAt <= Len( ::aItems )
if ValType( Eval( ::bSetGet ) ) == "N"
Eval( ::bSetGet, ::nAt )
else
Eval( ::bSetGet, ::aItems[ ::nAt ] )
endif
endif
if ! Empty( ::oGet:hWnd )
::oGet:VarPut( Eval( ::bSetGet ) )
::oGet:Refresh()
endif
if ::bChange != nil
Eval( ::bChange , self , ::GetText() )
endif
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 103 guests