custom-controls

Winforms DataGridView custom edit control/cell

时间秒杀一切 提交于 2020-01-06 04:03:28
问题 I'm creating a custom editing control for my DataGridView in my winforms application, and I'd like to raise an event when the user hits the enter key, but before the datagridview scrolls to the next row. I don't really care if the event is raised by the cell, or the editing control as I can propagate the event as needed. So far I've tried to override both the OnKeyDown and OnKeyUp methods of the DataGridViewTextBoxCell class which I'm inheriting from and neither of these methods seems to be

Android Custom Control Layout Troubles

て烟熏妆下的殇ゞ 提交于 2020-01-05 10:18:33
问题 I have built a custom listView xml item; however, I am not getting what I expected...I changed the background colors to show in more detail what is happening on the second picture. Basically, the playlist items should extend to the right side of the screen, and the colored text should be all on the right side of the screen (That is what the Designer is showing). Right now the colored text lines up right where the song title ends. How do I fix this? EXPECTED RESULT WHAT I AM GETTING! <?xml

Custom Google Map v3 Controls Position Issue

我的未来我决定 提交于 2020-01-05 08:14:14
问题 I'm having an issue with three custom controls I have created for a map application. According to the API documentation: The API places controls at each position by the order of an index property; controls with a lower index are placed first. For example, two custom controls at position BOTTOM_RIGHT will be laid out according to this index order, with lower index values taking precedence. By default, all custom controls are placed after placing any API default controls. You can override this

Android Custom Button Drawable XML File

♀尐吖头ヾ 提交于 2020-01-05 04:18:09
问题 I recently discovered that you can describe an Android custom drawable in an XML file, which you can then use with a button (and other View, I guess), and this inspired me to ask this question: Does anyone know (or know where I can find) an XML file that precisely describes the exact default button that shows up in an Android application if you don't change a single detail. It seems to me, that would be a very helpful starting point. Thanks, R. 回答1: The default Android Views, like Button, and

Replacing Radio Buttons with Check Box on License Wizard Page in Inno Setup

旧时模样 提交于 2020-01-04 23:46:40
问题 Is there any easy way to replace standard 2 radio buttons on License Wizard Page with single (checked/unchecked) Check Box in Inno Setup whithout creating Custom Page? 回答1: Since there are no settings to switch between license radio buttons and some license check box (at least just because there's no component for it on the WizardForm ) you need to create it by your own. The following code hide the original license radio buttons and creates a check box on the same place at the wizard

WPF - how to best implement a panel with draggable/zoomable children?

北战南征 提交于 2020-01-04 14:28:31
问题 I'm trying to modify the default graph viewer of the Graph# library because its user interface is awful (just try dragging a node outside of the boundaries, you'll see!) The basic setup is this: there is a GraphCanvas control (inherited from Panel) which has children of Vertex and Edge control types. What I want to achieve is: GraphCanvas has scroll bars if the contents do not fit in the screen; GraphCanvas can also be scrolled by "dragging" it (just click on an empty space and drag);

Movable FrameControl in Picturebox not working as intended

牧云@^-^@ 提交于 2020-01-04 09:08:33
问题 I'm using the following code to add a movable Frame control to a picturebox and add a translucent background to the outer area of the frame.But the black translucent color is not appearing outside the frame as intended.It is supposed to fill up all the area outside the frame.On dragging the frame its producing the black area where its dragged. I'm using a picturebox with size mode set to Zoom . using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;

How to test a component which contains a custom form control?

荒凉一梦 提交于 2020-01-04 03:01:07
问题 I got a component like this @Component({ selector: 'app-custom-form-control', templateUrl: '<input>', providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SelectComponent), multi: true } ] }) export class CustomFormControlComponent implements ControlValueAccessor {...} As you see it's a custom form control. I use it in a component which I'm going to test. @Component({ selector: 'app-root', templateUrl: '<div [formGroup]="form"> <app-custom-form-control formControlName="my

Dependency property in custom control is sharing memory/values unexpectedly

梦想与她 提交于 2020-01-03 20:01:56
问题 I have the following set up: Custom WPF Control (Base class), deriving from Canvas Implementation of that base class An ObservableCollection<T> dependency property on that implementation I have a test app that displays three unique instances of my custom control (e.g. <custom:MyControl x:Name="Test1" /> , Test2, Test3, and so on). When I run and debug the app, the contents of the ObservableCollection<T> are the same for all three instances of the control. Why is this? Chart: [ContentProperty(

Dependency property in custom control is sharing memory/values unexpectedly

烂漫一生 提交于 2020-01-03 20:01:27
问题 I have the following set up: Custom WPF Control (Base class), deriving from Canvas Implementation of that base class An ObservableCollection<T> dependency property on that implementation I have a test app that displays three unique instances of my custom control (e.g. <custom:MyControl x:Name="Test1" /> , Test2, Test3, and so on). When I run and debug the app, the contents of the ObservableCollection<T> are the same for all three instances of the control. Why is this? Chart: [ContentProperty(