Solved List container, static Items and <onfocus> possible?
#1
Is there any way or workaround to do something like this? I have a list container and I want to use a builtin function when I focus a specific static item. For example, something like this would be nice to have:
 
Code:
<control type="list">
   ...
   <item>
      <label>Item 1</label>
      <onclick>dostuff</onclick>
      <onfocus>dostuff</onfocus> <!-- THIS WOULD BE NICE TO HAVE -->
   </item>
</control>

I know that I could do it with a grouplist, buttons and <onfocus> but in this case I have to do it in a list container ...

Any suggestions? Thanks!
Reply
#2
You can add a invisible button in the <focusedlayout> part of the container.
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
<control type="grouplist">
   ...

<control type="button">

      <label>Item 1</label>
      <onclick condition="1"=>dostuff 1</onclick>
      <onfocus condition="a">dostuff a</onfocus> <!-- e.g i did it to run a cript -->
      <font>***</font>
      <visible>true</visible>
      <top>145</top>
      <left></left>
      <width>122</width>
      <height>40</height>
      <align>center</align>
      <textoffsetx>0</textoffsetx>
       <scroll>true</scroll>
       <scrollspeed>20</scrollspeed>
</control>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#4
mardukL Wrote:
Code:
<control type="grouplist">
...
Thanks for your suggestion but as I said I have to do it in a list container not a grouplist with buttons. Thanks anyway!
 
(2018-09-27, 06:33)sualfred Wrote: You can add a invisible button in the <focusedlayout> part of the container.
 That's brilliant, why didn't I think of that ... Thank you!
Reply

Logout Mark Read Team Forum Stats Members Help
List container, static Items and <onfocus> possible?0