Autore Topic: Come usare i tasti sul Controllo FileChooser  (Letto 359 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.311
  • Ne mors quidem nos iunget
    • Mostra profilo
Come usare i tasti sul Controllo FileChooser
« il: 19 Agosto 2013, 03:12:51 »
Riporto questa discussione apparsa nella M.L.I.:


" I have added the FileChooser to my form. Set the root and filter properties
and enabled "ShowButtons".  It all works except that I cannot figure out how
to access the OK or Cancel button click event. I've tried the change event
but don't see how to tie that to the buttons.

I want to use them to leave the FileChooser with a file path or cancel that
I can catch with a if / endif.

Thanks,
Marty
"


" FileChooser has an Activate and a Cancel event to know if "OK" or
"Cancel" button was clicked.

Regards,
--
Benoît Minisini
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »