borderless

Smooth resizing in a borderless form/window in Delphi

与世无争的帅哥 提交于 2019-12-01 17:55:51
I am trying to resize a borderless form but when I increase the size using the right/bottom side, I get a gap between the border and the old client area that depends of the speed you move the mouse. The effect is more noticeable when you resize from the left border or even from the bottomleft corner, it's horrible everywhere (I tried with other commercial apps and it happens as well). This effect happens as well when I change to sizable border, but it's not as awful as when I remove form borders The form layout consists in a top panel doing the title bar function (with some tImages and buttons

Draggable borderless window in CefSharp

删除回忆录丶 提交于 2019-12-01 01:45:59
I want to implement borderless window with drag logic on some HTML element. I found some working examples (like frameless window for Chrome ) and this is what I've tried: .title-area { -webkit-app-region: drag; } <div class='title-area'> A draggable area </div> Then, in C# code I've implemented IDragHandler class: internal class PromtDragHandler : IDragHandler { bool IDragHandler.OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask) { return false; } void IDragHandler.OnDraggableRegionsChanged(IWebBrowser browserControl, IBrowser browser, IList

Draggable borderless window in CefSharp

自闭症网瘾萝莉.ら 提交于 2019-11-30 21:11:48
问题 I want to implement borderless window with drag logic on some HTML element. I found some working examples (like frameless window for Chrome) and this is what I've tried: .title-area { -webkit-app-region: drag; } <div class='title-area'> A draggable area </div> Then, in C# code I've implemented IDragHandler class: internal class PromtDragHandler : IDragHandler { bool IDragHandler.OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask) { return

Borderless window application takes up more space than my screen resolution

冷暖自知 提交于 2019-11-30 19:13:01
I have created a borderless application in WPF, and it works pretty good. However, when I set the WindowState to full screen, the application takes up more space than my screen resolution, so there are some pixels outside the screen in all directions! (looks like some hard coded negative margins are added to hide the default border) Any Ideas how to prevent this from happening? My xaml: <Window x:Class="MyApp.Shell" WindowStyle="None" BorderThickness="0" AllowsTransparency="True" Background="Transparent" ResizeMode="CanResizeWithGrip" WindowState="{Binding MainApplicationWindowState}" ... Also

Borderless window application takes up more space than my screen resolution

故事扮演 提交于 2019-11-30 15:08:27
问题 I have created a borderless application in WPF, and it works pretty good. However, when I set the WindowState to full screen, the application takes up more space than my screen resolution, so there are some pixels outside the screen in all directions! (looks like some hard coded negative margins are added to hide the default border) Any Ideas how to prevent this from happening? My xaml: <Window x:Class="MyApp.Shell" WindowStyle="None" BorderThickness="0" AllowsTransparency="True" Background=

Move window without border

狂风中的少年 提交于 2019-11-30 07:04:33
How do I move a window that does not have a border. There is no empty space on the application, all that is available is a webbrowser and a menustrip. I would like the users to be able to move the window by dragging the menu strip. How do I code this? I have tried a few code blocks I have found online, but none of them worked. This Code Project article should help you accomplish this. I've used this myself with no problems. This is the jist of it: public const int WM_NCLBUTTONDOWN = 0xA1; public const int HT_CAPTION = 0x2; [DllImportAttribute("user32.dll")] public static extern int SendMessage

Move form without border style

故事扮演 提交于 2019-11-30 02:24:05
how do I move a borderless form? I tried looking on the internet, but nothing. Thanks a lot. You can drag a form using any contained control, including itself. Using the following example, you can move a form by clicking on its canvas and dragging. You could do the same with a panel on the form by putting the same code in the panel's MouseDown event, which would let you create your own pseudo caption bar. procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); const SC_DRAGMOVE = $F012; begin if Button = mbLeft then begin ReleaseCapture;

FormBorderStyle.None removes the native open effect of windows 8

北城以北 提交于 2019-11-29 15:03:25
I like to have my form borderless in C#. So I used this code: FormBorderStyle = FormBorderStyle.None; But it removes the aero effect of windows 8. The form opens suddenly like a blink. How can i bring the aero effect back? Matin Lotfaliee I am answering my own question using the C++ reference I wrote a class inherited from Form Class. Each form in application should be inherited from this class instead of Form Class. public class AeroForm : Form { int _w = 100, _h = 100; bool aero = false; [StructLayout(LayoutKind.Sequential)] struct MARGINS { public int Left, Right, Top, Bottom; } [DllImport(

Move window without border

醉酒当歌 提交于 2019-11-29 07:21:39
问题 How do I move a window that does not have a border. There is no empty space on the application, all that is available is a webbrowser and a menustrip. I would like the users to be able to move the window by dragging the menu strip. How do I code this? I have tried a few code blocks I have found online, but none of them worked. 回答1: This Code Project article should help you accomplish this. I've used this myself with no problems. This is the jist of it: public const int WM_NCLBUTTONDOWN = 0xA1

Move form without border style

牧云@^-^@ 提交于 2019-11-28 23:17:06
问题 how do I move a borderless form? I tried looking on the internet, but nothing. Thanks a lot. 回答1: You can drag a form using any contained control, including itself. Using the following example, you can move a form by clicking on its canvas and dragging. You could do the same with a panel on the form by putting the same code in the panel's MouseDown event, which would let you create your own pseudo caption bar. procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: