mystica
07-30-2009, 01:28 PM
Hey,
I'm trying to get my application to create an image on Page2, from the On-Click event of a button that resides on Page1.
This is the code I'm using to create the image, but how in the heck do I send the command to a different page from which it's run? Could really use some help with this.
-- Load image of 'homer'
-- Initialize the properties table
tImageProperties = {};
tImageProperties.ImageFile = _SourceFolder .. "\\AutoPlay\\Images\\homer.png";
tImageProperties.UseTransColor = false;
tImageProperties.Opacity = 100;
tImageProperties.HitTest = HITTEST_STANDARD;
tImageProperties.Enabled = false;
tImageProperties.Visible = true;
tImageProperties.X = 236;
tImageProperties.Y = 112;
tImageProperties.Width = 157;
tImageProperties.Height = 201;
tImageProperties.TooltipText = "";
tImageProperties.Cursor = CURSOR_ARROW;
tImageProperties.HighlightSound = SND_NONE;
tImageProperties.ClickSound = SND_NONE;
-- Create the image object
Page.CreateObject(OBJECT_IMAGE, "homer", tImageProperties);
I'm trying to get my application to create an image on Page2, from the On-Click event of a button that resides on Page1.
This is the code I'm using to create the image, but how in the heck do I send the command to a different page from which it's run? Could really use some help with this.
-- Load image of 'homer'
-- Initialize the properties table
tImageProperties = {};
tImageProperties.ImageFile = _SourceFolder .. "\\AutoPlay\\Images\\homer.png";
tImageProperties.UseTransColor = false;
tImageProperties.Opacity = 100;
tImageProperties.HitTest = HITTEST_STANDARD;
tImageProperties.Enabled = false;
tImageProperties.Visible = true;
tImageProperties.X = 236;
tImageProperties.Y = 112;
tImageProperties.Width = 157;
tImageProperties.Height = 201;
tImageProperties.TooltipText = "";
tImageProperties.Cursor = CURSOR_ARROW;
tImageProperties.HighlightSound = SND_NONE;
tImageProperties.ClickSound = SND_NONE;
-- Create the image object
Page.CreateObject(OBJECT_IMAGE, "homer", tImageProperties);