custom-controls

Styling a BlackBerry Application to Look Like an iPhone

I am porting an application from iPhone to BlackBerry. BlackBerry apps tend not to look as polished as iPhone, but naturally, I would like to maintain as much polish as I can, without breaking any important UI conventions. Are there any UI components that can help with this? NB. I am planning to follow all important UI conventions. For ...

CustomListbox control, how to make the items have a custom feel to them in C# (winforms)

So i have a listbox, and here is what im trying to acheive: have the class style adding/selecting/removing sort of like a TreeView ListBox items have more than one label docked to different sides of the space ( for example, the item would be thicker, and would be big enough for two labels on top of eachother, and then perhaps another o...

Blackberry Storm - focus issue on bitmap field

in my screen there are 3 managers h1 h2 bmpf = new BitmapField added in order like this as backgroundmanager.add(h1) backgroundmanager.add(bmpf) backgroundmanager.add(h2) add(background manager); protected boolesn navigationClick() { int index1 = h1.getFieldWithFocusIndex(); int index2 = h2.getFieldWithFocusIndex(); return true; } ...

BlackBerry Storm - focus does not comes on focussable fields added after scrollable list field

searchlist = new FileList(list_vector,ind,j);//a custom list field searchlist.setRowHeight(40); searchListManager = new VerticalFieldManager( Manager.VERTICAL_SCROLL |Manager.VERTICAL_SCROLLBAR) searchListManager.add(searchlist); objManager.add(searchListManager); HomeScreen1.this.add(header_manager); HomeScreen1.this.add(objManag...

Server or CLIENT side Custom ASP.Net Controls???

Hello ! I am an undergraduate student , and working on my Final Year project these days. I have some queries related to Custom Controls as follows: I am designing a text box field which will have three or more functions as follows : Either it will allow numeric characters only Or it will allow an email address to be taken as input Or i...

WPF: How to properly override the methods when creating custom control

Hi, I am creating a custom control Toolbox that is derived from ItemsControl. This toolbox is supposed to be filled with icons coming from the database. The definition looks like this: public class Toolbox : ItemsControl { protected override DependencyObject GetContainerForItemOverride() { return new Toolbo...

Embedding jQuery into your ASP.Net Server Custom Control

Hello ! I am undergraduate student. I had some queries related to embedding jQuery inside your ASP.NET Server side Custom Control. private string GetEmbeddedTextFile(string sTextFile) { // generic function for retrieving the contents // of an embedded text file resource as a string // we'll get ...

ASP.net - First build fails with 'Unknown server tag'

I have multiple custom controls used on a ASPX (and C#) page registered from within the page rather than in Web.Config. On the first build (or rebuild), build fails with error messages for wherever I've used the custom controls. Subsequent builds are successful. The error message: Unknown server tag 'prefix:ExampleControl'. What ...

Blackberry - custom logic for checkboxes group

if i click on any checkbox all previous checkboxes must get checked "my logic works" if i uncheck a checkbox then all checkboxes after it must get unchecked "how to do that" MyLogic works for storm but not for other models what to do //well what i want to do is i have 5 checkboxes class myscreen { chk_service = new CheckboxField[5];...

Programmically scroll a textbox's scroll bar from a Vscrollbar or custom one

I made a custom scrollbar that sits beside a normal textbox. I would like to scroll the text box like you would any other one with my control. How can this be done? Thanks. ...

How to uncheck header checkbox in GridView when sorting and paging?

Hi, I followed this article and it works great except when paging or sorting the HeaderCheckBox is still checked. How and where should this be unchecked? I think it would be best to uncheck it in the control itself, but I am not having any luck even getting a reference to it using this code: protected override void OnSorted(EventArgs ...

How to create Non Resizable custom server control

Hi guys, I am building a custom web panel control for specific purpose.I want the control be fixed with specific width and height so that not to be resized in design mode as well as from property window.How can I do this. It is very important and urgent.I will appreciate if you can help me. ...

Render multiple control collections in ASP.NET custom control

I've build a custom WebControl, which has the following structure: <gws:ModalBox ID="ModalBox1" HeaderText="Title" runat="server"> <Contents> <asp:Label ID="KeywordLabel" AssociatedControlID="KeywordTextBox" runat="server">Keyword: </asp:Label><br /> <asp:TextBox ID="KeywordTextBox" Text="" runat="server" /> </Co...

Why my custom CStatic derived control does not receive WM_SIZE message?

Hello everyone! I'm currently developing a custom control that derives from CStatic MFC class (Smart Device C++ project). I have created the control class using VC++ MFC class wizard, selecting CStatic class as its base class. I have used Class View to add OnSize event handler for my control class (I have selected WM_SIZE message from m...

VB.Net Custom Controls

This might be basic question, however I am confused on some .Net Concpets. I am trying to create a "Data Browser" in VB.net. Similar to a Web Browser however each Tab in the Data Browser is a view of some Data (from a database or flat files) not a webpage. The UI on each Tab is mostly the same. A list Box (showing datatypes, etc), a ...

How to retrieve XML attribute for custom control

I've created a combo box control with a edittext and spinner. I'm trying to let the android:prompt attribute be passed onto the spinner, which means I need to catch it in the constructor which passes my the AttributeSet and set it on the spinner. I can't figure out how to get the value of the prompt. I'm trying, int[] ra = { andro...

AutoCompleteTextView with custom list: how to set up OnItemClickListener

Hi everyone, I am working on an app which uses tags. Accessing those should be as simple as possible. Working with an AutoCompleteTextView seems appropriate to me. What I want: existing tags should be displayed in a selectable list with a CheckBox on each item's side existing tags should be displayed UPON FOCUS of AutoCompleteTextView...

Flex custom list selection not highlighting

I want to create a custom list in Flex for an interface prototype. The list is supposed to have an image and 3 text fields. This is what I have done so far, the control displayed is what I want. But, when I click on one of the items, the item does not appear (visually) to be selected. I was not sure how I would implement this. Here is m...

Sharepoint custom field type

I have created a custom field type which inherits directly from SPField but when I try to add the field to a list I get the following error: One or more field types are not installed properly. Go to the list settings page to delete these fields. at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl, String bs...

LineChart in WPF

I havo to implement a custom control in WPF which contains a line chart. This control should permit to an user to define, with a control template, the number of grids, the font family and the font size of axis labels and other parameters. I'm wondering if one of you can address me to an example or give me some advice. Thank you in advanc...