HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

PixelScaling Property, SftTree Object

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

Syntax

Get

VB.NETMode = object.PixelScaling As SftTreeScalingConstants
VBMode = object.PixelScaling As SftTreeScalingConstants
C#.NETSftTreeScalingConstants Mode = object.PixelScaling;
VC++enum SftTreeScalingConstants Mode = object->PixelScaling;
enum SftTreeScalingConstants Mode = object->GetPixelScaling();
CHRESULT object->get_PixelScaling(enum SftTreeScalingConstants* Mode);

Put

VB.NETobject.PixelScaling = Mode As SftTreeScalingConstants
VBobject.PixelScaling = Mode As SftTreeScalingConstants
C#.NETSftTreeScalingConstants object.PixelScaling = Mode;
VC++enum SftTreeScalingConstants object->PixelScaling = Mode;
void object->PutPixelScaling(enum SftTreeScalingConstants Mode);
CHRESULT object->put_PixelScaling(enum SftTreeScalingConstants Mode);

object

A SftTree object.

Mode

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

NameValueDescription
scalingSftTreeAsIs0Use caller-supplied pixel values verbatim (the default).
scalingSftTreeStretch1Scale caller-supplied pixel values by the current DPI.

Comments

The PixelScaling property defines whether caller-supplied pixel dimensions are scaled to the current DPI.

This setting is independent of ImageScaling. Stored values and property getters remain in 96-DPI reference units.

See Also SftTree Object | Object Hierarchy | Per-Monitor DPI and Scaling


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.