Folders and Comboboxes

Post Reply
Wolfgang Ciriack
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Folders and Comboboxes

Post 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 ;
Best regards
Wolfgang Ciriack
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Folders and Comboboxes

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Folders and Comboboxes

Post 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
Wolfgang Ciriack
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Post by Wolfgang Ciriack »

Hello Enrico,

thanks for your solutions, they both work like a charme :D
Best regards
Wolfgang Ciriack
Post Reply