473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

GUI Window Icon

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:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. # $Id: notepad.pl,v 1.2 2004/03/21 08:05:06 ctrondlp Exp $
  4. #
  5.  
  6. #use strict;
  7.  
  8. use Win32::GuiTest qw(:ALL);
  9.  
  10. use Win32::GUI();
  11.  
  12.  
  13.           Win32::GUI::MessageBox(0, "Test Complete!", "JWARN Message");
  14.  
  15.         $W1 = new Win32::GUI::Window(
  16.                 -name  => "W1",
  17.                 -title => "Results Report",
  18.                 -pos   => [ 500, 400 ],
  19.                 -size  => [ 275, 150 ],
  20.                 -resizable => '0',
  21.                 -dialogui => '1',
  22.  
  23.  
  24.         );
  25.  
  26.  
  27.         $W1->AddLabel(
  28.                 -name => "Label1",
  29.                 -text => "What Would You Like To Do?",
  30.                 -pos  => [ 45, 10 ],
  31.                 -font => '16',
  32.         );
  33.  
  34.         $W1->AddButton(
  35.                 -name => "Button1",
  36.                 -text => "Review Results Report",
  37.                 -pos  => [ 72, 40 ],
  38.                 -height => '25',
  39.                 -tabstop => '1',
  40.         );
  41.  
  42.         $W1->AddButton(
  43.                 -name => "Button5",
  44.                 -text => "Return to JATT",
  45.                 -pos  => [ 72, 80 ],
  46.                 -height => '25',
  47.                 -width => '125',
  48.                 -tabstop => '1',
  49.         );
  50.  
  51.         $W1->Show();
  52.         Win32::GUI::Dialog();
Mar 21 '08 #1
1 2102
numberwhun
3,509 Expert Mod 2GB
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:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. # $Id: notepad.pl,v 1.2 2004/03/21 08:05:06 ctrondlp Exp $
  4. #
  5.  
  6. #use strict;
  7.  
  8. use Win32::GuiTest qw(:ALL);
  9.  
  10. use Win32::GUI();
  11.  
  12.  
  13.           Win32::GUI::MessageBox(0, "Test Complete!", "JWARN Message");
  14.  
  15.         $W1 = new Win32::GUI::Window(
  16.                 -name  => "W1",
  17.                 -title => "Results Report",
  18.                 -pos   => [ 500, 400 ],
  19.                 -size  => [ 275, 150 ],
  20.                 -resizable => '0',
  21.                 -dialogui => '1',
  22.  
  23.  
  24.         );
  25.  
  26.  
  27.         $W1->AddLabel(
  28.                 -name => "Label1",
  29.                 -text => "What Would You Like To Do?",
  30.                 -pos  => [ 45, 10 ],
  31.                 -font => '16',
  32.         );
  33.  
  34.         $W1->AddButton(
  35.                 -name => "Button1",
  36.                 -text => "Review Results Report",
  37.                 -pos  => [ 72, 40 ],
  38.                 -height => '25',
  39.                 -tabstop => '1',
  40.         );
  41.  
  42.         $W1->AddButton(
  43.                 -name => "Button5",
  44.                 -text => "Return to JATT",
  45.                 -pos  => [ 72, 80 ],
  46.                 -height => '25',
  47.                 -width => '125',
  48.                 -tabstop => '1',
  49.         );
  50.  
  51.         $W1->Show();
  52.         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
Apr 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
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. ...
14
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...
3
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...
4
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...
2
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...
4
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...
3
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...
1
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...
2
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...
1
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...
0
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...
0
isladogs
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.