titlebar

Android Gradient Application Title Bar [duplicate]

主宰稳场 提交于 2019-12-20 06:13:57
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How do I programmatically set the background color gradient on a Custom Title Bar? I want to use gradient color in application title bar. How can I do it? Thanks in advance. 回答1: All people are trying to use Custom title for this requirement. I achieved this without using custom title. Just use below code in your activity's onCreate() after setContentView(). GradientDrawable gd = new GradientDrawable

Android - FEATURE_NO_TITLE not working

放肆的年华 提交于 2019-12-20 03:18:00
问题 I am trying to display my about us page via layout, so I don't need any title bar. I tried: Dialog d = new Dialog(this); d.setContentView(R.layout.about_us); d.setCanceledOnTouchOutside(true); d.requestWindowFeature(android.view.Window.FEATURE_NO_TITLE); d.show(); but when I click on the menu item, it force closes. when I comment the third line of the code above, it shows my layout with title bar, which I don't need. P.S.: my activity extends ActionBarActivity, is this the reason? If yes then

Change color of title bar in cocoa

不问归期 提交于 2019-12-19 04:42:46
问题 This must have been asked before, but after Googling I still can't find the answer. How do you change the color of the title bar (The bar that you can click and drag around with the close, minimize and maximize buttons) to a different color than the default gray in Cocoa? 回答1: If you set the background color of a "textured" window (a distinction that isn't really all that visible in Snow Leopard) that color will be applied to the titlebar as well. This is what Firefox does. I would recommend

Title Bar Buttons and Custom Title Bars

帅比萌擦擦* 提交于 2019-12-18 12:00:58
问题 I have created a custom title bar view for a blackened NSWindow (style 0), so that I can have it disappear in a similar manner to Quicktime X. The only problem is, the buttons don't respond to mouse over and mouse move actions on the title bar can get combined with pressing in the buttons. The full source code is here: https://github.com/iaefai/OrganicUI under Classes/ORTitleBar.m and ORWindow.m. The buttons are standard from this method: self.closeButton = [NSWindow standardWindowButton:

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

血红的双手。 提交于 2019-12-18 09:54:47
问题 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

Tkinter: windows without title bar but resizable

蹲街弑〆低调 提交于 2019-12-18 03:38:32
问题 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.) 回答1: The problem is, the window is resizable, but when you turn on overrideredirect you lose any

Tabs in title bar: what's the secret?

醉酒当歌 提交于 2019-12-17 22:30:00
问题 Chrome and Firefox 4, among other applications, now put some of their user interface in the title bar. In Windows, the OS normally controls the entire title bar. An application can create a custom title bar by removing the OS title bar and drawing a "fake" title bar instead (like WinAmp), but only the OS knows how to draw the non-customized elements of the title bar (e.g. Close/Minimize/Maximize), which vary by OS version. By what mechanism do apps like Chrome and Firefox "share" the title

How to change the title icon of a Windows Forms application

社会主义新天地 提交于 2019-12-17 20:44:25
问题 How do I change the title icon of a Windows Forms application? 回答1: Set it in two places: The Icon: dropdown in Project properties -> Application The Icon property of the main form (startup form). 来源: https://stackoverflow.com/questions/17489497/how-to-change-the-title-icon-of-a-windows-forms-application

Adapt the size of a form to its title text in C#

隐身守侯 提交于 2019-12-17 19:51:49
问题 Is there a way to adapt the size of a form to the size of its title / caption text? For example, official C# Message Box forms will adjust to the size of its title text (Note the lorem ipsum ): Other forms will not adjust their size to that of their title text: Instead, an ellipsis is added at the end to fit the size mentioned in the "Size" property of the designer. Is there a way to make the form adjust to the size of the title instead of the size we mention? If not, is there a way to get

How can I customize the title bar on JFrame?

风流意气都作罢 提交于 2019-12-17 06:45:31
问题 I would like to have a customized title bar in my Java Swing desktop application. What is the best way to do that? I can use a "Swing-title bar" by using the following code in the constructor for my JFrame: this.setUndecorated(true); this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); But how do I customize it? Is there any UI delegates that I can override or do I have to implement my own title bar from scratch? I want something like Lawson Smart Office: 回答1: You can see an example