The Caption does not appear.

DarkLight

11-10-2011 08:44:30

Hello, i compiled MyGui 3.0, i maked a simple exemple with it.
The problem that captions of the main widget and the button does not appear.
Best Regards

http://imageshack.us/photo/my-images/705/unled1re.png

Here's my code:

void GuiManager::createMainGui()
{
MyGUI::Gui* mGUI;
MyGUI::OgrePlatform* mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(m_render_window, m_scene_manager);
mGUI = new MyGUI::Gui();
mGUI->initialise();

MyGUI::Widget* w = mGUI->createWidgetT("Window", "Window", MyGUI::IntCoord(0, 0, 800, 100), MyGUI::Align(), "Overlapped", "");

MyGUI::ButtonPtr button = w->createWidget<MyGUI::Button>("Button", 0, 0, 50, 26, MyGUI::Align::Default, "Main");
button->setCaption("Reset");

KeyListener* kl = new KeyListener(m_scene_manager);

button->eventMouseButtonClick = MyGUI::newDelegate(kl, &KeyListener::mousePressed);
}

Altren

11-10-2011 09:28:40

Check MyGUI.log.

DarkLight

11-10-2011 09:55:33

Thanks for replying.

All is fine in MyGui.log except that:

  1. 08:47:56 | Core | Error | ResourceTrueTypeFont 'font_DejaVuSans.17' - Ttf font disabled. Define MYGUI_USE_FREETYE if you need ttf fonts. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 95[/list:u]

    But how can i define it ? in the compilation process or in my program ?


    1. ----------------------------------------------------------------------------------------------------------------------------------
      loging report for : 10/11/2011 08:47:56
      ----------------------------------------------------------------------------------------------------------------------------------

      08:47:56 | Platform | Info | * Initialise: OgreRenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 27
      08:47:56 | Platform | Info | OgreRenderManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 55
      08:47:56 | Platform | Info | * Initialise: OgreDataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 46
      08:47:56 | Platform | Info | OgreDataManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 50
      08:47:56 | Core | Info | * Initialise: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 82
      08:47:56 | Core | Info | * MyGUI version 3.0.0 | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 86
      08:47:56 | Core | Info | * Initialise: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 43
      08:47:56 | Core | Info | ResourceManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 51
      08:47:56 | Core | Info | * Initialise: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 45
      08:47:56 | Core | Info | LayerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 53
      08:47:56 | Core | Info | * Initialise: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 66
      08:47:56 | Core | Info | WidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 105
      08:47:56 | Core | Info | * Initialise: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 42
      08:47:56 | Core | Info | InputManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 59
      08:47:56 | Core | Info | * Initialise: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 44
      08:47:56 | Core | Info | SubWidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 64
      08:47:56 | Core | Info | * Initialise: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 46
      08:47:56 | Core | Info | SkinManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 54
      08:47:56 | Core | Info | * Initialise: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 44
      08:47:56 | Core | Info | FontManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 53
      08:47:56 | Core | Info | * Initialise: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 42
      08:47:56 | Core | Info | ControllerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 52
      08:47:56 | Core | Info | * Initialise: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 51
      08:47:56 | Core | Info | PointerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 69
      08:47:56 | Core | Info | * Initialise: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 82
      08:47:56 | Core | Info | ClipboardManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 96
      08:47:56 | Core | Info | * Initialise: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 43
      08:47:56 | Core | Info | LayoutManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 49
      08:47:56 | Core | Info | * Initialise: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 35
      08:47:56 | Core | Info | DynLibManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 37
      08:47:56 | Core | Info | * Initialise: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 37
      08:47:56 | Core | Info | PluginManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 41
      08:47:56 | Core | Info | * Initialise: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 40
      08:47:56 | Core | Info | LanguageManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 44
      08:47:56 | Core | Info | * Initialise: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 34
      08:47:56 | Core | Info | FactoryManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 37
      08:47:56 | Core | Info | Load ini file 'core_theme.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Load ini file 'core_language.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Load ini file 'core_font.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Error | ResourceTrueTypeFont 'font_DejaVuSans.17' - Ttf font disabled. Define MYGUI_USE_FREETYE if you need ttf fonts. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 95
      08:47:56 | Core | Error | ResourceTrueTypeFont 'font_DejaVuSans.14' - Ttf font disabled. Define MYGUI_USE_FREETYE if you need ttf fonts. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 95
      08:47:56 | Core | Info | Load ini file 'core_resource.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Load ini file 'core_skin.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Register value : 'HCenter' = 0 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 181
      08:47:56 | Core | Info | Register value : 'VCenter' = 0 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 182
      08:47:56 | Core | Info | Register value : 'Center' = 0 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 183
      08:47:56 | Core | Info | Register value : 'Left' = 2 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 184
      08:47:56 | Core | Info | Register value : 'Right' = 4 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 185
      08:47:56 | Core | Info | Register value : 'HStretch' = 6 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 186
      08:47:56 | Core | Info | Register value : 'Top' = 8 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 187
      08:47:56 | Core | Info | Register value : 'Bottom' = 16 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 188
      08:47:56 | Core | Info | Register value : 'VStretch' = 24 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 189
      08:47:56 | Core | Info | Register value : 'Stretch' = 30 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 190
      08:47:56 | Core | Info | Register value : 'Default' = 10 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 191
      08:47:56 | Core | Info | Register value : 'HRelative' = 32 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 192
      08:47:56 | Core | Info | Register value : 'VRelative' = 64 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 193
      08:47:56 | Core | Info | Register value : 'Relative' = 96 | c:\mygui3.0\myguiengine\include\MyGUI_Align.h | 194
      08:47:56 | Core | Info | Load ini file 'core_pointer.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Load ini file 'core_layer.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Load ini file 'core_settings.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 152
      08:47:56 | Core | Info | Gui successfully initialized | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 129

      [/list:u]

DarkLight

11-10-2011 10:14:38

Its fine right now i just rebuild the project with CMAKE and enabling the tag MYGUI_USE_FREETYE.
It works fine right now.
Thxs.