Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Use File - Open dialog box
Open PNG file

selectionner un fichier png

Nous allons ouvrir une boite de dialogue par un bouton pourselectionner un ficher PNG uniquement.
Le nom et le chemin nous seront retouné dans une textbox.
Voici le code :

PUBLIC SUB Png_Click()
  Dialog.Filter = FileFilter(TRUE)
  Dialog.Path = User.home
  Dialog.Title = "S?lection du fichier png"
  IF Dialog.OpenFile() THEN RETURN
  Fpng.Text = Dialog.Path
CATCH
  Message.Warning(ERROR.Text)
END

PRIVATE FUNCTION FileFilter(OPTIONAL All AS Boolean = FALSE) AS String[]
  DIM filter AS NEW String[]
  filter.Add("*.png")
  filter.Add("Fichiers png")

  RETURN filter
END



Creation date : 25/07/2009 @ 22:55
Last update : 02/10/2009 @ 21:18
Category : Use File
Page read 5524 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^