How to add a button (tool) in title bar like maximize and minimize button in title bar.
I need to add help tool button in my window title bar..?
Thanks in Advance
You can remove the window manager decoration and place some widgets on top of your toplever window, emulating the same behavior.
Related
I want to create a button with a down arrow icon that displays a menu when clicked. I have found the following button type:
But this button can be pressed in two places (on the left of the vertical line and on the right of the vertical line), also I don't want the button to have a vertical line, I want it to be something like this:
Can this be done in Windows API?
What you are looking for can be done using either:
a standard COMBOBOX control with the CBS_DROPDOWNLIST window style:
(source: s-msft.com)
A Menu button:
(source: s-msft.com)
However, this is not a standard Win32 control. MFC has a CMFCMenuButton class for it, but in Win32 you have to owner-draw a standard BUTTON control to achieve the same effect:
Menu button arrow with raw Win32
When the button is pushed, you can display your pop-up menu as needed, using TrackPopupMenu() or equivalent.
I tried with removing title bar using WindowStyle="None".But I need to to show and hide the title bar in WPF by mouse over .So how can i proceed in xaml code ?
I have a WinForm application that I would like to add a RadDoc like a popup menu on the left inside form main.
The user should be able to hover to the left side of the screen or click some tab on the left side of the screen and then the menu bar will appear.
The RadDock control itself does not have a auto hide.
I can hide the ToolWindow inside the RadDock but this leaves a blue background where the ToolWindow would show.
Also, when the ToolWindows are "AutoHide" they are tabbed at the bottom but they need to be tabbed vertically on the left.
The last thing is that I can't seem to set the "popup" size of the ToolWindows.
I would suggest that you go through the RadDock documentation.
Auto Hide article: http://www.telerik.com/help/winforms/dock-architecture-and-features-auto-hiding-windows.html
Arranging windows: http://www.telerik.com/help/winforms/dock-architecture-and-features-arranging-dockwindows.html
Modifying windows size: http://www.telerik.com/help/winforms/dock-object-model-example-building-an-advanced-layout-at-runtime.html
To make the whole control collapsible, you can use the RadCollapsiblePanel control: link.
I need to remove or hide the main menu and Layout tool bar from Report Designer of End-user. I have code to remove or hide a particular control
designForm.ActiveDesignPanel.SetCommandVisibility(ReportCommand.OpenFile, DevExpress.XtraReports.UserDesigner.CommandVisibility.None);
but I need to hide that entire Main Menu and Layout tool bar ? How to hide this Main Menu & Tool Bar ??
Thanks in advance.
Sri
If you want to customize end user designer in detail then rather then hiding and removing panels you should use latest devexpress release with end user customization feature.
In this you can control every thing from your visual studio solution only no need to write any logic to hide or remove.
http://documentation.devexpress.com/#XtraReports/CustomDocument2553
i have a serious problem here. i'm trying to use a modal window in my application. till now i used just a window over the parent window. but this caused a problem of not disabling the background.
here is my window:
the problem in the above pic is the background is not being disabled. if i use the modal window it occupies the whole view, which i dont want.
What i'm need of:
i need a view something like this alert view, which wen shown the background goes to disable mode.
any help is highly appreciated..
thank you...
Unfortunately You can not use the modal window as dialog box, but you can do a small trick and make your window look like a modal window.
Create a view and disable the click event on it. Add your dialog window to this view and show this view on screen.
var disableView = Titanium.UI.createView({
height:480,
width:320,
top:0,
backgroundColor:'#000',
opacity:0.7,
touchEnabled:true
});
disableView.add( yourWindow);