Hello all,
I have created a GUI box using Win32::GUI::Window and all i want to do is add a question mark icon in the window on the left, but i'm having trouble figuring that out. i know that using Win32::GUI::MessageBox has options that you can use such as MB_ICONQUESTION, MB_ICONEXCLAMATION, etc, but i don't see anything for Win32::GUI::Window. Any suggestions?
Here is part of my code. the second window is the one that i want to put an icon similar to that of the first window except to use a question mark icon: - #!/usr/bin/perl
-
-
# $Id: notepad.pl,v 1.2 2004/03/21 08:05:06 ctrondlp Exp $
-
#
-
-
#use strict;
-
-
use Win32::GuiTest qw(:ALL);
-
-
use Win32::GUI();
-
-
-
Win32::GUI::MessageBox(0, "Test Complete!", "JWARN Message");
-
-
$W1 = new Win32::GUI::Window(
-
-name => "W1",
-
-title => "Results Report",
-
-pos => [ 500, 400 ],
-
-size => [ 275, 150 ],
-
-resizable => '0',
-
-dialogui => '1',
-
-
-
);
-
-
-
$W1->AddLabel(
-
-name => "Label1",
-
-text => "What Would You Like To Do?",
-
-pos => [ 45, 10 ],
-
-font => '16',
-
);
-
-
$W1->AddButton(
-
-name => "Button1",
-
-text => "Review Results Report",
-
-pos => [ 72, 40 ],
-
-height => '25',
-
-tabstop => '1',
-
);
-
-
$W1->AddButton(
-
-name => "Button5",
-
-text => "Return to JATT",
-
-pos => [ 72, 80 ],
-
-height => '25',
-
-width => '125',
-
-tabstop => '1',
-
);
-
-
$W1->Show();
-
Win32::GUI::Dialog();
1 2102
Hello all,
I have created a GUI box using Win32::GUI::Window and all i want to do is add a question mark icon in the window on the left, but i'm having trouble figuring that out. i know that using Win32::GUI::MessageBox has options that you can use such as MB_ICONQUESTION, MB_ICONEXCLAMATION, etc, but i don't see anything for Win32::GUI::Window. Any suggestions?
Here is part of my code. the second window is the one that i want to put an icon similar to that of the first window except to use a question mark icon: - #!/usr/bin/perl
-
-
# $Id: notepad.pl,v 1.2 2004/03/21 08:05:06 ctrondlp Exp $
-
#
-
-
#use strict;
-
-
use Win32::GuiTest qw(:ALL);
-
-
use Win32::GUI();
-
-
-
Win32::GUI::MessageBox(0, "Test Complete!", "JWARN Message");
-
-
$W1 = new Win32::GUI::Window(
-
-name => "W1",
-
-title => "Results Report",
-
-pos => [ 500, 400 ],
-
-size => [ 275, 150 ],
-
-resizable => '0',
-
-dialogui => '1',
-
-
-
);
-
-
-
$W1->AddLabel(
-
-name => "Label1",
-
-text => "What Would You Like To Do?",
-
-pos => [ 45, 10 ],
-
-font => '16',
-
);
-
-
$W1->AddButton(
-
-name => "Button1",
-
-text => "Review Results Report",
-
-pos => [ 72, 40 ],
-
-height => '25',
-
-tabstop => '1',
-
);
-
-
$W1->AddButton(
-
-name => "Button5",
-
-text => "Return to JATT",
-
-pos => [ 72, 80 ],
-
-height => '25',
-
-width => '125',
-
-tabstop => '1',
-
);
-
-
$W1->Show();
-
Win32::GUI::Dialog();
Sorry, I don't know the answer but hopefully one of our experts will be able to assist you.
My appologies for the delay in getting an answer to your question.
Regards,
Jeff
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Dale |
last post by:
I'm using the NotifyIcon component on a form within a Windows application
that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task
Bar. ...
|
by: D. Alvarado |
last post by:
Hello,
I am trying to open a window containing an image and I would like
the image to be flush against the window -- i.e. have no padding or
border. Can I make this happen with a single call to a...
|
by: Bob |
last post by:
I am trying to create a popup page (to act as a menu) from a parent
page. When the parent page (index.jsp) calls my popup function (see
below) it will properly open the correct size browser window...
|
by: utkarsh |
last post by:
Hi,
I want to develop a Window Service in C# that should be capable of
sisplaying the a icon in the window tray.
Based on some logic in service, icon should be changed to some other...
|
by: Peter Stojkovic |
last post by:
I have programmed a window with an icon.
Now I want, that this window has NO Icon.
But I can not remove the icon within VS.NET.
I can only select an other ICON !
How can I remove the icon...
|
by: Blaine |
last post by:
Does anyone know how I can hide a form from the TaskManager?
I've set the ShowInTaskbar to False, but when using Alt-TAB to switch
between applications, it appears as a blank icon. I can set it...
|
by: Nina |
last post by:
Hi there,
I assigned icon for a window's form using form's Icon property at design
time. Now I want to change the icon. I tried to replace the old icon with
the new icon using form's Icon...
|
by: UJ |
last post by:
Is there a way to change the default icon for a window to be the application
icon? It's just that if you create a new window you have to remember to go
in and set the icon where it would be nice if...
|
by: Rainer Queck |
last post by:
Hello NG,
what are the right dimensions for a window icon, used on a mdi child window?
My Problem:
I used a third party Icon-Designer to design some icons for my application.
Those icons look...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |