titlebar

Custom button in WPF window Titlebar

删除回忆录丶 提交于 2019-12-08 08:38:31
I like to add a custom button in WPF Native Window title bar without editing the style of the Window. Is it possible? If yes, please share some ideas. Regards, Jawahar Mahapps is a UI toolkit for WPF and they make this super easy: mahapps.com Easy install using NuGet GUI or the Packet Manager console: PM> Install-Package MahApps.Metro I was able to do the install and customization in less than half hour with Mahapp. 来源: https://stackoverflow.com/questions/9013346/custom-button-in-wpf-window-titlebar

Android — How to disscociate the name of the application from the titlebar?

元气小坏坏 提交于 2019-12-08 03:20:57
问题 I added a custom title-bar to an android application and this titlebar (which is a plain png) shows up inside the main activity. The problem is that the main activity also defines the name of the application using the label tag like this: <activity android:name=".MainActivity" android:theme="@style/customTheme" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent

QT: Hide the title bar of a dialog/window

随声附和 提交于 2019-12-07 08:23:40
问题 I have a parent window in which a push-button's click event function has the following lines: SplashScreenDialog *splScrDlg = new SplashScreenDialog(this); splScrDlg->show(); What I want is I want to remove the maximize button, minimize button, close button and also the title bar from the dialog(or window). [Actually it is for a splash screen, it would contain an image for a while and then would exit automatically and opens the main window, you are welcome with other ideas for showing splash

Android: Using FEATURE_NO_TITLE with custom ViewGroup leaves space on top of the window

泪湿孤枕 提交于 2019-12-07 02:36:47
问题 I am trying to create a custom ViewGroup, and I want to use it with a full screen application. I am using the "requestWindowFeature(Window.FEATURE_NO_TITLE)" to hide the title bar. The title bar is not showing, but it still consuming space on top of the window. The image above was generated with the following code: public class CustomLayoutTestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window

Hide a form's client area (but let the title bar be visible) when mouse is not over the title bar

元气小坏坏 提交于 2019-12-06 14:12:50
问题 I'm looking for a way to develop this: (source: hostingpics.net) When the mouse is over the form's title bar (rectange 1 on the picture) the form content (the rectangle 2) is visible & when the mouse is not over, it disappears but the rectangle 1 must remain visible! How could i manage to do that ? Thanks in advance 回答1: There are some mouse events related to the non-client area of the forms ( WM_NCMOUSEMOVE , WM_NCMOUSELEAVE , ...) that can be used for this purpose. But this is not simple,

uwp NavigationView control Titlebar

隐身守侯 提交于 2019-12-06 12:59:40
问题 I have a problem with the NavigationView Control and the titlebar. I have tried to extend the view into the titlebar to play with the acrylic effects of the standard NavigationView. But then I´ve noticed that the back and menu buttons are underneath the titlebar, so you´re not able to click them properly. In the attached image, you can see that everything under the red line is clickable but when you go over it, you are targeting the titlebar. Is there anything I can do to fix this behavior?

Android — How to disscociate the name of the application from the titlebar?

隐身守侯 提交于 2019-12-06 08:13:18
I added a custom title-bar to an android application and this titlebar (which is a plain png) shows up inside the main activity. The problem is that the main activity also defines the name of the application using the label tag like this: <activity android:name=".MainActivity" android:theme="@style/customTheme" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> And this label is also reported on the titlebar! How to

Android fullscreen activity with action bar

耗尽温柔 提交于 2019-12-06 07:59:12
问题 what theme should I use to hide the notification bar but show the action bar? (Like calculator on Samsung phones) 回答1: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Use this with Theme holo **you have to do it through coding add this before setContentView() ** 来源: https://stackoverflow.com/questions/27313117/android-fullscreen-activity-with-action-bar

Setting WindowButtonCommands styles in Mahapps.Metro

烈酒焚心 提交于 2019-12-06 04:10:39
问题 I want to change the style of the Min, Max and Close buttons for my WPF application. I'm using Mahapps.Metro and I have successfully managed to achieve the result I want, but only with the obsolete WindowMinButtonStyle , WindowMaxButtonStyle and WindowCloseButtonStyle properties in the MetroWindow class. The obsolete message on for example the WindowMinButtonStyle property reads: This property will be deleted in the next release. You should use LightMinButtonStyle or DarkMinButtonStyle in

Change height of window title bar for Visual Studio 2013 and/or Office applications

一个人想着一个人 提交于 2019-12-06 03:38:09
I don't know why but Microsoft decided to make the title bars of the windows of Visual Studio 2013 and Office applications huge! They are so thicker than normal windows and this is really annoying especially if you have a small screen. Do you think there is a way to change this? There is an extension for Visual Commander to hide Visual Studio 2013 title bar . In the HideTitleBar function instead of setting visibility to collapsed you can try to change height. I don't think you can change the size of the title bar. The best you can do is to auto-hide it, that way you see the ribbon only when