titlebar

How to remove title bar in JFrame

泪湿孤枕 提交于 2019-12-28 02:06:10
问题 I'm using the following code for practising, http://docs.oracle.com/javase/tutorial/uiswing/examples/layout/BorderLayoutDemoProject/src/layout/BorderLayoutDemo.java I also add frame.setSize(frame.getMaximumSize()); in createAndShowGUI() method, What is more I want this window not to have the title bar, close and minimize buttons. I tried the following code, frame.setUndecorated(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); If I added this code before the pack(), it goes into

Remove icon/logo from action bar on android

↘锁芯ラ 提交于 2019-12-27 10:42:14
问题 I've been trying to find some way of removing the icon/logo from the action bar but the only thing I've found after an hour of searching SO, Android's documentation and Google is how to remove the title bar in whole. That is not what I want. Only want to remove the icon/logo from the title bar. Any one know how to accomplish this? Preferably I'd like to do this in XML . 回答1: If you've defined android:logo="..." in the <application> tag of your AndroidManifest.xml , then you need to use this

Android: Ability to Auto-Hide the Title/Status Bars?

瘦欲@ 提交于 2019-12-24 23:27:53
问题 I have a fullscreen drawing app that disables the title and status bars using the Android Theme.NoTitleBar.Fullscreen theme. One of the requests I am getting would be the ability to have these UI elements set to auto-hide, such that is the user touches near where they would be, they are shown. I can imagine ways to accomplish this using a custom Activity that emulates the title bar, but replacing the notification bar just isn't feasible. So, just wondering if there is any way to auto-hide the

C# Getting window's title by handle in Hebrew return question marks

邮差的信 提交于 2019-12-23 17:21:40
问题 I am using this: to get window's title by its handle: [DllImport("user32.dll")] private static extern int GetWindowText(int hWnd, StringBuilder title, int size); StringBuilder title = new StringBuilder(256); GetWindowText(hWnd, title, 256); If the title has hebrew chars, it replaces them by question marks. I guess the problem is related to econding or something... how can I solve it? 回答1: Use this: [DllImport("user32.dll", CharSet = CharSet.Auto)] 回答2: Your question contains a little error,

Change both text and background color in title bar (Android)?

心不动则不痛 提交于 2019-12-23 12:53:49
问题 I build an Android app and I am trying to change the title's bar background and text colour. In AndroidManifest.xml: <application ... android:theme="@style/ThemeSelector" > In styles.xml: <style name="ThemeSelector" parent="android:Theme.Light"> <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item> </style> <style name="WindowTitleBackground"> <item name="android:background">@color/titlebackgroundcolor</item> <item name="android:textColor">@color/titletextcolor<

Adding secondary text to window title bar in Cocoa?

可紊 提交于 2019-12-23 07:50:03
问题 I was hoping to release my software with a trial period and I was wondering how I could show a link in the right side of my title bar telling them how long their trial will last similar to this: . Anyone have any suggestions? 回答1: You can get the superview of the windows content view and add a custom view to that. Just make sure you position your view correctly. Here is some sample code: NSView *frameView = [[window contentView] superview]; NSRect frame = [frameView frame]; NSRect otherFrame

How to set the background of the titlebar?

喜你入骨 提交于 2019-12-22 18:09:20
问题 I have followed the instructions from this SO question: How to change the text on the action bar I am able to successfully create my own titlebar, however when I apply a background color to my layout, the color doesn't span across the entire titlebar. There are still remnants of the android gray background color. Here is my XML: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="400px" android:layout_height=

Blank title in action bar

和自甴很熟 提交于 2019-12-22 03:57:02
问题 Is it possible to remove title bar which I think is ugly and doesn't fit in my application but still use actionbar? After I call requestWindowFeature(Window.FEATURE_NO_TITLE | Window.FEATURE_ACTION_BAR); the title bar stays but piece of my view is gone(cant scroll up) Is it possible to get rid of title bar but still keep actionbar, if I dont request it as window feature getActionBar() returns null everytime.. 回答1: Following Honeycomb, Action Bar was introduced to provide more functionalities,

How to add button to other apps window title bar (XP/Vista)

好久不见. 提交于 2019-12-22 00:48:54
问题 I have the handler of an open window which wasn't necessarily open by my process. How can I add a button to that window and make the button call a certain application (.exe) when clicked? The button could be next to the system menu or the minimize button. This should work for both XP and Vista (a different approach for each version is OK). 回答1: The standard approach is to inject a DLL into the process with SetWindowsHookEx, hooking WH_CALLWNDPROC to monitor the WM_NCPAINT message. That used

Move a window by clicking an internal widget instead of title bar

心已入冬 提交于 2019-12-20 07:26:27
问题 In Windows when I create a QMainWindow I can move it around the screen by clicking the title bar and dragging it. In my application I've hidden the title bar by using setWindowFlags(Qt::CustomizeWindowHint) and I'm trying to build a custom title bar using a widget and setting it in the menu space with setMenuWidget(myWidget) . Now I want to reproduce the original behaviour: I want to click on my MyWidget widget inside the QMainWindow and, while mouse is pressed, dragging the mouse moves the