Do you know of a widget command for giving the focus to a specific field in a menu?
Do you know how to set a z-order for the widgets in a menu?
Thank you for any clue!
Do you know of a widget command for giving the focus to a specific field in a menu?
Do you know how to set a z-order for the widgets in a menu?
Thank you for any clue!
Last edited by Ancient Order; July 12th, 2020 at 05:27 PM.
You can use the "ordernumber" command for both, give focus and asign the z-order of the resources in a menu
e.g.Code:// from the Client Module Classes (cl_allclasses.html) ordernumber( Integer num )
- Set the order the widget should be activated in
ordernumber 1 > ordernumber 2 > ordernumber 3 ... and so onCode:resource Field { title "console chat" name "Default" rect 100 450 350 20 fgcolor 0.8 0.8 0.8 1.00 bgcolor 0.1 0.1 0.1 1.00 borderstyle "RAISED" stuffcommand "rcon say " ordernumber 1 // this will give focus and the priority over the other resources }
Thank you very much Zappa! Again.
I tried it though before posting and thought that was one of the numerous commands that don't work from the Client Module Classes Let me see what i did wrong.