Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
CornerFactor property 
 
Remarks
Specifies the corner factor of a Rounded Rectangle or Gem button. 
This property does not apply if the Shape property is set to a value different from SHAPE_ROUNDRECT, SHAPE_GEM, SHAPE_ARROW and SHAPE_KEYHOLE. 
If the Shape property is set to SHAPE_ARROW or SHAPE_KEYHOLE, the CornerFactor property will apply only if the LightDirection property is set to LIGHT_DIR_NORTH, LIGHT_DIR_EAST, LIGHT_DIR_SOUTH or LIGHT_DIR_WEST.
Get / Set functions
 
short abmGetCornerFactor
HWND hWndBtn 
); 
 
void abmSetCornerFactor
HWND hWndBtn
short nFactor 
); 
 
Parameters
Description
hWndBtn
Windows handle associated to the button.
nFactor
Specifies the corner factor. The property value ranges from 0 to 100 with 60 set as default. 
Here follows an example of two default cornered shapes: 
 
after setting the CornerFactor property to 40 they will look like that: 
 
and after setting the CornerFactor property to 90 they will look like that: 
 
Container function
 
short abmContainerSetting
HWND hWndContainer
short nSetting
long newValue 
); 
 
Parameters
Description
hWndContainer
Windows handle associated to the button container.
nSetting
Must be set to SET_ROUNDNESS
newValue
Same meaning of the nFactor parameter described before
 
 
 
 
 
 
 
 
 
 
Copyright © 2002-2009 MultiMedia Soft 
Return to index