custom-controls

How do I manually highlight an NSPopUpButtonCell when drawing it (draw it using white instead of black)?

I've got a custom cell composed out of several cells, one of which is an NSPopUpButtonCell. When drawing my custom cell highlighted, I want to cause all the sub-cells to highlight as well (typically by turning white). With, for example an NSTextCell, if I call setHighlighted:YES before calling drawWithFrame:inView the cell will be draw...

Binding new property on Custom Control to View Model.

Hi there, How do i extend an existing control (ComboBox in my case) to include a new property which i can bind to a property on my view model?? I have a Dependancy Property on the control's class as follows: public class MyComboBox : ComboBox { public static readonly DependencyProperty MyTextProperty = DependencyProperty.R...

ALT+<shortcut> precedes KeyPress events on custom textbox winform control

Hi, I'm having a rather tricky problem that I'll try to explain as good as possible. The control is a textbox built from scratch. It inherits from System.Windows.Forms.Control. Now, on the form, I have a few other controls with the & shortcut (ALT+). When a non-input control is focused in winforms, you can exclude ALT in these shortcu...

Blackberry - custom BubbleChartField

I need to develop a blackberry application which should show a bubble chart. How to implement custom control for this purpose? thanks. ...

[NSIS] Custom radio-buttom INI page via Eclipse

I'm using Eclipse's create InstallOptions menu to create a custom INI page with radio-buttons for repackaging the Blackberry Desktop installer. There are 2 sections for each type: "Internet" and "Enterprise". I need a user to select 1 of the 2 options and depending on their selection, the page will carry over the selection chosen in th...

How do I make an ASP.Net 2.0 web control that can accept HTML as a string (for a property) between the start and end tag?

Basically I want to be able to have a custom control: public class MyControl : WebControl { private string html; public string Html { get { return html; } set { html = value; } } } And then in an ASPX page use it like this: <tag:MyControl runat="server"> <div> <span>Some Text</span>...

custom controls, dynamic creation

Hi I've created a custom control in asp.net, if I drag it onto another web page it works fine, as expected, however I want to use it dynamically as in Dim lCustomControl as new cldButton However I can't work out how to do this, the compiler does not recoginise the cldButton as a control.I will add it to the page latter in the cod...

Android: Custom Button with overlay

Hi I would like to create a custom button with framed caption in right top corner. Looks like it requires to use overlays, but it is available only for map view. Button should work following way: 1. User clicks on button. 2. Button behaves as an usual button, so we see that it is focused, pressed or has normal state depending on what i...

How to select and move multiple controls at runtime

Hi, I have created some custom controls (TCustomControl) in Delphi that I can move them at runtime but only one by one. How I can select two or more of these controls, at runtime again, and move them around all together with the mouse? Thank you. ...

Ninject, ASP.NET and Custom Controls

Hey guys, I'm currently using ASP.NET (standard, not MVC) and I'm using Ninject as my IOC container. I'm already using it to inject dependencies into my pages, however, I was wondering if there was a way to inject dependencies into my custom controls? If not, I'll get underway extending Ninject :) ...

Options to display 20 - 200 items for user selection in a winform app?

I have need of a checked combobox control like this one --> DevExpress (I am using this now and would like to move away from DevExpress for many many reasons) I am willing to attempt my own control though I would like*(read need)* some direction. I am willing to use Krypton's Free Tools and extend them (if possible) though; I cannot, a...

Silverlight Custom Control Create Custom Event

Hi There, How do I create an event that handled a click event of one of my other control from my custom control? Here is the setup of what I've got: a textbox and a button (Custom Control) a silverlight application (uses that above custom control) I would like to expose the click event of the button from the custom control on the main...

ASP.net - Using a jQuery datepicker in a custom control

I'm trying to use the jquery datepicker - http://jqueryui.com/demos/datepicker/ in a custom control (.ascx). To enable the datepicker, I need to add the following script at the top for an input: $("#dateinput").datepicker({}); The problem is, that the id of the element changes when the custom control is on a page. When the custom con...

WPF Custom Control Property not receiving data binding

WPF XAML, I have a custom control I have written that wraps lookups. In typical government fashion, they have a lookup table for all possible lookups. My custom control will throw a popup overlay asking them to select from the items in the list. My problems relate specifically to databinding from my calling form to my control property to...

WPF CustomControl: OnApplyTemplate called after PropertyChangedCallback

I am creating a WPF CustomControl that has a dependency property with PropertyChangedCallback. In that Callback method I try to set values on some of the control's parts that I retrieve from OnApplyMethod using the GetTemplateChild() method. The problem is that the PropertyChangedCallback is (on some systems) called before OnApplyTempla...

c# usercontrol depending on user class library

Hi, I've made a user custom control which uses external (seperate dll) class library. In MSVS's control viewer everything is fine but when I try to use my control in project the functionality which depends on the external dll does not work until I put that dll into references. Is there a way to fix it? I mean I don't want to put each li...

Nothing from Property TagKey()

I'm writing an ASP.NET custom composite control (Inherits System.Web.UI.WebControls.CompositeControl). By default my control mark up renders surrounded by tags. I know I can over ride the property TagKey to set the return as whatever tag I want from the System.Web.UI.HtmlTextWriterTag enum. My question: Can I make my control render wi...

Collapasable Menu Like Macromedia Applications

hey you must have used Macromedia Dreamwaever & flash & fireworks, in all these aplications on the right side there is a collapsable menu. "When you click on it it expands and show its contents and on another click it collapses"... I'm working on a project in C# winforms and that sort of menu is an important interface requirement. How c...

What are your 'best practices' for writing custom controls in WPF

Hi all, I have started writing some custom controls for a highly visual project. I was wondering what are your 'best practices' when coding WPF custom controls? Thanks, Adam ...

WPF design question (custom control or mvvm)

Here is the scenario: I have a visual that displays some data The data to the visual can come in one of two ways Via user input through the keyboard or mouse Via some backend source Both these data inputs can be of one of two forms Control data or Raw data for simple display Control data causes changes in the visual Raw data is sim...