Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Lock frames in place

  • matthijs vs

    matthijs vs - 2022-04-05

    We have several HMI pages with a number of buttons.
    to group these buttons I made a frame "menu bar" which is placed on every page.

    Now I want to lock these in place, because on every page the buttons are aligned exactly.
    If I select a frame on a page, I want to lock the X,Y,width,height to prevent accidental moving.

    is this possible in the designer?

  • ludecus

    ludecus - 2022-04-07

    I do see two options:

    Firstly, you could create a frame, where the menu bar is located in the defined position (use a codesys frameswitch).
    The content is located in a smaller area within a second frameswitch.
    While the frames doesnt need the menu bar, you dont need to lock them.
    (If you don't want other users to edit the menu bar, you could locate the menu bar into a accessible library.)

    Secondly, if the first option is not possible, you might overwrite the absolute movement value x and y with a integer. The frame could look different in editor then in the visu.

    I totally prefer the first option.


Log in to post a comment.