With RiseOnClick set to false, events are not handled correctly

Create issue
Issue #244 resolved
Paul Turner created an issue

The use of rise on click to prevent a window rising in the z-order appears to inhibit the correct distribution of input events.

Reproducibility: always

Steps to reproduce: Using the following layout, the editbox attached to the inner FrameWindow - that has RiseOnClick disabled - cannot be selected to receive input.

<?xml version="1.0" encoding="UTF-8"?> <GUILayout> <Window Type='TaharezLook/FrameWindow' Name='GuiMain/ObjectWindow'> <Property Name='UnifiedAreaRect' Value='0.25,0.0000},{0.25,0.0000},{0.75,0.0000},{0.75,0.0000'/> <Property Name='TitlebarEnabled' Value='False'/> <Property Name='FrameEnabled' Value='False'/> <Property Name='CloseButtonEnabled' Value='False'/> <Property Name='SizingEnabled' Value='False'/>

<Window Type='TaharezLook/FrameWindow' Name='GuiMain/ObjectWindow/InfoBox'> <Property Name='RiseOnClick' Value='False'/> <Property Name='TitlebarEnabled' Value='False'/> <Property Name='SizingEnabled' Value='False'/> <Property Name='UnifiedAreaRect' Value='0.0596,0.0000},{0.1507,0.0000},{0.9462,0.0000},{0.8893,0.0000'/>

<Window Type='TaharezLook/MultiLineEditbox' Name='GuiMain/ObjectWindow/InfoBox/Panel'> <Property Name='UnifiedAreaRect' Value='0.02,0.0000},{0.02,0.0000},{0.98,0000},{0.98,0000'/> </Window> </Window>

<Window Type='TaharezLook/Button' Name='GuiMain/ObjectWindow/Functionality0'> <Property Name='Text' Value='Research'/> <Property Name='UnifiedAreaRect' Value='0.1938,0.0000},{0.8191,0.0000},{0.1938,64.0000},{0.8191,51.0000'/> </Window> <Window Type='TaharezLook/Button' Name='GuiMain/ObjectWindow/Functionality1'> <Property Name='Text' Value='Open'/> <Property Name='UnifiedAreaRect' Value='0.4039,0.0000},{0.8190,0.0000},{0.4039,64.0000},{0.8190,51.0000'/> </Window> <Window Type='TaharezLook/Button' Name='GuiMain/ObjectWindow/Functionality2'> <Property Name='Text' Value='Pick Up'/> <Property Name='UnifiedAreaRect' Value='0.6134,0.0000},{0.8190,0.0000},{0.6134,64.0000},{0.8190,51.0000'/> </Window>

</Window> </GUILayout>

Additional information: Issue came to light in this thread: http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3622

Use of the "ZOrderChangeEnabled" property instead results in the wanted behaviour. I can't recall why these both exist and what the difference was supposed to be :-o

Comments (1)

  1. Log in to comment