custom-titlebar

How can I put a custom button on the title bar? [duplicate]

若如初见. 提交于 2019-12-23 13:08:26
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Non client painting on aero glass window I want to have a button like Skype's compact-view button on the title bar. How can I do that? For example: 回答1: You can use the JvCaptionButton which comes free in the very-nice-but-very-large open-source free JVCL library. It is a general purpose "caption button". Caveat: The appearance is not purely native and not Windows-7-aero-themed. This button does not decide what

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

gtk3 GtkWindow title bar color

跟風遠走 提交于 2019-12-12 03:23:28
问题 Using gtk3, how can I change the default GtkWindow titlebar color? Would it involve GtkStyleContext? I've only used GtkCssProvider. 回答1: You can't change the titlebar color from GTK. The titlebar is drawn by the window manager, and GTK doesn't "know" anything about it. You can only communicate with the window manager through "hints", such as whether the window should have a titlebar or what string should be displayed there, but the window manager is free to ignore them. 回答2: You can do it...

change the spinner title bar style

和自甴很熟 提交于 2019-12-01 12:07:41
问题 How can i change the spinner title bar style. I wish to change the title bar for the following items: icon title textsize,textColor and background color How can i do this? please help me...i have searched google and more sites.am not getting any solution for this.so please let me know its possible.if possible means how can i develop this????please explain me. EDIT: This is my code: ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.row, R.id.country, list); spinner

how to include custom title view with in AlertDialog in android?

落爺英雄遲暮 提交于 2019-11-30 17:25:15
how can i include custom titlebar in alertDialog?I know android sdk provide setCustomTitle method but it does'not work edit: AlertDialog alert = new AlertDialog.Builder(this).setTitle("Test").setMessage("hello").show(); View view=alert.getLayoutInflater().inflate(R.layout.titlebar, null); alert.setCustomTitle(view); but above code is not working NOTE : I am not looking for custom dialog box but only want to makes its title layout custom..Like below Vikram you should not use the .show method with the first line, use the following code it works: AlertDialog.Builder alert = new AlertDialog

how to include custom title view with in AlertDialog in android?

大憨熊 提交于 2019-11-30 01:02:08
问题 how can i include custom titlebar in alertDialog?I know android sdk provide setCustomTitle method but it does'not work edit: AlertDialog alert = new AlertDialog.Builder(this).setTitle("Test").setMessage("hello").show(); View view=alert.getLayoutInflater().inflate(R.layout.titlebar, null); alert.setCustomTitle(view); but above code is not working NOTE : I am not looking for custom dialog box but only want to makes its title layout custom..Like below 回答1: you should not use the .show method

Tabs in title bar: what's the secret?

本小妞迷上赌 提交于 2019-11-28 16:42:36
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 bar with the OS (put custom elements in the title bar while keeping the original OS visual theme)? In

Tkinter custom window

蓝咒 提交于 2019-11-28 14:18:30
I want to make a window in Tk that has a custom titlebar and frame. I have seen many questions on this website dealing with this, but what I'm looking for is to actually render the frame using a canvas, and then to add the contents to the canvas. I cannot use a frame to do this, as the border is gradiented. According to this website: http://effbot.org/tkinterbook/canvas.htm#Tkinter.Canvas.create_window-method , I cannot put any other canvas items on top of a widget (using the create_window method), but I need to do so, as some of my widgets are rendered using a canvas. Any suggestions on how

How to customize the title of a PreferenceActivity?

和自甴很熟 提交于 2019-11-28 09:57:41
问题 I have the same problem like this question: Custom title bar in PreferenceActivity? After extending PreferenceActivity , I write this code in onCreate() , it just shows a blank grey title. I think it is a bug (because this solution works well with Activity). requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title); super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.main_pref); Edited : window_title.xml <

Tkinter custom window

喜夏-厌秋 提交于 2019-11-27 08:28:16
问题 I want to make a window in Tk that has a custom titlebar and frame. I have seen many questions on this website dealing with this, but what I'm looking for is to actually render the frame using a canvas, and then to add the contents to the canvas. I cannot use a frame to do this, as the border is gradiented. According to this website: http://effbot.org/tkinterbook/canvas.htm#Tkinter.Canvas.create_window-method, I cannot put any other canvas items on top of a widget (using the create_window