int ViewSetSize(int vw, int width, int height);
Set a view's height and width, scaling its image appropriately.
Return Value
Returns zero if function fails.
Parameters
vw View handle returned from ViewAdd().
width Sets the width of the View and its associated Image to this value.
height Sets the height of the View and its associated Image to this value.
Remarks
The ViewSetVisible() function changes the visibility of a View.
Availability
Available in DragonFireSDK 1.0 and later.
Example
#include "DragonFireSDK.h"
void AppMain() { int MyImage = ImageAdd("Card01.png"); int MyView = ViewAdd(MyImage, 100, 100); ViewSetSize(MyView, 156, 208); }
void AppExit() {
}
void OnTimer() {
} |