Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Xardas2

Pages: [1]
1
Window / Window Icon doesn't show properly
« on: August 20, 2009, 11:28:57 am »
Hi all together.


I've got a problem with the window icon.
It isn't draw corectly, only a few pixels are visible and I don't know why.
Maby something is wrong with my code.

Code: [Select]
sf::RenderWindow App(sf::VideoMode(300,300,32), "Test");
sf::Image img_icon;

img_icon.LoadFromFile("icon_error.png");

App.SetIcon(img_icon.GetWidth(), img_icon.GetHeight(), (sf::Uint8*)&img_icon);


I use a 15 x 15 .png image but .jpg also doesn't work.

I've uploaded the code hier:
http://sfml15-seticont.sourceforge.net

Thanks for your help.

2
General / Text Edit Box / Field
« on: July 11, 2009, 02:37:40 pm »
Hi all together.

I'm looking for a kind of Text-Edit-Box / -Field for a best player list and an option menu.
I tried to create one by my own, but it hasn't worked very well and the code looked a bit untidy.
I used an Image, a Sprite and a String for one box.

Now I would like to know, whether there is an easier and more effective way to make such a thing using SFML, and how I can add a cursot.
Or would it be best to use the windows API?

Thank you for all your valuable answers.

Pages: [1]
anything