...
How can I change the ESnap box size?
The ESnap box size is a system controlled value and can be changed via C++ as follow:
Code Block |
---|
GetFxSystemServices()->GetHostAppServices()->setDYNASNAPSIZE( YOUR_SIZE ); |
Note: The ESnap box size varies with the display resolution to the Android device. We recommend to change the fixed value with the Android display metrics and apply the correct device dependent multiplier. This ensure the ESnap box will have the same size on all devices.
Code Block |
---|
int iDynsnapSize = (int) TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP, 20,
CFxApplication.GetApplication().getResources().getDisplayMetrics() ); |
Database values like PDSIZE and PDMODE can be changed via C++ as follow:
Code Block |
---|
ACTIVE_DOCUMENT()->GetFxDatabase()->setPDSIZE( YOUR_SIZE );
ACTIVE_DOCUMENT()->GetFxDatabase()->setPDMODE( YOUR_MODE ); |