Core Function GUICreatePictureBox

From Sputnik Wiki
Jump to: navigation, search
GUICreate( "PictureBox", <gui object>, <Left>, <Top>, <Width>, <Height> )

Contents

Description

Create a PictureBox

Parameters

gui object

The GUI object to place the picture box on.

left

LEFT Position to create the object.

top

TOP Position to create the object.

width

Optional; The width of the object.

height

Optional; The height of the object.

Return Value

Success: Returns the new GUI object.

Failure: Returns 0 if error occurs.

Example

// Create the GUI
$GUI = GUICreate("Window", "Hello", 642, 480);
// Show the GUI
GUILoad( $GUI );
// Create a button -- This button will simply display a message
$PB = GUICreate("PictureBox", $GUI, 0, 0, 275, 53);
GUIPictureBox($PB, "Load", "MyImage.jpg");
// Add a link to the PictureBox
GUILink($PB, "Click", 'Msgbox("Hello World...");'); // Call function
// Keep the GUI running as long as long as the window is open
While ( GUIStatus( $GUI ) ) DoEvents( );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox