Results 1 to 3 of 3

Thread: giving focus to a field in a menu? + widget z-order in a menu?

  1. #1
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default giving focus to a field in a menu? + widget z-order in a menu?

    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.

  2. #2

    Default

    You can use the "ordernumber" command for both, give focus and asign the z-order of the resources in a menu
    Code:
    // from the Client Module Classes (cl_allclasses.html)
    
    ordernumber( Integer num )
    
    • Set the order the widget should be activated in
    e.g.
    Code:
    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
    }
    ordernumber 1 > ordernumber 2 > ordernumber 3 ... and so on

  3. #3
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    256

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •