Folders and Comboboxes

Folders and Comboboxes

Postby Wolfgang Ciriack » 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 ?

Code: Select all  Expand view  RUN
@ 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  Expand view  RUN
@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
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Re: Folders and Comboboxes

Postby Enrico Maria Giordano » Sun Aug 03, 2008 10:53 am

Wolfgang Ciriack wrote:1. Is it possible to perform an action when selecting a folder ?


Try using

Code: Select all  Expand view  RUN
oFld:bChange = { | nOption, nOldOption | DoSomething( nOption, nOldOption ) }


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

Re: Folders and Comboboxes

Postby Enrico Maria Giordano » Sun Aug 03, 2008 10:54 am

Wolfgang Ciriack wrote:2. How can i update the items of a combobox ?


Try using

Code: Select all  Expand view  RUN
oCbx:SetItems( aNewItems )


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

Postby Wolfgang Ciriack » Mon Aug 04, 2008 7:47 am

Hello Enrico,

thanks for your solutions, they both work like a charme :D
Best regards
Wolfgang Ciriack
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 32 guests