Windows XP button appearance
Posted: Sun Mar 28, 2010 12:07 am
If you work with RunRev on Windows XP or like to deploy your application on Windows XP you notice that the default position of the button text is too high compared with default Windows XP button, the solutions is to set the topMargin of the button to something that fits.
Nothing new and nothing special but it took me some minutes to figuring it out.

Robert
Nothing new and nothing special but it took me some minutes to figuring it out.


Code: Select all
switch the platform
case "Win32"
if the systemVersion = "NT 5.1" then
// Windows XP
set the textFont of this stack to "Tahoma"
set the textSize of this stack to "11"
set the height of btn "btnExample" to 23
set the topMargin of btn "btnExample" to 6
else
// Windows Vista / Windows 7
set the textFont of this stack to "Segoe UI"
set the textSize of this stack to "12"
end if
break
end switch