473,831 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keep Dialog window in bounds of an app

I have a MDI application.
I open a Form (Data Window) which has the apps window as the MDIParent.
From this Data Window I open a Dialog Window.

This Dialog window can float outside of the bounds of the App window.
How can I keep the dialog window within the bounds of my app.
Sep 1 '07 #1
1 1363
On Sun, 02 Sep 2007 07:25:32 +1000, Jeff
<jeff@[_nospam_].hardsoft.com.a uwrote:
>I have a MDI application.
I open a Form (Data Window) which has the apps window as the MDIParent.
From this Data Window I open a Dialog Window.
>This Dialog window can float outside of the bounds of the App window.
How can I keep the dialog window within the bounds of my app.
I'm not an expert on this but in the layout properties of the form you
should have an option for Start Position to center on the parent.

--
Lilith
Sep 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5915
by: Thomas Nücker | last post by:
Hi! I am creating a dialog-box within my application, using tkinter. The problem is the following: After the dialogbox is started, the main application window comes again to top and the dialogbox is covered by the window of the main application and must be "fetched" again via the taskbar to continue. Is there a way to "force" the dialogbox on top of all other windows? (I'm using MSWindows and Python22) The source of my dialogbox-class...
1
3154
by: brian | last post by:
Hi, I am beginner using Python 1.52, GTK 1.2.10, and Glade .0.6.2 to develop a gui which will kick off various scripts. After checking some configurations I would like to pop up a window warning the user of any problems and force them to respond to this window before returning to the main window. I use a modal dialog window and set the main window to be insensitive. This works fine but the way my window manager(MWM) is setup(in the...
1
2951
by: Jarek | last post by:
I need the modeless dialog window to be always on top as the main application window is. Is there any window message sent to window when it is obscured by any other window? Jarek
0
995
by: Voast | last post by:
I have a basic Form. This form is mainly for displaying basic real-time data. I want to insure that is a user moves the windows to the right or left of the WorkingArea bounds that the window shrinks so the edges remain visable. Here is the code I put in the OnMove override. Be Gentle in your comments if the answer is obvious, I am a newbie to this. base.OnMove (e); if ( Bounds.Left < SystemInformation.WorkingArea.Left) { ClientSize =...
2
7089
by: John | last post by:
Hi all, I have a modal dialog window from which a user selects a few rows from a datagrid and then clicks on an image button. My question is two-fold: 1. How do I post data back to the same dialog window? 2. The dialog window in question was, in turn, created from a dialog window. I need to post data back to that one too (that which the user selected in the top-most dialog window). How do I send data back to this window?
3
2892
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then save the data and close the dialog when the page is valid. I have read a little about using Iframes to post back to, but was wondering if this would work for what I am trying to do? Also, does anyone have a code sample of this (postback from modal...
7
4524
by: Bill Nguyen | last post by:
This has been posted before but received no response: I need to arrange window screens on the total area of a mulitple-mopnitor desktop. As an example, below is the bound info for my 2-monitor PC: Device Name: \\.\DISPLAY1 Bounds: {X=1152,Y=0,Width=1152,Height=864} Primary Screen: False
1
2298
by: sowen | last post by:
In IE, I am using showModalDialog to pop up a modeless window, then the object "opener" is undefined. well, I pass the parent window object as an argument to pop up, then I can redirect the parent url. The problem is, when I redirect the parent url, the popup is closed automatically, I guess it's the normal behavior coz the popup is a modeless dialog.
11
2387
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have realized that despite suggestions to use DHTML-based modal dialogs are very common? there is not a single fully functional reliable copyright-free cross-browser alternative to say MsgBox (VBScript) or showModalDialog (IE). This way such suggestions up to...
0
9642
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10778
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
10496
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...
1
10538
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10210
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9319
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
4419
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
2
3967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3077
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.