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

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

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

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

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

  const MENU
  {
    set MAIN_WINDOW
    {
      ...
    };
  };

  const MENU_ITEM
  {
    set FILE
    {
      ...
    };

    ...

  };

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

      set MENU_BAR
      {
        ...
      };
    };

    const MENU_ITEM
    {
      set FILE
      {
        ...
      };

      ...

    };

    ...

  };

  const 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 = {
    ...
}

...