Changes

Jump to navigation Jump to search

platform.gc

6 bytes added, 01:06, 25 May 2011
no edit summary
Line 5: Line 5:  
It is typically used to measure pixel lengths and heights of strings when a normal graphics context is not available.<br />
 
It is typically used to measure pixel lengths and heights of strings when a normal graphics context is not available.<br />
 
This may be the case when creating new text elements when the script app is initialized.<br />
 
This may be the case when creating new text elements when the script app is initialized.<br />
A graphics context is available only during paint events, and that may be too late to create and size the containers for text fields.
+
A graphics context is available only during paint events, and that may be too late to create and size the containers for text fields.<br />
 
This graphics context cannot be used to draw graphics since it is not tied to a window. It can however do that if this gc is used in a function called within [[on.paint]].
 
This graphics context cannot be used to draw graphics since it is not tied to a window. It can however do that if this gc is used in a function called within [[on.paint]].
 
<br />
 
<br />

Navigation menu