In PBWin V10.04 the returns of these two statements are reversed.
To make DIALOG UNITS TO PIXELS and DIALOG PIXELS TO UNITS version agnostic -
'
and '
Change the variable names to whatever is used in code.
Use instead of the single line statements in code posted to, or copied from, the forms so it will work regardless of PBWin version. (other errors withstanding
)
Cheers,
To make DIALOG UNITS TO PIXELS and DIALOG PIXELS TO UNITS version agnostic -
'
Code:
#if %pb_revision = &h1004 dialog units hDlg, x&, y& to pixels yy&, xx& #else 'versions 8.0x, 9.0x, 10.01, 10.02 and 10.03 dialog units hDlg, x&, y& to pixels xx&, yy& #endif '
Code:
#if %pb_revision = &h1004 dialog pixels hDlg, x&, y& to units yy&, xx& #else versions 8.0x, 9.0x, 10.01, 10.02 and 10.03 dialog pixels hDlg, x&, y& to units xx&, yy& #endif '
Use instead of the single line statements in code posted to, or copied from, the forms so it will work regardless of PBWin version. (other errors withstanding

Cheers,
Comment