Page 1 of 1

Folders and Comboboxes

Posted: Sun Aug 03, 2008 10:45 am
by Wolfgang Ciriack
Hi,
i am new to FiveWin, i am developping my main app with XBase++, so i have some questions to my first app for a pocket pc.

1. Is it possible to perform an action when selecting a folder ?

Code: Select all

@ 0, 0 FOLDER oFld PROMPTS "Folder 1", "Folder 2", "Folder 3" ;
      SIZE 240,250
f.e. I like to switch to landscape, when selecting Folder 3 an back when selecting Folder 1 or 2.


2. How can i update the items of a combobox ?
The content of aCoNum depends on the selction of v_co_typ and aCoNum is build in BuildCoNumArry()

Code: Select all

@2, 12 COMBOBOX v_co_typ ITEMS aCoTypen OF oFld:aDialogs[ 3 ] ; 
             SIZE 100, 150  FONT OGetFont ;
             ON CHANGE BuildCoNumArray(v_co_typ,@aCoNum) ;

@4, 12 COMBOBOX v_co_num_auf ITEMS aCoNum OF oFld:aDialogs[ 3 ] ;
             SIZE 100, 150 ;

Re: Folders and Comboboxes

Posted: Sun Aug 03, 2008 10:53 am
by Enrico Maria Giordano
Wolfgang Ciriack wrote:1. Is it possible to perform an action when selecting a folder ?
Try using

Code: Select all

oFld:bChange = { | nOption, nOldOption | DoSomething( nOption, nOldOption ) }
EMG

Re: Folders and Comboboxes

Posted: Sun Aug 03, 2008 10:54 am
by Enrico Maria Giordano
Wolfgang Ciriack wrote:2. How can i update the items of a combobox ?
Try using

Code: Select all

oCbx:SetItems( aNewItems )
EMG

Posted: Mon Aug 04, 2008 7:47 am
by Wolfgang Ciriack
Hello Enrico,

thanks for your solutions, they both work like a charme :D