Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: PowerBuilder adjusting widths and x-position after rendering

$
0
0

If you want to perfectly align to a grid you need to work out each position in pixels then translate each into a powerbuilder units

 

x and width.properties are the nearest PB X Unit to a pixel.

 

The formula is 4, 4, 5 .units per pixel. An approximation is ROUND( pixel * 4.57291,0) or use PixelstoUnits ( pixel, XPixelsToUnits! )

 

So if you wanted 800, 1600, 2400 alignment x'es then make it  175, 350, 525 pixels... but translate into pbunits on the fly.




Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>