Displaying Images (The Image Control)
|
The image control allows to show bmp files in your program.
@ 10,10
IMAGE Image_1 ;
PICTURE 'Demo.Bmp' ;
WIDTH 90 ;
HEIGHT 90
#include "minigui.ch"
PROCEDURE Main
DEFINE WINDOW Win_1 ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
TITLE 'Tutor 14 Image Test' ;
MAIN
DEFINE MAIN MENU
POPUP "First Popup"
ITEM 'Change EditBox Content' ACTION Win_1.Image_1.Picture := 'Open.Bmp'
ITEM 'Retrieve EditBox Content' ACTION MsgInfo ( Win_1.Image_1.Picture)
END POPUP
END MENU
@ 10,10 IMAGE Image_1 ;
PICTURE 'Demo.Bmp' ;
WIDTH 90 ;
HEIGHT 90
END WINDOW
ACTIVATE WINDOW Win_1
RETURN
MiniGui - (c) 2003-2016 Roberto Lopez
Extended version - MiniGUI Team (Grigory Filatov,Jacek Kubica,Janusz Pora)
Edited by Janusz Pora