FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Folders and Comboboxes
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Folders and Comboboxes
Posted: Sun Aug 03, 2008 10:45 AM
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 ?

@ 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()

@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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Folders and Comboboxes
Posted: Sun Aug 03, 2008 10:53 AM
Wolfgang Ciriack wrote:1. Is it possible to perform an action when selecting a folder ?


Try using

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


EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Folders and Comboboxes
Posted: Sun Aug 03, 2008 10:54 AM
Wolfgang Ciriack wrote:2. How can i update the items of a combobox ?


Try using

oCbx:SetItems( aNewItems )


EMG
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Folders and Comboboxes
Posted: Mon Aug 04, 2008 07:47 AM

Hello Enrico,

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

Best regards

Wolfgang Ciriack

Continue the discussion