FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A question regarding TCombobox
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
A question regarding TCombobox
Posted: Fri Jun 22, 2007 09:09 PM
The following sample doesn't show the string "Other" on the combobox. Is it expected?

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    LOCAL cVar := "Other"

    LOCAL aItems := { "Test 1", "Test 2", "Test 3" }

    DEFINE DIALOG oDlg
 
    @ 1 , 1 COMBOBOX cVar;
            ITEMS aItems

    @ 3, 1 BUTTON "&Close";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
A question regarding TCombobox
Posted: Sat Jun 23, 2007 11:30 PM

Enrico,

>The following sample doesn't show the string "Other" on the combobox. Is it expected?

I would not expect it. A combobox is supposed to be limited to those choices in the array.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
A question regarding TCombobox
Posted: Sun Jun 24, 2007 03:23 PM

Ok, thank you.

EMG

Continue the discussion