Set focus on Frame

Hi All,

I have created a two frames(Frame-1 and
Frame-2) using BOA Constructor. Frame-1 has a button on it. On click of this
button frame-2 is popped up to the user. I want the focus to be set only on
Frame-2. What I mean is that: The application should not allow the User to
click any of the controls present on Frame-1 until he closes Frame-2.

How can I do this?

Any help is much appreciated!!!

Regards,

Rajendra

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Hi,

                I have created a two frames(Frame-1 and Frame-2) using BOA
Constructor. Frame-1 has a button on it. On click of this button frame-2 is
popped up to the user. I want the focus to be set only on Frame-2. What I
mean is that: The application should not allow the User to click any of the
controls present on Frame-1 until he closes Frame-2.

How can I do this?

Look for wx.Frame.MakeModal() or use a wx.Dialog.

I suggest you to avoid putting widgets like buttons directly on a
frame, use the wx.Frame => wx.Panel => other widgets hierarchy,
otherwise it will look strange on Windows :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

ยทยทยท

On Tue, Oct 21, 2008 at 11:23 AM, Rajendra Arvind Gai wrote: