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.


Messages - Xardas2

Pages: [1]
1
Window / Window Icon doesn't show properly
« on: August 20, 2009, 01:19:11 pm »
Thank you.

Now it works fine. ^^


I agree with you, that the sf.net project wasn't the right solution.
Next time I will upload the files otherwhere.

2
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.

3
General / Text Edit Box / Field
« on: July 14, 2009, 10:39:01 am »
Thanks a lot.

I tried it out and it works very well + it's realy easy to handle. :D

4
Feature requests / Message Boxes
« on: July 11, 2009, 03:05:28 pm »
You can also write a thread class. It isn't as difficult as it sounds ;)
Here's a part of mine. (I'm also a beginner and so don't know if this is a good solution. But so, you don't need to use the WAPI)
Code: [Select]

#include <SFML/Graphics.hpp>
#include <string>

class EMessage : public sf::Thread
{
        public:
            //variables
            std::string EMessage;

        protected:
            //methods
            virtual void Run()
            {
                bool running = true;
                sf::RenderWindow ErrWindow(sf::VideoMode(600, 130, 32), "ERROR!", sf::Style::Close);
                sf::String ErrMessage;
               
                ErrMessage.SetText(EMessage);

                while(running)
                {
                    while(ErrWindow.GetEvent(Event))
                    { /* Button Click, ...*/ }

                    ErrWindow.Draw(ErrMessage);
                    ErrWindow.Display();
                }
            }

},

5
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