PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Selecting directories
  • Opening mode of the image picker
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens the image picker of Windows. The image picker is as follows:
Image picker
// Select an image file
File = fImageSelect("C:\Directories", "File.gif", "Select an image", ...
"JPEG (*.JPG)" + TAB + "*.jpg" + RC + "BMP (*.BMP)" + TAB + "*.gif")
Syntax
<Result> = fImageSelect(<Initial Directory> , <File Selected by Default> , <Picker Title> [, <Types of Files> [, <Option>]])
<Result>: Character string
  • Full name of the selected file,
  • Empty string ("") if no file was selected.
<Initial Directory>: Character string (with quotes)
Full or relative path of initial directory (up to 260 characters). This directory name may (or may not) end with "\". The files found in this directory are displayed in the image picker.
If this parameter is an empty string (""), the initial directory will be the current directory.
Versions 15 and later
Windows This parameter can be in Ansi or Unicode format.
New in version 15
Windows This parameter can be in Ansi or Unicode format.
Windows This parameter can be in Ansi or Unicode format.
<File Selected by Default>: Character string (with quotes)
Name and extension of the file selected by default. If this parameter is an empty string (""), no file will be selected by default.
Versions 15 and later
Windows This parameter can be in Ansi or Unicode format.
New in version 15
Windows This parameter can be in Ansi or Unicode format.
Windows This parameter can be in Ansi or Unicode format.
<Picker Title>: Character string (with quotes)
Caption displayed in the title bar of the image picker. If this parameter is an empty string (""), the title of the current WINDEV window will be displayed.
Versions 15 and later
Windows This parameter can be in Ansi or Unicode format.
New in version 15
Windows This parameter can be in Ansi or Unicode format.
Windows This parameter can be in Ansi or Unicode format.
<Types of Files>: Optional character string (with quotes)
Description of the types of files that can be selected. This description has the following format:
<Types Files> + TAB + <List Extensions>
[ + CR + <Types Files 2> + TAB + <List Extensions 2>]

  • <Types Files>: character string describing the type of file ("BMP (*.BMP;*.RLE)" for example).
  • <List Extensions>: extensions corresponding to the described type ("*.BMP;*.RLE" for example).
For example:
"BMP (*.BMP;*.RLE)"+TAB+"*.BMP;*.RLE"+CR+"Icon (*.ICO)"+TAB+"*.ICO"+CR+
"Other"+TAB+"*.GIF;*.TIF;*.JPG"
Versions 15 and later
Windows This parameter can be in Ansi or Unicode format.
New in version 15
Windows This parameter can be in Ansi or Unicode format.
Windows This parameter can be in Ansi or Unicode format.
<Option>: Optional Integer constant (or combination of constants)
Versions 15 and later
Options that must be taken into account:
fPathUNICODE<Result> will be a character string in Unicode format (by default, fImageSelect returns an Ansi character string).
Versions 21 and later
fSelMulti
New in version 21
fSelMulti
fSelMulti
Opens the file picker in multi-selection mode. The user can select several image files by pressing the "Ctrl" and "Shift" keys.
New in version 15
Options that must be taken into account:
fPathUNICODE<Result> will be a character string in Unicode format (by default, fImageSelect returns an Ansi character string).
Versions 21 and later
fSelMulti
New in version 21
fSelMulti
fSelMulti
Opens the file picker in multi-selection mode. The user can select several image files by pressing the "Ctrl" and "Shift" keys.
Options that must be taken into account:
fPathUNICODE<Result> will be a character string in Unicode format (by default, fImageSelect returns an Ansi character string).
Versions 21 and later
fSelMulti
New in version 21
fSelMulti
fSelMulti
Opens the file picker in multi-selection mode. The user can select several image files by pressing the "Ctrl" and "Shift" keys.
Remarks

Selecting directories

fImageSelect is used to select image files. To select a directory, use fSelectDir.

Opening mode of the image picker

Only the "Open" button is displayed in the image picker. In order for the "Save" button to be displayed in the image picker, fSelect and fGraphicFilter must be combined (see the example of fGraphicFilter).
Components
WINDEVReports and Queries wd230std.dll
Java wd230java.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo fImageSelect
Exemplo fImageSelect

sFile is string
sFile = fImageSelect("c:\MATWIN14\", "", "Seleciona Uma Imagen", "Bmp" + TAB + "*.bmp" + CR + "Gif" + TAB + "*.gif" + CR + "Jpg" + TAB + "*.jpg")
IMG_image=sFile
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/09/curso-windev-arquivos-014-arquivos.html
https://www.youtube.com/watch?v=yeYXUEqWoCw


De matos AMARILDO
Sep. 07 2016