image
I'm talking about the circled part and to give further context you can drag it then it becomes a standalone window looking thing.
They're the tabs of a GtkNotebook.
For future reference, if you want a visual overview of the widgets in GTK: the documentation provides a widget gallery
Related
I need to create a shoebox-style native Windows app in C++. A good example of such a UI would be CleanMyPC:
I've tried the various options of the MFC App wizard in Visual Studio 2019 to see what that would give, but it's either document-based (SDI), or too limited (dialog-style). The closest was an empty Win32 app, which just displays a menu bar and a blank window beneath it. At least it matches the Windows style. But that would mean using bare Win32 API, which doesn't seem like a good idea.
Can a UI like in the screenshot be created with MFC? If so, would that be a reasonable approach? Can MFC be effectively used in a non-document-style, non-dialog-style UI like this?
I understand that there's heavy customization of the controls going on in the screenshot; the question is can it be done with MFC?
It looks like the left sidebar and the right details areas could be made of customized list controls. I'll be looking into how a dialog-based sample app arranges the window, so that no document stuff is involved, but without immediate termination on a button click.
In the 3xx versions of GLADE Interface Designer there is a toplevel widget called "Offscreen window", which icon has the looking of that:
How it differs from the common window toplevel widget and what is it used for?
It's used for containing widgets that should not be on screen, yet should be drawn / rendered. According to the documentation the only supported use is screenshots:
GtkOffscreenWindow is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy.
However, it also sometimes comes in handy for unit tests.
Many OS X apps use some sort of iconized-tabs in the chrome of the menubar for their preference dialogs. For an wxPython app I would like to create such a preference dialog. Dropbox appears to be using wxPython (see also screenshot), so how would I create such a dialog myself?
Update: After fiddling with wx.Frame.CreateToolBar, the frame begins to resemble the original. However, the style of the radio button (which I probably need for a wx.Notebook) is not what it should be. See also the gradient and borders of the 'General' tab in the image above. (source code)
Dropbox doesn't use wx I'm pretty sure, but you can get this native toolbar with wx. You have to use ctypes and load in some core and carbon frameworks.
There is an article in the wx wiki on how to do it
I think what you want is a custom wx.Dialog with a wx.Toolbook in it. See the wxPython demo package for an example or you can read my tutorial: http://www.blog.pythonlibrary.org/2009/12/03/the-book-controls-of-wxpython-part-1-of-2/3/
UPDATE: I'm not sure if this still applies, but there is a wiki entry on something that sounds a lot like what the OP wants: http://wiki.wxpython.org/NativeMacOSXToolbarSelection
I am new to GUI programming in Windows.
The Windows Resource Monitor (perfmon.exe /res) has four bars (CPU/Disk/Network/Memory) that have gradient backgrounds, as well as charts on the right for displaying recent CPU/Disk/Network/Memory usage.
I am wondering what kind of controls were used in this application. Are they readily available in C++ or in C#?
They are custom controls that are not available for external use, sorry.
You can use the Spy++ window finder tool (Spy++ is included with DevStudio) to find the window class names (and window boundaries).
http://msdn.microsoft.com/en-us/library/aa266028(v=vs.60).aspx
It shows that the overall window is a DirectUIHWND, the graphs are windows but the bars labelled CPU/Disk/Network, etc are not windows at all, the appear to be drawn directly in the resource monitors client area.
The implementation is not public for these controls, but I'm pretty sure they are incorporated using Windowless Controls.
Those bars remind me of Outlook bars. One old implementation is described in Code Project, and that one also has no windows on its own. Everything is painted inside.
Edit: That Code Project article was C# port. For C++ original go to Code Guru.
When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints.
I'd like to do the same with a runtime control to enable the user to position an image on a page.
For example, if the user has a photo and they want to place it as a background on the desktop I'd like the control to help them move and size the photo thumbnail in a mini desktop visual.
I can do all of this, but my real question is, does anyone know of a way to inherit from the standard WinForms layout editor so that I can choose to use the nice docking, alignment hints and control resizing without coding it all again?
Thanks in advance
Ryan
I don't know about easy, but you can host the actual winforms designer in your own applications without too many problems.. See here.