We help IT Professionals succeed at work.

Win32::GUI background image?

coolarmani
coolarmani asked
on
1,697 Views
Last Modified: 2013-12-25
Hi,

I am used to writing perl CGI scripts but I am very new to writing perl applications.
I have tried out perl2exe to convert my scripts to executables and I have installed the Win32::GUI module to create a user interface for my new application.

I create a new window for example:-

use Win32::GUI;
    $main = Win32::GUI::Window->new(
                -name   => 'Main',
                -width  => 796,
                -height => 549,
                -minsize => [796, 549],
                -background => '#fff000',
                -text   => 'My Application',
        );

I can set the background colour of the window (yellow) but I do not seem to be able to set a background image. This is vital because I want my GUI buttons to appear over the image backdrop.

How can I do this?
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.