473,569 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Window is not active...

5 New Member
Hi,

I am using a following code to create a two window..

Expand|Select|Wrap|Line Numbers
  1. use Tk;
  2. $ParentWindow = MainWindow->new;
  3. $ParentWindow->geometry("300x100");
  4. $ParentWindow->title("Multiple Windows Test");
  5. $button1 = $ParentWindow->Button(-text => "Open new window",
  6.                           -command => \&button1_func)->pack(-side => "top");
  7. $ParentWindow->Button(-text => "Exit", -command => sub{exit})->pack();
  8. sub button1_func {
  9. $ChildWindow = $ParentWindow->Toplevel;
  10. $ChildWindow->geometry("200x150");
  11. $ChildWindow->title("Sub Window #1");
  12. $child_button = $ChildWindow->Button(-text => "Close window",
  13.                                        -command => [$ChildWindow => 'destroy'])->pack();
  14. }
  15. MainLoop;
  16.  
By using this code I am facing a problem, child window is not active until I click a mouse point click on a empty space..

I need the child window activate when I click the "open the window"

kindly anyone help me or provide suggestions regarding this..

Thanks,
Shan
Jan 18 '08 #1
2 1459
eWish
971 Recognized Expert Contributor
I would check the Win32 Modules mailing list at ActiveState. That is probably going to be a better resource.

--Kevin
Jan 21 '08 #2
krishshan
5 New Member
Ok Kevin,

Looking forward for your reply,
Thanks.
Jan 23 '08 #3

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

Similar topics

1
7368
by: BadOmen | last post by:
I am using the GetActiveWindow() API but it returns 0 I have a remote that I activate this code with: Code: WinAmpHandler = GetActiveWindow WinAMPhWnd = FindWindow("Winamp v1.x", vbNullString) I have the WinAmp window active but the GetActiveWindow returns a 0 instead of the window handler, way?
1
10233
by: David C. Barber | last post by:
I'm having a problem knowing what is the current active window using VB6. Yes I can use the ActiveWindow property to determine what is my VB active window, HOWEVER, if the active window is some other program than my VB6 one, it doesn't tell me that. So how can I best determine the overall active window at the moment in VB6? Thanks! ...
2
9428
by: Svennglenn | last post by:
How do i make a child window "active" like the root window? from Tkinter import * def open_child(): c = Toplevel(root) c.title("Child window") c.geometry('200x160+230+130') Label(c, text="Child window").grid()
40
10786
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not defaulting the the first active window. How do I make a hyperlink point to the active window? I don not want the hyperlink to default to the same page. I...
11
5066
by: objectref | last post by:
Hi to all, is there a way to get the window handle of the main window of an application or process ? For example, if someone opens Microsoft Word, he gets a window so he/she can write text. Spy++ gives that this window is called _Wwg. How we can get a handle to this window assuming that we do not know beforehand the name of the process,
2
2014
by: =?Utf-8?B?YW5hbmQga3VtYXI=?= | last post by:
Hi, We have a requirement where windows service application XX will be deployed on two servers that is load balanced. The windows service polls the file directory and performs some logic when the file is being copied to the UNC path. The window service uses FileSystemWatcher to perform file operations. How does it work when the window service...
2
5958
by: kimiraikkonen | last post by:
Hi, I need to show an active window's (form) size(width and height in pixels) in message box, however there are some low-level api calls in user32.dll but i don't know which function returns the correct information. What's the correct user32.dll api function (GetWindowPlacement?) and syntax? I supposed there would be a class in .NET 2.0...
2
1400
by: starfoxsb | last post by:
Hi all, I have web pages with "active content" running locally on my PC in Internet Explorer. These pages open other windows by "window.open()" and these windows have, in their turn, active content. As IE does not let any active content run in web pages that run locally, I have to "Allow Blocked Content" both for my main page and for the...
10
3264
by: Gary | last post by:
I'm trying to find a way to determin which window Within-Another-Program currently has the focus. THE SITUATION: (Skip down to "My Question" if you don't want the background...) * This is a service desk where people "check in" to use a certain facility or area. * The company is running an application they purchased off-the-shelf. *...
0
7620
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8139
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...
0
7985
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6298
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...
1
5515
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...
0
3659
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
959
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...

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.