mdi

How to create a javafx 2.0 application MDI

爱⌒轻易说出口 提交于 2019-12-24 18:21:06
问题 How to implement something kinda internal frame in JavaFx 2.0 specifically? My attempt is as so.. import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class Main extends Application { ConnectDb connection; public static void main(String[] args) { Application.launch(args); } @Override public void start(Stage

User-Interface: Best way to toggle MDI frame's on-top status?

百般思念 提交于 2019-12-24 06:49:27
问题 I maintain an MFC (VC6) MDI application that uses Frame Windows as views for a document. There is only one document at a time but there are several MDI-Frames each with a different view of the document data. Recently a request came up to be able to keep one of those frame windows on top of the others while being able to interact with the background windows. One idea was to add a "pin-button" to the frame's title bar. During my research I found out that every implementation uses bitmaps

CWinApp::OpenDocumentFile creates a new window

久未见 提交于 2019-12-24 00:55:38
问题 Recently we moved our C++ project, which uses MFC, from VS2008 to VS2010. And there is a small issue: in our MDI interface, after we call a function CWinApp::OpenDocumentFile, the app not only opens the file, but also creates a new empty MDI window. If we change the toolset (Project properties -> General -> Platform toolset) back to v90 (VS2008), we do not experience this problem. Maybe someone saw the same issue and knows, what we are doing wrong? 回答1: Solved. maybe the explanation will help

Merge menu items from MDI child into container's menu

て烟熏妆下的殇ゞ 提交于 2019-12-24 00:46:41
问题 I have exactly followed the steps described in Merge menu strip items for MDI windows to create a test application with an MDI container and an MDI child with a File menu. I have tried this in Visual Studio 2013 for every .NET framework from 2.0 to 4.5, and also tried in Visual Studio 2012. The result is the same. The menus do not merge. All I get is this: The two file menus are supposed to be one, or at least both be in the menu bar. What's going on? How is one supposed to get these menus to

Hiding MDI child forms on close using C# [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-23 17:16:04
问题 This question already has answers here : How do I prevent a form object from disposing on close? (5 answers) Closed 5 years ago . I'm currently building a multiple-document interface application, but I'm having a problem when the child forms are closed via the x button. When the form is closed, the only way to show it again is to create a new instance of that particular form, meaning all of the data contained within the previous form is lost. I have attempted to set the form closing event to

How do I discover if my delphi application currently has a modal window?

空扰寡人 提交于 2019-12-23 09:57:43
问题 I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground because the user couldn't do anything about it. So what I'd like to know is how can I check for the existence of a modal dialog in my application? 回答1: You could try with this code: var ActForm: TCustomForm; begin ActForm := Screen.ActiveForm; if (ActForm =

JDesktopPane - how to get active frame

空扰寡人 提交于 2019-12-23 07:35:33
问题 How to get active (having focus) frame (JInternalFrame) that is inside JDesktopPane? I need it for my MDI notepad (not that anybody would use that, just a training project). Looking at api, I see only functions to get all JInternalFrames, not active one. 回答1: Use JDekstopPane.getSelectedFrame() method ( From doc: currently active JInternalFrame in this JDesktopPane, or null if no JInternalFrame is currently active. ) or JDesktopPane.getAllFrames() to get list of all JInternalFrames currently

Multiple MDI Parent Forms in a Single Application [closed]

对着背影说爱祢 提交于 2019-12-23 06:58:39
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . The VCL does not natively allow forms other than the MainForm to host MDI child forms. This is a hard-coded limitation on Borland's part, not a limitation in Microsoft's MDI architecture. Microsoft allows

第19章 多文档界面

喜夏-厌秋 提交于 2019-12-23 05:33:47
19.1 概述——MDI层次结构 ①框架窗口   A、本身是一个普通的主窗口,其客户区被特殊的窗口覆盖,并不直接显示程序的输出。其客户区也被称为“工作区”   B、默认的消息处理函数是DefFrameProc,而不是DefWindowProc。 ②客户窗口:   A、系统预定义的窗口类,类名“MDICLIENT”,负责各个MDI子窗口的管理。   B、窗口过程系统己经预先注册,用户程序不需要窗口过程。 ③文档窗口:也称为子窗口,用于显示一个文档。 19.2 窗口的建立 (1)框架窗口:先注册一个MDI框架窗口类,并提供MDI框架窗口的窗口过程。 //MDI框架窗口的消息处理函数 LRESULT CALLBACK FrameWndProc (HWND, UINT, WPARAM, LPARAM) ; { …… //其他消息交给MDI框架缺省的处理函数,第2个参数是客户窗口的句柄 return DefFrameProc(hwnd,hwndClient,message,wParam,lParam); } (2)客户窗口的建立:在主框架窗口WM_CREATE消息中创建 case WM_CREATE: hInst = ((LPCREATESTRUCT)lParam)->hInstance; //填充CLIENTCREATESTRUCT结构体,并根据该结构体来创建客户窗口

How to get default Ctrl+Tab functionality in WinForms MDI app when hosting WPF UserControls

不想你离开。 提交于 2019-12-23 02:47:54
问题 I have a WinForms based app with traditional MDI implementation within it except that I'm hosting WPF based UserControls via the ElementHost control as the main content for each of my MDI children. This is the solution recommended by Microsoft for achieving MDI with WPF although there are various side effects unfortunately. One of which is that my Ctrl+Tab functionality for tab switching between each MDI child is gone because the tab key seems to be swallowed up by the WPF controls. Is there