How to manually change the width between each menu item?
#1
Hello!

How to manually change the width between each menu item?

There is a code:
xml:

            <control type="list" id="9000">
            
                <left>80</left>
                <top>5</top>
                <width>1122</width>
                <height>60</height>
                <pagecontrol/>
                <focusposition>2</focusposition>
                <orientation>Horizontal</orientation>
                
                <itemlayout height="60" width="100">
                    <control type="label">
                        <left>0</left>
                        <top>0</top>
                        <width min="0" max="299">auto</width>
                        <height>60</height>
                        <font>font_Title</font>
                        <textcolor>White</textcolor>
                        <scroll>false</scroll>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </itemlayout>
                
                <focusedlayout height="60" width="100">
                    <control type="label">
                        <left>0</left>
                        <top>0</top>
                        <width min="0" max="299">auto</width>
                        <height>60</height>
                        <font>font_Title</font>
                        <textcolor>White</textcolor>
                        <scroll>false</scroll>
                        <aligny>center</aligny>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </focusedlayout>
                
                <content>
                    <item id="1">
                        <label>Menu 1</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="2">
                        <label>Menu 2</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="3">
                        <label>Menu 3</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="4">
                        <label>Menu 4</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="5">
                        <label>Menu 5</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="6">
                        <label>Menu 6</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                    <item id="7">
                        <label>Menu 7</label>
                        <icon/>
                        <thumb/>
                        <visible/>
                    </item>
                </content>
            </control>

I need to get a menu like this:
xml:
Menu 1<!-----------------------Gap of such width--------------------------------->Menu 2<!--width-->Menu 3<!--width-->Menu  4<!-----------Gap of such width--------> Menu 5<!---------------------------------Gap of such width--------------------->Menu 6<!--width-->Menu 7

Tell me how to do this? I can not understand. Why is there no logical solution?

Thanks.
I always criticize and always will criticize what is badly thought out and does not work well.
Reply
#2
Not possible. List containers have a predefined width per itemlayout and focusedlayout.
You can use a grouplist control for this and use buttons with <width>auto</width>
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
(2019-03-05, 20:18)sualfred Wrote: Not possible. List containers have a predefined width per itemlayout and focusedlayout.
You can use a grouplist control for this and use buttons with <width>auto</width>
 Thank. Yes, this solution to use grouplist and buttons
I always criticize and always will criticize what is badly thought out and does not work well.
Reply

Logout Mark Read Team Forum Stats Members Help
How to manually change the width between each menu item?0