ÚÄÄÄÄÄÄÄÄÄ¿
³ Frame.h ³
ÀÄÄÄÄÄÄÄÄÄÙ

namespace APP
{
  desc WINDOW
  {
    const FRAME
    {
      MAIN_WINDOW = 1
    };
  };

  desc LAYOUT
  {
    const MAIN_WINDOW
    {
      CLIENT    = "ClientWindow",     
      FONT_NAME = "System Proportional",
      FONT_SIZE = "10"
    };
  };

  desc IMG
  {
    const MAIN_WINDOW
    {
      ICON = 1
    };
  };

  desc MENU_BAR
  {
    const MAIN_WINDOW
    {
      FILE = 1,
      EDIT = 2,
      VIEW = 3
    };
  };

  desc MENU
  {
    const MAIN_WINDOW
    {
      ...
    };
  };

  desc MENU_ITEM
  {
    const FILE
    {
      ...
    };

    ...

  };

  desc STR
  {
    desc MAIN_WINDOW
    {
      const TITLE_BAR
      {
        ...
      };

      const MENU_BAR
      {
        ...
      };
    };

    desc MENU_ITEM
    {
      const FILE
      {
        ...
      };

      ...

    };

    ...

  };

  desc KEY
  {
    ...
  };
}

ÚÄÄÄÄÄÄÄÄÄÄ¿
³ Frame.rc ³
ÀÄÄÄÄÄÄÄÄÄÄÙ

#include "Frame.h"

Frame, APP/WINDOW/FRAME/MAIN_WINDOW = {
    Title = APP/STR/MAIN_WINDOW/TITLE_BAR/TEXT
    Icon = APP/IMG/MAIN_WINDOW/ICON

    Workarea = APP/LAYOUT/MAIN_WINDOW/CLIENT

    Style = {
        Flags = FCF_ICON | FCF_TASKLIST | FS_SIZEBORDER | WS_VISIBLE
        Frame = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX | FCF_MENU | FCF_TOOLBAR 

        Font = {
            Name = APP/LAYOUT/MAIN_WINDOW/FONT_NAME
            Size = APP/LAYOUT/MAIN_WINDOW/FONT_SIZE
        }
    }

    Size = {
        X = 0
        W = %SV_CXSCREEN%
        Y = (/ %SV_CYSCREEN% 18)
        H = (- %SV_CYSCREEN% (/ %SV_CYSCREEN% 18))
    }

    Menu = {
        Items, Open+Save+Edit = {
            Item, APP/MENU_BAR/MAIN_WINDOW/FILE = {
                Text = APP/STR/MAIN_WINDOW/MENU_BAR/FILE
                Menu = APP/MENU/MAIN_WINDOW/FILE
            }

            Item, APP/MENU_BAR/MAIN_WINDOW/EDIT = {
                Text = APP/STR/MAIN_WINDOW/MENU_BAR/EDIT
                Menu = APP/MENU/MAIN_WINDOW/EDIT
            }
        }

        Items, View+Settings+Help = {
            Item, APP/MENU_BAR/MAIN_WINDOW/VIEW = {
                Text = APP/STR/MAIN_WINDOW/MENU_BAR/VIEW
                Menu = APP/MENU/MAIN_WINDOW/VIEW
            }

            ...
        }
    }

    Toolbar = {
        Items, Actions = {
            ...
        }

        Items, Edit = {
            ...
        }

        ...
    }
}

String, APP/STR/MAIN_WINDOW/TITLE_BAR/TEXT = {
    Text.En = "Window title"
    Text.Ru = "‡ £®«®¢®ª ®ª­ "
}

Icon, APP/IMG/MAIN_WINDOW/ICON = {
    Image.16x16 = "./Icons/Main_16x16.ico"
    Image.32x32 = "./Icons/Main_32x32.ico"
    Image.48x48 = "./Icons/Main_48x48.ico"

    Image.16x16.Dark = "./Icons/Main_16x16_dark.ico"
    Image.32x32.Dark = "./Icons/Main_32x32_dark.ico"
    Image.48x48.Dark = "./Icons/Main_48x48_dark.ico"
}

String, APP/STR/MAIN_WINDOW/MENU_BAR/FILE = {
    ...
}

String, APP/STR/MAIN_WINDOW/MENU_BAR/EDIT = {
    ...
}

String, APP/STR/MAIN_WINDOW/MENU_BAR/VIEW = {
    ...
}

Menu, APP/MENU/MAIN_WINDOW/FILE = {
    ...
}

Menu, APP/MENU/MAIN_WINDOW/EDIT = {
    ...
}

Menu, APP/MENU/MAIN_WINDOW/VIEW = {
    ...
}

...