Class Column : onGetWidth Event
Integer onGetWidth( DrawContext dc, Programme programme, Integer rowHeight ) |
Summary
Called when DigiGuide needs the ideal width of the column
Remarks
DigiGuide automaticallys selects the correct font so there is no need to select a font, but you are free to use whatever font you want.
Parameters
Parameter | Description |
DrawContext dc |
The drawing canvas |
Programme programme |
The Programme you should measure. |
Integer rowHeight |
The height of the row. |
|
|
|
Returns
The width in pixels
Examples
var c = new Column( "Channel Name", 1, 25, 50, true, true, "Full channel name" ) c.onGetWidth = function( dc, programme, rowHeight ) { return dc.measureText( programme.name ).cx; }
|
Requirements
build 1065
|