A question regarding TCombobox

A question regarding TCombobox

Postby Enrico Maria Giordano » Fri Jun 22, 2007 9:09 pm

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

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Enrico Maria Giordano » Sun Jun 24, 2007 3:23 pm

Ok, thank you.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 38 guests