473,625 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GUI Window Icon

57 New Member
Hello all,
I have created a GUI box using Win32::GUI::Win dow 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::Mes sageBox has options that you can use such as MB_ICONQUESTION , MB_ICONEXCLAMAT ION, etc, but i don't see anything for Win32::GUI::Win dow. 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 2117
numberwhun
3,509 Recognized Expert Moderator Specialist
Hello all,
I have created a GUI box using Win32::GUI::Win dow 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::Mes sageBox has options that you can use such as MB_ICONQUESTION , MB_ICONEXCLAMAT ION, etc, but i don't see anything for Win32::GUI::Win dow. 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
2485
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. Unfortunately the window is showing up in the little window that is displayed when user uses Alt-Tab to switch applications. How do I make this application not show up in the Alt-Tab window? Thanks.
14
11068
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 window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
3
3790
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 only if the browser that index.jsp is opened in is NOT maximized. If index.jsp is maximized and then I click on the test link that fires off the openMain function, the browser that is opened for the popup is also maximized. function...
4
7963
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 color/image and I needed single click, double click event and context menu also on that tray icon to perform some other operation and show some window form.
2
1252
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 from the window ? Is a window without Icon possible ?
4
4384
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 as a SizableToolWindow, but then I no longer have the minimize button on the caption. Is there a way to mimic a (FormBorder) sizable tool window (so it doesn't appear in the tasklist) and still show the Min, Max and Close control buttons? (Or...
3
2847
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 property. Somehow in the form's property window's Icon property has changed to new icon, but on the form it still uses the old icon. Then I tried to set Icon property to None, and it doesn't allow me to do it. I don't know why and how can I fix...
1
1476
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 it defaulted to the application icon. TIA - Jeff.
2
4402
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 ok on a mdi child as long as it is not maximize. As soon as I maximize the window, the Icon is placed into the menu bar (I assum the is normal) but its size is aproximatly 3 times bigger.
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.