This code, in previous FW 13.03 showed Lucas on the combobox.
- Code: Select all Expand view RUN
- // This sample shows how to create a Combo Test.
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg, oCbx, oSayItem, oSayAt
local cItem := "Lucas"
SET _3DLOOK ON
DEFINE DIALOg oDlg RESOURCE "TestCombo"
REDEFINE COMBOBOX oCbx VAR cItem ITEMS { "Testing", "this", "ComboBox", "Lucas" } ;
ID 110 OF oDlg ;
ON CHANGE ( oSayItem:cTitle := cItem,; // We should use also :SetText()
oSayAt:cTitle := ":nAt = " + Str( oCbx:nAt, 2 ) ) ;
VALID ( MsgBeep(), .t. )
REDEFINE SAY oSayItem ID 120 OF oDlg
REDEFINE BUTTON ID 130 OF oDlg ACTION oCbx:Reset()
REDEFINE BUTTON ID 140 OF oDlg ;
ACTION oCbx:SetItems( { "Let's", "Set", "a new", "List" } )
REDEFINE BUTTON ID 220 OF oDlg ACTION MsgInfo( Str( oCbx:nAt ) )
REDEFINE SAY oSayAt ID 150 OF oDlg
ACTIVATE DIALOG oDlg CENTERED ON INIT MsgAlert(cItem)
return nil
//----------------------------------------------------------------------------//
But now in FW 13.04 it does not.
Thank you.