Defaultcontrol in grouplist working in an unexpected way
#1
Why when I enter the grouplist below for the first time, button with id 201, not 202, is activated?

Code:
<control type="grouplist" id="183">
    <height>DialogBaseItemSize</height>
    <orientation>horizontal</orientation>
    <defaultcontrol force="true">202</defaultcontrol>
    <control type="label" id="200">
        <label>Widok:  </label>
        <width>auto</width>
    </control>
    <control type="button" id="201">
        <label>&lt;</label>
        <onfocus>Container.PreviousViewMode</onfocus>
        <onfocus>SetFocus(202)</onfocus>
        <texturefocus>textures\darkbg.png</texturefocus>
        <texturenofocus>textures\lightbg.png</texturenofocus>
    </control>
    <control type="button" id="202">
        <label>$INFO[Container.Viewmode]</label>
        <onleft>201</onleft>
        <onright>203</onright>
        <width>auto</width>
        <ondown>212</ondown>
        <onup>181</onup>
        <onclick>Container.PreviousViewMode</onclick>
    </control>
    <control type="button" id="203">
        <label>&gt;</label>
        <onfocus>Container.NextViewMode</onfocus>
        <onfocus>SetFocus(202)</onfocus>
        <texturefocus>textures\darkbg.png</texturefocus>
        <texturenofocus>textures\lightbg.png</texturenofocus>
    </control>
</control>
Reply
#2
Code:
<defaultcontrol always="true">202</defaultcontrol>
not
Code:
<defaultcontrol force="true">202</defaultcontrol>
Reply
#3
Right, still, it doesn't make any difference.
Reply
#4
Try changing the action that focuses the grouplist to focus that button instead?
Reply

Logout Mark Read Team Forum Stats Members Help
Defaultcontrol in grouplist working in an unexpected way0