I have created a custom field class "Seek" to draw a fillrectangle.
class Seek extends Field {
int fill;
protected void layout(int width, int height) {
setExtent(320, 5);
}
protected void paint(Graphics graphics) {
graphics.setColor(Color.RED);
graphics.fillRect(0, 0, fill, 5);
}
protected void set...
Hello!
I'm developing a Windows Mobile WinForm app with C# and .Net Compact Framework 2.0 SP2.
I have a control that inhertit from System.Windows.Form.Control that I want to make private Size property. How can I do that?
I've tried this:
new private Size;
But it doesn't compile.
Any idea?
...
hi,
i am using gwt to build my web site.
i would like to create a dropdown/listbox that contains no just text but also images, meaning that in the drop down there will be a what ever widget that ill create.
please advise
jaimon
...
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
...
Hi, I am creating a custom WPF control that should have several content slots.
I'd like the user to be able to use either string, or a FrameworkElement as a value of property, for example:
<!-- MyHeading is a string -->
<MyControl MyHeading="Hello World" />
<MyControl>
<!-- MyHeading is a FrameworkElement -->
<MyControl.MyHeading>
...
Hello, everybody!
I've run into a problem with data-binding inside control template while the property is initialized inside the constructor.
Here is the show-case (you can also download sample solution):
CustomControl1.cs
public class CustomControl1 : ContentControl
{
static CustomControl1()
{
DefaultStyleKeyProperty...
Ok, I have not been able to really find an answer to this on the internet.. Maybe someone here can help me.
For example, lets say I have a page and 2 custom controls on that page. During what event on page do these controls get constructed. When does their page_init get called?
Also, for these 2 custom controls, do they both get const...
I have a Silverlight 3 aplication, The solution (of 3 projects) looks Like this:
ChartsCustomControl
PieChart.cs
SLGrid.Web
SLGrid
NavigationPage.xaml
Views
PieChartPage.xaml
PieChartPage.xaml.cs
I'm using the navigation Frame control, and have a folder named Views for the different pages. PieChartPage.xaml.cs ...
What do you think is the most comprehensive and stable GUI library for Blackberry java development? I am currently using J4ME, anyone has any other experiences? A good GUI library should also have support for like grid controls, etc.
...
It is in Winforms.
I have a UserControl that is anchored TOP, BOTTOM and LEFT. I would like to allow the user to drag its right border somehow and resize it horizontally.
The control is placed right into the form, no panel or groupbox to place a "Splitter".
Any idea how to make a control resizable at runtime by the user?
...
Hi all,
I have a custom Panel control which works like a regular Panel, but adds a heading to the top. The code for this panel is as follows :
Public Class GInfoPanel
Inherits System.Web.UI.WebControls.Panel
Protected WithEvents lblHeader As New Label()
Protected WithEvents innerDiv As New HtmlGenericControl("div")
Pu...
Hi all,
I m creating a ListField with Checkboxes from How To - Create a ListField with check boxes
But I m not getting how to wrap Text in a row in that ListField.
I referred the thread
Text Wrapping for text in List Field items
Here its written as
If all you are displaying is text, then I would go with the approach suggested by...
I need to implement a view with clickable areas just like HTML image maps. The background of the view will be an image that fills the entire canvas and the boundaries of each clickable area are different is size and shape. What is the best scenario to do this in iPhone?
...
I am attempting to write a custom control. I want to allow its user to specify a DataSourceId (much like GridView, Repeater, etc.).
I can get find the DataSource that corresponds to the id. And I can get the associated DataSourceView. But the only way to get the data out appears to be with an asynchonous Select method. Of course, I can ...
Hi Guys
I asked this question the other day.
I got only one answer which was to make my own control and add a dependency property to vary the only thing that changes (an index to get the right data bindings in this case).
If that's the only way to do it though, it raises some other questions. Specifically, if you find yourself wantin...
I want to create a custom grid derived from DevExpress grid control. I just want to add several columns and add custom painting. I will then use this control in 2 different forms.
The problem is that if I go straightforward and create a class like this:
public class GenerateInvoiceGrid : DevExpress.XtraGrid.GridControl
then I will not...
Here's the background of the problem.
We have our own ORM framework for development of .net applications. Now we are trying to create specialized UI objects to work tightly with the ORM. We have created an interface called IBindable which is implemented on all UI controls. We started with textbox webcontrol of asp.net. First we created ...
Hello!
I'm developing a WinForm Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#.
I have two custom controls (two classes that inherits from Control). If I click over a specific location of control1 it shows control2 (control2 is a control of control1). In other words, control2 is a pop up menu that it shows over ...
I'm a bit in a mess with how to set a Dependency Property for Custom Control.
I created Custom Control, so it derives from Control class.
public class CustControl : Control
{
static CustControl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CustControl), new FrameworkPropertyMetadata(typeof(CustControl...
Hello.
I'm developing a winform Windows Mobile 5.0 or above application with .NET Compact Framework 2.0 SP2 and C#.
I'm wondering if there is a way to set a default size of a custom control. When I drop it over the form (on the designer) it is always getting 200x200 as its default size.
Any advice?
Thank you!
...