Products Downloads


French version


 

User presses a push button to open the selection file dialog box (BMP file in our example).

The file is then displayed inside the IMAGE (IMG_01) graphical object of the window.


PGM_

Declaration


ALPHA(250)

Title

/* Window title.

ALPHA(250)

Filter

/* Description of the Ext filter.

ALPHA(250)

Ext

/* Filter for file extension.

ALPHA(250)

FilePath

/* Initial path to the file.

NUM_BIN_4

Size

/* Size of the FilePath parameter.

BOOL

ReturnCode

/* Return code of process

 


Program


WORK WITH EVENT

BROWSE_BTN

BROWSE_BTN:LeftButtonClick

***********
* Choice of a bmp file on the hard drive

Title = 'Open bitmap'

Filter = 'Bitmap file'

Ext = '*.bmp'

FilePath = 'C:\'

Size = 250

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxOpenFileSelection' -
WIN_MAIN Title Filter Ext PathFile Size ReturnCode

***********

* Load selected bmp file into IMG_01 object

*

if ReturnCode = *true

CALL_METHOD IMG_01 load_bitmap FilePath

End

 


Back


↑ Top of page

  • Aucune étiquette