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 - nacsasoft

Pages: [1]
SFML projects / cpGUI - A new object oriented GUI toolkit based on SFML 1.5
« on: September 28, 2009, 06:23:09 pm »
Thank You for quick help !!!!

SFML projects / cpGUI - A new object oriented GUI toolkit based on SFML 1.5
« on: September 27, 2009, 04:53:44 pm »
Helo forrestcupp !

I have a little problem with the cpSelectionBox.
I added 14 choices for my cpSelectionBox and select 13th choice.

I use the RemoveLastChoice() function and I get an error :

What is the problem ?

General / Crash exit app with CPGUI
« on: September 24, 2009, 08:04:02 pm »
Hi !
My name is Csaba from Hungary.

Sorry for My bad English !!!

I have a problem.I used in my app the CPGUI, and I exit the app then I get an error (memory leak). Without the CPGUI, my app is good !

This is a code (class partial) :


Code: [Select]

cp::cpGuiContainer      myGUI;
cp::cpSelectionBox      *selBox;


(..in constructor...)
selBox = new cp::cpSelectionBox(myWindow, &myGUI, 450, 70, 200, 150);

        std::string choices[] = {"Dwarf", "Elf", "Warrior", "Wizard",
"Adventurer", "Guild Leader", "Cleric"};
        for(int t=0; t < 7; t++)

(... in update function...)
        const sf::Input& input = myWindow->GetInput();

        if ((menuEvent.Type == Event::KeyPressed) && (menuEvent.Key.Code == Key::Escape))
            iGameState = 0;

        int selection; // an int to store the selection choice from
  // our selection box & drop down box
if(selBox->CheckState(&input) == cp::CP_ST_MOUSE_LBUTTON_RELEASED)
selection = selBox->GetSelection();


What is the problem ?

Pages: [1]