custom-controls

Problem databinding a custom control in silverlight

I'm attempting to databind a custom control in Silverlight 3 and I'm getting strange problems with it. My xaml for the user control is this: <UserControl x:Class="StronicoMain.GenericSmallIcon" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="4...

drawRect not being called on added subview

I'm trying to programmatically create a window with custom contentView and one custom NSTextField control, but i'm having trouble getting this hierarchy of window and views to draw themselves. I create a custom borderless window and override it's setContentView / contentView accessors. This seems to work fine and custom contentView's in...

Add Custom Toolbox Group in VS2005

I have two separate VS2005 projects, one that contains a number of custom controls and one that contains a WinForms project that needs those custom controls. I don't need an installer to distribute the control library to third parties, it just needs to be available in the other project I'm working on. I'm trying to execute the batch fi...

flip coordinates when drawing to control

I am drawing a graph on a control, but 0,0 is at the top-left hand corner of the control. Is there a way to flip the coordinates so that 0,0 is at the lower left corner of the control? ...

Creating ASP.NET composite control. How to apply properties associated with SkinID?

I am creating a custom composite control based off of an asp:Label control. I'd like to be able to have the label's default properties be skinable as well as additional properties that I add to my control. But when I add a skin definition to the Default.skin file in my themes directory, and add the control to my page with the SkinId sp...

I want a beautiful custom window for my first cocoa app

Hi! I'm a graphic designer - turned web designer - turned web developer - who is currently trying to turn into a mac developer. I've nearly done programming my first app. Is a very, very simple application but I'm happy because I'm learning a lot of new stuff. The problem is: I don't like how it looks. As you may guess, design is a ver...

Blackberry - fields layout animation

It's easy to show some animation within one field - BitmapField or Screen: Blackberry - background image/animation RIM OS 4.5.0 But what if you need to move fields, not just images? Like this: May be used: game workflow functionality, like chess, puzzle etc application user-defined layout, like in Google gadgets enhance...

wpf custom control not recognized

This is my first foray into custom controls, and it's not going well. I have a custom graph control derived from Canvas. namespace Grapher2 { public class SeriesManager : Canvas { public SeriesManager() { ... } } } It's defined in the same project and namespace as my app. I tried adding a reference to the c...

Adding a Component from the Data Sources View in Visual Studio on a Form with a Custom Designer

Hello guys, I have developed a custom Designer (by inheriting from DocumentDesigner and reflecting the code found in the FormDocumentDesigner class so that I do not brake the default Form design time features) class for my forms. I associate the designer with my forms by using the Designer attribute the following way: [Designer(typeof(...

Giving a WPF ItemsControl a different look based off whether ItemsSource holds a single value or multiple values?

Are there any slick ways to style/template a WPF ItemsControl differently based off whether ItemsSource holds a single value or multiple values? What I've done so far is to create a custom ItemsControl class which among other things displays the list of bound items as a horizontally oriented comma separated list. So far I'm pretty happy...

Custom control in a .net web application project

I have a few custom controls that were created as Server Controls projects. I had a few changes to make, so I just added the classes to an existing Web Application project so I could have things in one place. This web app project is compiled into a dll that is used on several web projects. When I build the web app project and place the ...

ASP.Net DataBound Control that can be "Selected"

I have created a databound control that creates 3 calendars with specific formats and binds a list of dates to it to format it even moreso... anyway, that part is working perfectly. I'm trying to implement a day selector, so, when the user clicks on a day in the calendar, it'll highlight the day and raise an event to the calling page. ...

Cascaded ListBoxes using SPFieldMultiChoice - issue defaults to default Content type

I wound up modifying the source from a publically posted POC: http://datacogs.com/datablogs/archive/2007/08/26/641.aspx, which is a custom field definition for cascading drop downs. The modifications were to allow parent-child list boxes where a user can multiselect for filtering and selecting the values to be written back to a SharePoin...

ASP.NET Custom Control in VS - How to make VS format correctly

This is probably a pretty simple answer, but I haven't written a lot of controls, and I can't really think of the right words to Google it properly: I have a custom control that I built, and when I create an instance in the HTML editor in VS, I type the following: <cc1:MyControlName id="id1" runat="server"> When I type that closing a...

How to make an ownerdraw Trackbar in WinForms

I'm trying to make a trackbar with a custom graphic for the slider thumb. I have started out with the following code: namespace testapp { partial class MyTrackBar : System.Windows.Forms.TrackBar { public MyTrackBar() { InitializeComponent(); } protected override void OnPaint(System.W...

Derived ASP.NET UserControl not visible in VS2008 designer

Hello! I have an abstract base class derived from UserControl (called BaseControl) and several other classes inheriting from this BaseControl class. BaseControl class gets typed to f.ex. TextBox or DropDownList and then in its constructor i create a new instance of this type. Everything is working just fine otherwise, but for some reas...

How to create a custom control with both an enabled and disabled visual state and a content presenter.

I'm new to making custom WPF controls so I'd really appreciate a little help and some explanation. Here's the situation: I'm trying to make a custom control with the following traits: The control must have a content presenter. The control must have either a disabled/enabled visual state, or be tri-state, (unstarted/inprogress/finished...

wxwidgets custom control size cannot be set.What am i missing out

I have a Custom control derived from wxControl,inside a dialog with a vertical sizer wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL ); Knob* newKnob = new Knob(panel,wxID_ANY,wxDefaultPosition,wxSize(40,40)); topSizer->Add(newKnob,0,wxALL|wxALIGN_CENTER); panel->SetSizer(topSizer); topSizer->Fit(panel); //panel is a wxPanel inside t...

Black Berry Table View

here is my app. how to add table view or grids in the following. should i draw every thing plz help this is my code import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.system.*; import net.rim.device.api.util.*; import java.util.*; /*An applicati...

How do I embed javascript directly into my ASP.net Custom Control?

I am building my first user control and I would like to package the javascript required for the control with the assembly so the end user does not have to worry about including dependencies. I've followed a tutorial from Scott Mitchell (http://aspnet.4guysfromrolla.com/articles/080906-1.aspx) but I can't seem to get it to work right. H...