custom-controls

Flex: Expose component's existing events with new name

I created a flex component that hosts several built in (mx) components such as a listbox and combo box. My component relies on external data, and I need to expose events such as ComboBox.enter and List.click to get certain pieces of data. I was wondering if there is any easy way to do this without having to create my own custom event h...

Blackberry 4.5 - How to click on a .jpg image?

Hi all, I m displaying a .jpg image in a BitmapField & adding it in a VerticalFieldManager. It is getting displayed but I cannot click on it. I m doing it like.. Bitmap bitmap = Bitmap.getBitmapResource("image.jpg"); BitmapField bitmapField = new BitmapField(bitmap , BitmapField.FOCUSABLE) { protected boolean nav...

iPhone custom UITableViewCell accessory graphic, a HIG violation?

I want to introduce a custom pencil accessory image in a tabel cell and in the standard accessory righthand UITableViewCell position. The pencil image will be used to indicate that the text in the table cell can be edited via a popup modal full screen view. Will Apple penalize this innovation during the app review process? My justifica...

OwnerDraw ComboBox is not "styled" anymore

Hello, I've created a custom combobox with DrawMode = OwnerDrawVariable. Everything is fine, except it doesn't use visual styles anymore in DropDownList mode, i.e. it looks like old combobox. How can I make it drawn using visual styles? I checked VisualStyleElement class but haven't found there anything that could help me. Does it mean ...

Create a custom Full sized Calendar Control

How can I make a custom control that show the calendar control in a much larger view. Like this or like the calendar view in outlook 2007. Do I have to make a custom class or can I just attempt to resize the calendar. I am doing this in WPF so I use WPF Toolkit ...

Custom ListView binding it to a object list [winforms]

EDIT: Question Reworded I have a listbox that should display data that contains 2 fields: time and a message. Instead of displaying 1 line of text, I want each item to be displayed as 2 lines - 1st line is the time and the 2nd line is the message, where each line has a different style. How can I do this? I can bind the object array to ...

Winform customize listbox item

Possible Duplicate: Custom ListView binding it to a object list I have a listbox that should display data that contains 2 fields: time and a message. Instead of displaying 1 line of text, I want each item to be displayed as 2 lines - 1st line is the time and the 2nd line is the message, where each line has a different style. Ho...

WPF Custom Items Control with search support

Hi ! I need to write a custom WPF control that should look like a ComboBox with extended items search feature. For this purpose I'd like to have a TextBox and a Popup with a search TextBox and a ListBox. My first question is if it's a good decision to inherit from Selector, or rather ComboBox ? The second question is where can I find...

ListBox instead of ItemsPresenter in WPF Custom Control ?

Hi ! I'm writing a generic control template for my WPF Custom Control. But with ItemsPresenter I only got raw list of Data.. Compared to the ListBox, the ListBox has all features I need. Is it wrong to use a ListBox instead of ItemsPresenter ? What I'm after is that if I write a generic Template that uses a ListBox and in code behi...

Want to access a setting in webconfig's appsetting section inside a custom control's attribute

I have a custom control that I declare like: <hello:someControl id="asdf" /> Now I need to access a config setting in the web.config's appsetting and give access to it to the control. I want to pass this value using the attribute. How can I do this? ...

Replaced ItemsControl with ListBox and the item selection + ListBox height seems broken...

Hello, I have loaded this project into Visual Studio => http://sites.google.com/site/huyphamproject/Home/MyDashBoard.zip I have replaced all ItemsControl declaration in the main xaml file with ListBox so I have a SelectedItem property which I would need to use it with mvvm + datatemplate. When I select now one item in the ListBox-dash...

Custom Control Not Rendering After Event

I am just playing with custom controls, and have one built that looks like so: <cc:Test ID="jqTestTest01" runat="server" OnTestClick="jqTestTest01_TestClick"> <TestItems> <asp:ListItem Text="Tab One" Value="1" Selected="True" /> <asp:ListItem Text="Tab Two" Value="2" /> <asp:ListItem Text="Tab Thr...

BlackBerry - Invoke a click event on bitmap Field

Hello .... can anyone help me for solving the below question. I am making an application for blackberry in that from one bitmapField i have to invoke a new screen by clicking on the bitmapField. I want the code for the same... how to invoke a new screen by clicking on a bitmapField... and i am using blackberry JDE 4.7 ...

Can't get to custom control

Hi! I have a custom control on my web form: <form id="form" runat="server"> <clc:CustomList ID="myList" runat="server" AddButtonText="add" DeleteButtonText="del" MoveUpButtonText="up" MoveDownButtonText="down"/> <div id="test" runat="server"></div> </form> I need to get...

accessing data from a dynamically added custom control.

I am writing a survey generating system in asp.net. i asked an ealier question about the best way to create controls that can be passed about as variables. This was problematic with user controls so i was advised to use custom controls and a quick way to do this was to inherit from the panel control and just add a bunch of standard co...

How to Create Stable and Fast Asp.net Custom Control

Hi Experts, I need to create an Asp.net Calendar Control with Daily-weekly-Monthly & Yearly view This Control should Have Some Events , Properties and some Methods as its clear. This Control should be capable to add tasks ( jobs) and some photos in each day Also Should have Remainder and should be Full Ajaxable. So As I'm not familiar ...

How to serialize custom control property into form's resources?

Hi. I'm developing custom control for Compact framework. I want to add some design-time features for it. My control has byte[] property. This property stores data from file (about 20 KB). Visual studio designer produce for my control code like this: this.transparentPanel1.Image = new byte[] { ((byte)(137)), ((byte)(80)), ((b...

How can I let a user select from a dropdown OR provide their own value in the Django admin?

I'm using a third-party app (Satchmo) and I want to change a text field to a dropdown with some preset options plus a text field where the user can fill in their own value. I know how to mess with the admin model to change the field to use a dropdown of presets, but not how to preserve the users ability to specify the value themselves. ...

Getting my hands on some old Protoview VB6 controls...

Hi all, I have inherited a project from a client, who believes he has all the source code, but unfortunately this particular VB6 application used a bunch of custom controls that the original programmer will not give up (he may in fact have purchased the licenses himself, so he may be right in not turning them over, on the other hand sinc...

Add bound DependancyProperty to button to control image displayed

Here is a simplification of the problem I want a Button with an extra DependancyProperty that I can bind to. The value of this property will control which image is selcted on the button. Question 2 is do I create a UserControl and draw the button on. If so how do I can use triggers to manage the image BUT I do not know how to do the T...