i am new to javafx and i am developing desktop app using javafx in my app i have many windows i want to have main window that have static menu bar and scroll across my windows by that menu bar and when open new window i want it to fit to my main window just like the project ensemble that came with javafx samples that is very fantastic app.
how to have the top side of my main window stuck to all windows and when my sub windows maximize they will maximize according to my main window not to my main screen .
i don't know if i have explain my idea well but please help
example : like netbeans ide how it mange several windows and all sub windows contained in one main window .
Related
I want to create a application in python using wxpython library with multiple windows which will be inter-related to each other using buttons, i.e. we can go from one window to other and again come back to the previous window using buttons just like an app.
There should be one window on the screen at any time if possible. Is this possible using wxpython library. If so then can you suggest me how.
It is really simple. Normally you create one window (usually a frame or a dialog). If you want more windows, you will just create more frames or dialogs.
I am getting familiar with Android Studio and now prefer it over Eclipse. However I find the window handling of Eclipse more efficient and flexible.
Is there any way to open a second window for the same project (like you can if you have separate projects)? Basically the "New Window" function of Eclipse.
Is there any way to store different window layouts and switch quickly between them (like the perspective of Eclipse)
I am developing on a Notebook, so space is limited. I rather switch with Alt+Tab between IDE windows than resizing 5 docked windows.
Opening a separate window (Qn #1)
This is possible. For an existing window tab, click and drag the tab outside of the window area of Android Studio. This is easier if the Window is in a restored state. So:
Ensure that there's some desktop area that's not covered by Android. This could be by ensuring the Android Studio window is not maximized (as you'd do on your notebook), or by having a dual-monitor setup.
Bring the window to be 'floated' to be the active tab
Drag the window outside of the Android Studio window area, and release mouse.
The window is now floating. To make it tabbed again, just drag it back to be where it was (beside other tabs).
Alt+Tab navigates between floating windows and the main IDE window.
Floating tool windows
Tool window tabs can be dragged in the same way:
... such that they float like this:
Window layouts (Qn #2)
It appears that there's only the option of a 'Default' layout, and after changing this (e.g. pinning tool windows), the option to revert to a previously saved 'Default' layout.
To save a layout, select 'Window' -> 'Save Current Layout as Default'. Now after re-arranging any tool window layouts, the saved layout can be restored via 'Window' -> 'Restore Default Layout'
Tool windows such as '1. Project', '2. Favorites', 'TODO', 'Terminal' etc. can be dragged to be in different border areas of the application. It's the arrangement of these tool windows that is affected by the layout feature.
I have a full screen application based on Qt. Full screen applications should always be on top because otherwise part of the window will be obstructed. I want the frameless full screen window to have child windows (special dialogs, ..). These child windows should be shown on top of the full screen window. Not much sense in showing them below.
A short, self contained example is:
from PySide import QtGui, QtCore
app = QtGui.QApplication([])
window = QtGui.QWidget(f=QtCore.Qt.WindowStaysOnTopHint)
child_window = QtGui.QWidget(window, f=QtCore.Qt.Window)
child_window.resize(400, 300)
layout = QtGui.QVBoxLayout(window)
exit = QtGui.QPushButton('Exit')
exit.clicked.connect(app.exit)
layout.addWidget(exit)
create = QtGui.QPushButton('Create child window')
create.clicked.connect(child_window.show)
layout.addWidget(create)
layout.addStretch()
window.showFullScreen()
app.exec_()
It's written in Python and tested on Python 3.X + PySide 1.2.2 (Qt 4.8) + Ubuntu 14.04 (Unity desktop) or Windows 7. However transformation to C++ Qt (or PyQt) should be straightforward.
The observation is that on Windows everything is as described at the beginning. The Qt.WindowsStaysOnTopHint is not necessary, while on Ubuntu it is.
On Ubuntu I see that initially the full screen main window is on top of everything but as soon as a child dialog window is created the usual desktop decorations (top and left bars) are shown above the full screen main window obstructing part of the view! As soon as the child window is closed the full screen window is on top again.
Question is now if there is anything that can be done to have a full screen window which is on top plus child windows on Ubuntu and with Qt?
The different behavior between Windows and Linux is also not satisfying because OS specific code should be avoided if possible.
Later:
Using the overview of available desktop environment on Ubuntu I installed several environments and tested them.
KDE, Lubuntu (Lxde?) and Openbox work as expected (and equally to Windows). The main window stays on top when shown full screen and child windows are displayed above.
However for Gnome-Shell (Gnome 3), Xfce, Unity and Awesome the desktop decoration stays on top of full screen mode windows of children windows are displayed also. Xfce and Unity behave exactly equal, Gnome and Awesome have even some small additional problems.
Did you tried thing which documentation suggests?
Qt::WindowStaysOnTopHint 0x00040000 Informs the window system that the window should stay on top of all other windows. Note that on
some window managers on X11 you also have to pass
Qt::X11BypassWindowManagerHint for this flag to work correctly.
Another thing why you want other window to be a child if it you what to be under a parent?
I am trying to display a screen without its native frame.
I created an small application using JavaFx and their design in FXML, When the application launch at that time the first screen display but it take the operating system default frame and button and I want a screen without native frame, Like this screen will display same in MAC and Windows.
Please help me if anyone having the solution.
Thanks in Advance.
stage.initStyle(StageStyle.UNDECORATED);
See the javadocs for Stage for more options.
Has the browser window been removed from the latest version of Xcode? I've seen this window in an iOS class I watched online and again in a book I have. I can't find anything in the View menu to turn it on.
I'm running Lion and the latest version of Xcode. I created a new project with Core Data turned on and then built it. I then clicked on .xcdatamodeld file and I get a graphic window with the default table in it.
Do you mean the project browser on the left? You enable that using the 'view' buttons on the right side of the toolbar.
The toolbar might be hidden though, so go to the view menu and select "Show toolbar" if needed.
Then select the fourth button from the right on the toolbar, it is the first button in the set of view buttons. This shows the Navigator View on the left of your screen, which has 7 selectors on the top. The leftmost will give you the project browser (project navigator), the one next to it is the symbol navigator.
I hate to be answering my own question again. I like to keep my answer rate at 100%. Since I didn't get a response here, I tried the Apple developer forums. It turn out the Xcode 4.* changed the interface and this series of windows no longer exist. The same functions can be found in other locations.