Copyright © 2003-2010 MultiMedia Soft

SetPictureFromBitmap method

Previous pageReturn to chapter overviewNext page

Remarks

Changes at runtime one of the pictures associated to the button.

 

Syntax

 

Syntax

 

[Visual Basic]

Public Function SetPictureFromHandle(nPicture as Ctl3d.Pictures, bitmap as Bitmap) as Bool

 

[C#]

public bool SetPictureFromHandle(Ctl3d.Pictures nPicture, Bitmap bitmap);

 

[C++]

public: bool SetPictureFromHandle(Ctl3d.Pictures nPicture, Bitmap *bitmap);

 

 

Parameter

Description

 

 

nPicture

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 Picture property

Pictures.Pressed

1

Changes the PicturePressed property

Pictures.MouseOver

2

Changes the PictureMouseOver property

Pictures.Custom

3

Changes the PictureCustom property

Pictures.Texture

4

Changes the Texture.Filepath property

Pictures.Disabled

5

Changes the PictureDisabled property

Pictures.SplitButton

6

Changes the SplitButtonPicture property

bitmap

Object of Bitmap class to use for the selected property.

 

Return value

 

Value

Meaning

 

 

False

The operation failed

True

The operation was successful