20,741
edits
m (→Event types) |
|||
Line 13: | Line 13: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
For each placement of a Canvas handling events can be enabled or disabled. A Canvas placed in a PUI widget or as standalone GUI window | For each placement of a Canvas handling events can be enabled or disabled. A Canvas placed in a PUI widget or as standalone GUI window receives events by default, whereas Canvases placed onto the aircraft model or in the scenery do not receive any events by default. | ||
For standalone GUI windows setting '''capture-events''' to ''0'' or ''1'' enables or disables handling of events respectively. For a Canvas placed onto a 3d model setting ''capture-events'' inside the placement can be used to activate event handling: | For standalone GUI windows setting '''capture-events''' to ''0'' or ''1'' enables or disables handling of events respectively. For a Canvas placed onto a 3d model, setting ''capture-events'' inside the placement can be used to activate event handling: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> |