| 
     
      
      
      From: Alain A. <ala...@wa...> - 2015-06-30 20:10:22
      
     
   | 
Hi, I have a window which just have a get and a combobox.
The goal of the combobox is to purpose a path which when choosed set the
get value (which can be edited, before validation.
I haven't found the way to do it.
If you find where I fail  ...
I tried with a codeblock where I set the value choosed in the combobox
ON CHANGE {||fname=rFolders};
      INIT DIALOG oModDlg TITLE cTitle ;
      AT oMainWindow:nLeft+140,oMainWindow:nTop+130  SIZE 340,170 ;
      FONT oFont ICON oIcon
           @ 10,10 SAY "Donnez le nom du "+cLibelle+" distant à copier"
SIZE 320, 22 COLOR hwg_VColor("FF0000")
           @ 10,34 GET opath VAR fname SIZE 320, 26
           @ 10,72 GET COMBOBOX oFolders VAR rFolders ITEMS aFolders
STYLE WS_TABSTOP SIZE 320, 25;
                   TOOLTIP "Choix d'un dossier distant";
                   ON CHANGE {||fname=rFolders};
                   TEXT
           @ 60,120 BUTTON "Ok" OF oModDlg ID IDOK  ;
                     SIZE 100, 32 COLOR hwg_VColor("FF0000") ;
                     ON CLICK {||oModDlg:lResult:=.t.}
           @ 180,120 BUTTON "Annuler" OF oModDlg ID IDCANCEL ;
                     SIZE 100, 32
      ACTIVATE DIALOG oModDlg
Thanks
A+
-- 
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-06-26 12:50) |
HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2458)
------------------------------------------------------------------------
 |