titlebar

Xcode & Swift - Window without title bar but with close, minimize and resize buttons

﹥>﹥吖頭↗ 提交于 2019-11-29 18:49:37
I am currently using Swift in Xcode 6, Beta 5. I am trying to remove the title bar, or any visible difference between the title bar and the actual content. If I enable "Unified title and toolbar" in the Attributes Inspector on a Window, nothing visibly happens. I have already left the title out. When no title is entered, the title bar will still be distinguishable because of the border line and background difference with the rest of the window, separating it from the actual content. An excellent example would be the current Yosemite, OS X 10.10, Notes app. No title bar is visible or

Is it possible to display a wpf window without an icon in the title bar?

为君一笑 提交于 2019-11-29 16:02:52
问题 As we all know, if the icon for a wpf window is undefined then the default icon is displayed. I want to display a window without any icon in the title bar. I realise that I could use a blank image, however this would cause the text in the title bar to be offset to the right. Does anyone know of a way to completely remove the icon? (I tried searching for a similar question but couldn't find anything.) 回答1: Simple, add this code to your window: [DllImport("user32.dll")] static extern uint

How to add a multiline title bar in UINavigationController

我是研究僧i 提交于 2019-11-29 15:39:52
问题 I have try to add a two line title bar in UINavigationController I want to adjust font size automatically set according to string length.My String max size goes to 60. I have try to implemented through following code UILabel *bigLabel = [[UILabel alloc] init]; bigLabel.text = @"1234567890 1234567890 1234567890 1234567890 1234567890 123456"; bigLabel.backgroundColor = [UIColor clearColor]; bigLabel.textColor = [UIColor whiteColor]; bigLabel.font = [UIFont boldSystemFontOfSize:20]; bigLabel

Can you change the color of the titlebar of a userform in VBA using Windows API?

我只是一个虾纸丫 提交于 2019-11-29 11:31:42
Is it possible to change the color of the title bar for a VBA userform using Windows API. Please note that I am only interested in changing the color of the title bar for a particular userform and not a system-wide them change. Thanks! Just for fun; UserForm: Private gHWND As Long Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) If Button = 1 Then HandleDragMove gHWND End Sub Private Sub UserForm_Initialize() gHWND = Setup(Me) End Sub Private Sub UserForm_Click() Unload Me End Sub *.BAS Option Explicit Private Const WM

Visually remove/disable close button from title bar .NET

倖福魔咒の 提交于 2019-11-29 09:59:10
I have been asked to remove or disable the close button from our VB .NET 2005 MDI application. There are no native properties on a form that allow you to grey out the close button so the user cannot close it, and I do not remember seeing anything in the form class that will allow me to do this. Is there perhaps an API call or some magical property to set or function to call in .NET 2005 or later to do this? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ More information: I need to maintain the minimize/maximize functionality I need to maintain the original title bar because the form's drawing methods are

How to center align the title in a JFrame?

你说的曾经没有我的故事 提交于 2019-11-29 09:36:09
I have a JFrame with a Title . I want center align the title , so that it appears in the middle of the JFrame's title . Thanks. Consider leaving the title left-justified...but...this will get you near the center. For resizable frames, you need to rewrite the title on resize. JFrame t = new JFrame(); t.setSize(600,300); t.setFont(new Font("System", Font.PLAIN, 14)); Font f = t.getFont(); FontMetrics fm = t.getFontMetrics(f); int x = fm.stringWidth("Hello Center"); int y = fm.stringWidth(" "); int z = t.getWidth()/2 - (x/2); int w = z/y; String pad =""; //for (int i=0; i!=w; i++) pad +=" "; pad

TitleBar back button for UWP

眉间皱痕 提交于 2019-11-29 06:37:51
问题 I've seen that the windows settings are using a back button in the title bar; and would like to include something like that in my UAP but since Win10 is pretty new I couldn't find any information if this is achievable in a simple way. Thanks very much 回答1: You can activate the back button easily like this: using Windows.UI.Core; var currentView = SystemNavigationManager.GetForCurrentView(); currentView.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; Please note, that the

Tkinter: windows without title bar but resizable

好久不见. 提交于 2019-11-29 02:15:12
What I know is if I want to create a window without title bar, I can write root = Tk() ........ root.overrideredirect(1) But I would also like the window to be resizable. Is there any solution? (FYI: I am working on Windows machine, although I am not sure if it really matters. It will be perfect if there is OS-independent solution, but I am happy if there is at least a solution for Windows first.) Bryan Oakley The problem is, the window is resizable, but when you turn on overrideredirect you lose any sort of header or edge that you can grab in order to resize the window. The only solution is

How is Teamviewers Quickconnect button accomplished?

淺唱寂寞╮ 提交于 2019-11-28 23:39:30
For those of you who do not know what I am talking about: http://www.teamviewer.com/images/presse/quickconnect_en.jpg Teamviewer overlays that button on all windows to allow you to quickly share a window with someone else. I would like any ideas on implementing something similar -- if you have example code, even better (specifically, the button -- not the sharing). I am interested in C++ and QT... but I would be interested in good solutions in other languages/libraries if there are any. Thanks. To draw buttons or other stuff in foreign windows, you need to inject code into the foreign

C# | WPF - Custom Title Bar - Drag window from top when maximized doesnt work

99封情书 提交于 2019-11-28 21:44:13
I have a custom title bar and with the window style set to none. On the click of the title bar I check to see if it is a double click (that does window maximize and restore) if it is not double clicked I do Window.DragMove . This works great for the snapping to the side and top. But when I try to drag the window when it is maximized (which would normally restore the window down), it doesn't do anything. Here is my code: static Window Window { get { return Application.Current.MainWindow; } } /// <summary> /// TitleBar_MouseDown - Drag if single-click, resize if double-click /// </summary>