2011-09-12, 11:51
Hello,
I'm trying to put a button control inside the <itemlayout> and <focusedlayout> of a scroller but i have got a strange behavior,
The item which is being repeated consist of a label and a button so basically and to keep the code short its something like this:
<!-- etc -->'s are the bits removed to keep it short
The strange behavior is that the button gets the focus image once i enter the mouse cursor inside the focusedlayout canvas ( even if i hover over the label the button still gets focused ) :S
How do i narrow down the focus canvas of the button to the button it self not the whole Item ?
I hope i explained it well
Thanks.
I'm trying to put a button control inside the <itemlayout> and <focusedlayout> of a scroller but i have got a strange behavior,
The item which is being repeated consist of a label and a button so basically and to keep the code short its something like this:
<!-- etc -->'s are the bits removed to keep it short
PHP Code:
<control type="panel" id="61">
<!-- etc -->
<itemlayout height="62" width="285">
<control type="label">
<!-- etc -->
<info>ListItem.Label</info>
</control>
<control type="button">
<!-- etc -->
<texturefocus>ButtonFocus.png</texturefocus>
<texturenofocus>ButtonNoFocus.png</texturenofocus>
</control>
</itemlayout>
<focusedlayout height="62" width="285">
<control type="label">
<!-- etc -->
<info>ListItem.Label</info>
</control>
<control type="button">
<!-- etc -->
<texturefocus>ButtonFocus.png</texturefocus>
<texturenofocus>ButtonNoFocus.png</texturenofocus>
</control>
</focusedlayout>
</control>
The strange behavior is that the button gets the focus image once i enter the mouse cursor inside the focusedlayout canvas ( even if i hover over the label the button still gets focused ) :S
How do i narrow down the focus canvas of the button to the button it self not the whole Item ?
I hope i explained it well
Thanks.