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: - #!/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 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: - #!/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. 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.
|
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();
|
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...
|
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.
|
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 ?
| |
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...
|
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...
|
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.
|
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.
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |