Okay thanks Tank,
this minimal code won't display the titlebar though it is there because I can hover the mouse over it and the bubble box's appear (minimize,maximize),also the screen is not cleared to black in that area ...
(on Ubuntu 8.04, using Gnome 2.22.3 interface if it helps!)
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "test sfml", sf::Style::Titlebar | sf::Style::Resize | sf::Style::Close);
sf::Event Event;
sf::Font MyFont;
// Load from a font file on disk
if (!MyFont.LoadFromFile("Widelands.ttf"))
{
if (App.IsOpened()){ App.Close();}
return 1;
}
App.SetFramerateLimit(12);
sf::String Text("test", MyFont, 50);
Text.SetPosition(100, 100);
while (App.IsOpened())
{
while (App.GetEvent(Event))
{
// Window closed
if (Event.Type == sf::Event::Closed)
{App.Close();}
// Escape key
else if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
{App.Close();}
}
App.Clear();
App.Draw(Text);
App.Display();
}
return 0;
}
[/code]