Questions tagged [custom-controls]

A custom control is a reusable GUI element, derived from an existing control type, customized with additional behavior, functionality and/or appearance.

custom-controls
Filter by
Sorted by
Tagged with
19 votes
2 answers
27k views

How to create and connect custom user buttons/controls with lines using windows forms

I am trying to create some custom buttons or user controls as shown in the proposed GUI. The functionality should be as follows: The graphs or configurations are created graphically. The controls ...
Eirik's user avatar
  • 649
143 votes
19 answers
90k views

How can I get clickable hyperlinks in AlertDialog from a string resource?

What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (...
Thilo-Alexander Ginkel's user avatar
26 votes
8 answers
106k views

How can we do pagination in datagridview in winform

I want to show 10 records per page in a datagridview on a window form and user must click next button to show next 10 records. Is it there some property in DataGridview or do i need to create a custom ...
Shantanu Gupta's user avatar
1 vote
1 answer
4k views

How to make two transparent layer with c#?

There are three consecutive layers, picturebox1(.jpg) -> label1 -> picturebox2(.png transparent) what i want is to make the label1 and pictrurebox2 transparent to the picturebox1 so that label1 ...
arn48's user avatar
  • 310
48 votes
7 answers
57k views

How to make a Scroll Listener for WebView in Android

How to implement the Scroll Listener for WebView in Android i tried this but its not calling my Log.i on scrolling the webview. package com.example.webview.full.width; import android.content.Context;...
Qadir Hussain's user avatar
15 votes
3 answers
16k views

How to customize a ListField in BlackBerry?

I want to customize a ListField in BlackBerry which would be able to list an image and text in a row. How to accomplish this?
Kumar's user avatar
  • 5,469
2 votes
3 answers
3k views

Composing Swing Components: How do I add the ability to add ActionListeners?

I want to create a (simple, hopefully) custom Swing component by composing several existing components. In my case, it is an on-off switch which consists of a JLabel, and two JButtons for On and Off. ...
fizban's user avatar
  • 597
20 votes
3 answers
29k views

Blackberry User Interface Design - Customizable UI?

I am trying to design a Blackberry Application and I am wondering if there are any resources on how to create custom user interface elements, skin existing ones and what other possibilities are there? ...
John Stewart's user avatar
13 votes
3 answers
17k views

TabControl with Close and Add Button

I'm tring to make a tab control have a "x" (close button) and "+" (new tab button). I found a solution to add a x button, the tab looks like this now: But I want to add a + where's that black circle ...
Jack's user avatar
  • 16.5k
118 votes
3 answers
71k views

Android - custom UI with custom attributes

I know it is possible to create custom UI element (by way of View or specific UI element extension). But is it possible to define new properties or attributes to newly created UI elements (I mean not ...
Waypoint's user avatar
  • 17.5k
78 votes
9 answers
66k views

How to make an expandable/collapsable section widget in Qt

I would like to create a custom widget in Qt with the following features: It is a container It may be populated with any Qt layout It may be inside any Qt layout A button allows to collapse/fold ...
Adrian Maire's user avatar
  • 14.7k
3 votes
1 answer
4k views

Raise an event when I hover the mouse over a ComboBox item

I'm not able to find an event to fire when I hover my ComboBox Items. I'm using windows form to build an application. I found a something similar for WPF: how to change label text when I hover mouse ...
Pete's user avatar
  • 65
7 votes
5 answers
15k views

Using Custom Colored Cursors in a C# Windows Application [closed]

I am developing a SDG (Single Display Groupware) application, and for that I need multiple cursors (to the simplest of different colors) for the single window. I came to know that with C# you can just ...
Himanshu's user avatar
  • 103
5 votes
3 answers
10k views

Show Transparent Loading Spinner above other Controls

I am working in a spinner control. I want the control to support transparent backcolor. When the arc is drawn, there is a blank space in the middle, I want that space to be truly transparent, so that ...
ChrisCreateBoss's user avatar
200 votes
3 answers
61k views

What is the difference between a User Control Library and a Custom Control Library?

I am just coming up to speed on WPF and would like to create a reusable WPF control. When I look at the options for creating projects in Visual Studio, I see "WPF User Control Library" and "WPF ...
17 of 26's user avatar
  • 27.2k
7 votes
1 answer
8k views

Binding to custom control inside DataTemplate for ItemsControl

I have a problem with bindings for DataTemplate based on defined DataType in ItemsControl, when I want to bind to my custom user control. For demonstration purposes, I've created simple Item class ...
Janez Lukan's user avatar
  • 1,449
7 votes
1 answer
6k views

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][1] But what if you need to move fields, not just images? May be used:...
Maksym Gontar's user avatar
5 votes
2 answers
20k views

Android - Way to appear bordered text on the TextView?

Is there a way to appear bordered text on the TextView ?
AndroiDBeginner's user avatar
47 votes
3 answers
108k views

Custom UITableViewCell programmatically using Swift

Hey all I am trying to create a custom UITableViewCell, but I see nothing on the simulator. Can you help me please. I can see the label only if I var labUserName = UILabel(frame: CGRectMake(0.0, 0.0, ...
shay te's user avatar
  • 1,068
17 votes
6 answers
77k views

Custom button template in WPF

I want to create a simple button template with an image and text inside it. But I want to keep the System button's look and feel. How do I create it, step by step? P.S.: I have already tried it with ...
Archie's user avatar
  • 2,594
8 votes
8 answers
14k views

Blackberry - how to resize image?

I wanted to know if we can resize an image. Suppose if we want to draw an image of 200x200 actual size with a size of 100 x 100 size on our blackberry screen. Thanks
Bohemian's user avatar
  • 6,007
2 votes
1 answer
2k views

How to draw a shape using GraphicsPath to create the Region of a Custom Control?

I'm currently trying to override the OnPaint() method of a Custom Control I'm building. The object is just a simple Panel, but I'm trying to make it look a different type of way, like this: . I'm ...
user avatar
77 votes
7 answers
63k views

Custom vs User control

I've been reading some explanations about the difference between User and Custom Controls, for example this: http://www.wpftutorial.net/CustomVsUserControl.html I want to create, for example, a ...
Louro's user avatar
  • 1,433
72 votes
2 answers
24k views

How to use standard attribute android:text in my custom view?

I wrote a custom view that extends RelativeLayout. My view has text, so I want to use the standard android:text without the need to specify a <declare-styleable> and without using a custom ...
Seraphim's's user avatar
  • 12.7k
60 votes
8 answers
47k views

How do we create a bigger center UITabBar Item

I am wondering how do we create a bigger center UITabBar like the shot below? Its really beautiful!!!!
JayVDiyk's user avatar
  • 4,387
20 votes
3 answers
18k views

Custom Fonts and Custom Textview on Android

From an application I need to develop, I've received a specific font that has many files like FontName-Regular, FontName-Bold, FontName-it. I need to use it in all the textviews in the application. ...
Alin's user avatar
  • 15k
20 votes
10 answers
26k views

How do I make reorder control of UITableViewCell in left side?

I am doing a news reader app and I want to make it so that the user can choose show/hide news categories (such as top news, business, technology, sports, etc) and reorder them like the BBC news app in ...
hahv's user avatar
  • 582
11 votes
3 answers
57k views

How to get location of mouse in JavaFX?

I am a beginner in java(fx). How do you get the mouse location in x and y in JavaFX? I tried using AWT's MouseInfo(also imported it), but it's not working. I also saw the code for it in Ensembles(that ...
Pratik Anand's user avatar
9 votes
3 answers
13k views

How to create a User Control with rounded corners?

I am trying to have a User Control that has rounded corners. It doesnt have a fixed size but it usually doesnt have a width much more than 120 pixels. I need the User Control and its contents(a label ...
CJM's user avatar
  • 249
26 votes
3 answers
65k views

Styling browser-native video controls

Is it possible to cross-browser style the controls of a browser-native video such as video from HTML5's video tag? I do not understand if it is possible or not, I can't find anything other than this ...
Filippo oretti's user avatar
13 votes
1 answer
19k views

Dispatcher throws InvalidOperationException on Messagebox.Show in Textchanged event

First of all this is the errorlog entry on my error crash program @ 15-9-2011 15:01:30error:System.InvalidOperationException: Dispatcher processing has been suspended, but messages are still being ...
Daanvl's user avatar
  • 620
6 votes
2 answers
5k views

Animated Glow Effect for Button - C# Windows Forms

I want to apply animation to my button when pressing button. In WPF I can use Storyboard with triggers to create animation. Here is an example: <Storyboard x:Key="AniOpacityDelay"> <...
Jandy's user avatar
  • 359
1 vote
2 answers
7k views

Display simple HTML in a native BlackBerry application

I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here), but I need help ...
Dan J's user avatar
  • 25.6k
33 votes
6 answers
42k views

Disable changes on seekbar by client

I have a SeekBar that will change the progress when I require it to, but I don't want the user to be able to change it manually. I tried to set the SeekBar as this: <SeekBar android:id="@+...
Shudy's user avatar
  • 7,876
30 votes
4 answers
31k views

How can a control handle a Mouse click outside of that control?

I'm writing a custom control and I'd like the control to switch from an editing state to it's normal state when a user clicks off of the control. I'm handling the LostFocus event and that helps when a ...
chrislarson's user avatar
25 votes
3 answers
31k views

Design-time package fails to build - File not found: 'Graphics.dcu'

In Delphi XE2, I have a single control in a pair of design/run time packages. Originally, everything was working fine. I've built each of them many times already. Suddenly without warning, the design ...
Jerry Dodge's user avatar
  • 27.1k
23 votes
4 answers
27k views

How to make WPF wrappanel child items to stretch?

I'd like to create an ItemsControl where child items are placed like a WrapPanel, but child Items should take as much space as it can. So that when the window size gets larger or smaller, the child ...
Yeonho's user avatar
  • 3,628
21 votes
7 answers
98k views

Button template with image and text in wpf

I want to create buttons with images and text inside. For example, i would use different images and text for buttons like 'Browse folders' and 'Import'. One of the options would be to use a template. ...
Archie's user avatar
  • 2,594
16 votes
5 answers
12k views

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?
Nippysaurus's user avatar
  • 20.2k
5 votes
5 answers
6k views

How do I make a seekbar whose initail progress which is zero, starts in the middle

I want to customize the SeekBar as shown below in the image. I'm a beginner in programming and I looked for tutorials, but every where the progress starts in the leftmost corner. Can someone please ...
user2688158's user avatar
5 votes
1 answer
6k views

BlackBerry - Custom menu toolbar

I'm a beginner in BlackBerry programming, I need to replace in my application the default menu (when you press the menu button) by a custom menu, horizontal. The best to describe is I want the same ...
Dachmt's user avatar
  • 2,099
5 votes
2 answers
6k views

Embedded HTML control for Blackberry?

Is there any api for viewing html content from w/in your blackberry application? To be clear, I don't mean launching the browser on top of my app to view a page. But rather rendering the page w/in my ...
Gordon Wilson's user avatar
5 votes
1 answer
2k views

NumericUpDown with Unit | Custom control | Field padding

Im trying to create a custom control that inherits NumericUpDown to show a settable unit. This is (visually) what I've got so far: My Code: Looks a bit long, but isnt doing that much class ...
C4d's user avatar
  • 3,232
3 votes
2 answers
5k views

Resizing custom user control according to data in the webBrowser control docked in it

I have a webBrowser control named webBrowser1 that is added and docked as DockStyle.Full on a custom user control. The web-browser accepts some HTML text dynamically and displays it. I disabled the ...
Aishwarya Shiva's user avatar
1 vote
1 answer
3k views

How to add a Custom Windows Forms Control into Visual Studio Toolbox

I want to add my custom control into the VS Toolbox. But I need it to appear in toolbox always when a new project is open. How can I do that?
Ali Tor's user avatar
  • 2,877
53 votes
2 answers
65k views

How to set a custom view's intrinsic content size in Swift?

Background I am making a vertical label to use with traditional Mongolian script. Before I was just rotating a UILabel but there were some performance issues and other complications with this. Now I ...
Suragch's user avatar
  • 499k
48 votes
5 answers
69k views

ASP.NET Custom Control - Unknown server tag

I've made a custom control that inherits from a Literal control. When I try and use my control on a page a parsing error is thrown. I've added this to my web.config <configuration> <system....
Matt's user avatar
  • 6,332
22 votes
5 answers
45k views

Google map v2 Custom Infowindow with two clickable buttons or ImageView

I need custom info window with two clickable button as above.In it when more then marker and click any one of them then window should be open and when click on another marker another window should ...
Shivang Trivedi's user avatar
15 votes
6 answers
34k views

How to place buttons over Image in android?

I want to create a custom view like this. I tried the following <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:...
Devu Soman's user avatar
  • 2,266
7 votes
2 answers
4k views

Custom View not responding to touches

I've created a custom view which should change it's background image when pressed, highlighted or disabled. The app runs but the button doesn't change it's background. here's my code: public class ...
Kyohei Kaneko's user avatar

1
2 3 4 5
11