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.

Depending on the platform, language, framework and purpose, custom controls are likely to be installed in a GUI designer for ease of use.

Some languages or frameworks (e.g. ) might have specific meanings to the term "custom control" or might provide specific features or capabilities for a custom control instance that are not applicable to base controls.

Custom controls can be self written or found in a lot of frameworks.

4201 questions
198
votes
3 answers

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 Custom Control Library". It's unclear to me what the…
17 of 26
  • 27,121
  • 13
  • 66
  • 85
143
votes
19 answers

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 (defined using in the string resource…
117
votes
3 answers

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 inherited, but brand new to define some specific…
Waypoint
  • 17,283
  • 39
  • 116
  • 170
76
votes
7 answers

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 simple composition of a datagrid with 2 comboboxes…
Louro
  • 1,413
  • 4
  • 21
  • 27
75
votes
9 answers

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 vertically the content, so only the button is…
Adrian Maire
  • 14,354
  • 9
  • 45
  • 85
73
votes
17 answers

Interface Builder - Failed to load designables from path (null)

I have some custom controls I have created and I'm them using in a new project. However, I keep getting errors in interface builder: Failed to update auto layout status: Failed to load designables from path (null) or Failed to render instance of…
Jake
  • 13,097
  • 9
  • 44
  • 73
72
votes
2 answers

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 and without using a custom namespace xmlns:xxx every time I use my custom view. this is…
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
60
votes
8 answers

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
  • 4,277
  • 22
  • 70
  • 135
53
votes
2 answers

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 am working on making a label from scratch.…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
48
votes
5 answers

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
Matt
  • 6,264
  • 10
  • 54
  • 82
48
votes
7 answers

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; import android.util.AttributeSet; import…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
47
votes
3 answers

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, 130, 30)); but it overlaps the cell. I don't…
shay te
  • 1,028
  • 3
  • 12
  • 23
41
votes
8 answers

Change color of inset area in UITableView separator

I have a customized UITableView, the cells have a different background color (set in a custom backgroundView). However, the background color is only applied within the cell, but not extended to the inset area of the separator. As you can see in the…
zavié
  • 4,301
  • 2
  • 34
  • 46
35
votes
5 answers

IE & Firefox - custom drop down could not remove native arrows

I'm trying create a custom drop down control and I need to hide the arrows from the native controls. I'm using the following CSS, which is working for Chrome and Safari, but not in Mozilla and IE. select.desktopDropDown { appearance: none; …
Anton Belev
  • 11,963
  • 22
  • 70
  • 111
33
votes
6 answers

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:
Shudy
  • 7,806
  • 19
  • 63
  • 98
1
2 3
99 100