Copyright © 2003-2010 MultiMedia Soft

CellsManager.CellSetPictureFromHandle method

Previous pageReturn to chapter overviewNext page

Remarks

Changes, at run-time, one of the pictures associated to the cell.

For further details about cells management, see the How to manage cells section.

 

Syntax

 

Syntax

 

[Visual Basic]

Public Function CellsManager.CellSetPictureFromHandle(UniqueID as Short, nPicture as Ctl3d.Pictures, hBitmap as Integer) as Bool

 

[C#]

public bool CellsManager.CellSetPictureFromHandle(short UniqueID, Ctl3d.Pictures nPicture, long hBitmap);

 

[C++]

public: bool CellsManager.CellSetPictureFromHandle(short UniqueID, Ctl3d.Pictures nPicture, long hBitmap);

 

 

Parameter

Description

 

 

UniqueID

Numerical value representing the cell's unique identifier.

nPicture

Numerical value that represents the index of the picture property to change. Supported values are the following:

Enumerated value

Value

Meaning

Pictures.Normal

0

Changes the CellsManager.PictureNormal property

Pictures.Disabled

5

Changes the CellsManager.PictureDisabled property

hBitmap

Handle of the new bitmap to use for the selected property.

 

 

Visual C# example

 

System.Drawing.Bitmap      bmp = (System.Drawing.Bitmap) pictureBox1.Image;

ctl3dPushButton1.CellsManager.CellSetPictureFromHandle (Pictures.Normal, (int) bmp.GetHbitmap ().ToInt32 ());

With this code the CellsManager.PictureNormal property of control ctl3dPushButton1 will be changed using a bitmap obtained from the image contained inside a picture box control.

 

Return value

 

Value

Meaning

 

 

False

The operation failed

True

The operation was successful