Thursday, October 15, 2009

TImageButton's new feature



Some developers wished to display the Transparent ImageButton with additional information e.g. number of unread e-mails or SMS just like you can see on the screenshot above.

(1.) Default ImageButton's text (you can change it by Text property)
(2.) Additional text

With the new event called "Painted" you can do that with ease.
Here is the code:

private void tImageButton1_Painted(object sender, PaintEventArgs e)
{
float x = (float)(e.ClipRectangle.X + e.ClipRectangle.Width);
float y = (float)(e.ClipRectangle.Y + 4);

Font font= new Font(FontFamily.GenericSerif, 8.0F, FontStyle.Regular);
using (SolidBrush brush = new SolidBrush(Color.White))
{
string text = "(1)";

// Adjust position
SizeF textSize = e.Graphics.MeasureString(text, font);
x -= (textSize.Width + 4);

e.Graphics.DrawString(text, font, brush, x, y);
}

font.Dispose();
font = null;
}

Don't forget to use the right location:
float x = (float)(e.ClipRectangle.X + e.ClipRectangle.Width);
float y = (float)(e.ClipRectangle.Y + 4);

This event is available with the latest version of TControls: v.2.0.3.14.

Product's page:
http://beemobile4.net/?sitecateg=products&productID=5

Wednesday, August 19, 2009

SearchBox Control for Compact Framework


According a customer's control suggestion we created the SearchBox control.
It's very easy to use, and I think it is a required control in every applications where you have a lot of data.

Product's page: http://beemobile4.net/?sitecateg=products&productID=9

Tuesday, August 11, 2009

RegionControl as a Toolbar sample updated


We updated the Toolbar Sample to support the VGA resolution.
You will need different images for VGA if you need to preserv the nice looking of your application.
And here is the added code:

public Form1()
{
InitializeComponent();
InitItems();

LoadVgaImages();
}

private void LoadVgaImages()
{
SizeF currentScreen = this.CurrentAutoScaleDimensions;
if (currentScreen.Height == 192)
{
// VGA device
regionControl1.BmpNormal = Properties.Resources.TabBar2_VGA_Normal;
regionControl1.BmpSelected = Properties.Resources.TabBar2_VGA_Selected;
regionControl1.FilePathBmpMask = @"Images\TabBar2_VGA Mask.bmp";
}
}

Source Code is available here: http://beemobile4.net/?sitecateg=samples&productID=6

Saturday, August 1, 2009

Create your Keyboard on Compact Framework


Another sample released for RegionControl which shows you the way to create your custom keyboard control on Compact Framework.
Download sample at: http://beemobile4.net/?sitecateg=samples&productID=6

Tuesday, July 28, 2009

USA State Picker


We have released a sample for RegionControl which shows how to create a USA State Picker. Go to RegionControl samples page to find out more.

Monday, July 27, 2009

EU Country Picker


We have released a sample for RegionControl which shows how to create a country picker. Go to RegionControl samples page to find out more.

Thursday, July 23, 2009

Transparent Controls Tutorial


We published a step-by-step tutorial about Transparent Controls.
There are many screenshots, and you can download the sample code as well.
Hope it helps!

Link:
http://beemobile4.net/index.php?sitecateg=tutorials&tutID=2

Wednesday, July 22, 2009

Region Control as a Toolbar



This sample shows you the way of handling mouse clicks on region control.

You can download the sample code:
http://www.beemobile4.net/index.php?sitecateg=samples&productID=6

New TCheckBox sample released


This sample code demonstrates how to adjust the TCheckBox control in your application.

Transparent control samples:
http://www.beemobile4.net/index.php?sitecateg=samples&productID=5

Tuesday, July 7, 2009

RegionControl has been released!


RegionControl is a universal and powerful control for creating attractive GUI for .NET Compact Framework. It allows the developer to design various kinds of menus, buttons, toolbars, buttonbars which all may have arbitrary shapes and appearance. Get a free evaluation version here and see it yourself!