I was adding my own gui textbox using classes, when I clicked the textbox, it says false
Edit: Fixed, Im dumb
Problem with Classes Variables
What, specifically, "says false"? Can you describe what you're trying to do and where things are not doing what you expect?
Again, what says false? Your command prompt? The graphical text of your window? Your window's titlebar? Your debugger?
I figured out what you mean, only after five minutes of thought. Your five seconds of better communication could [s]save you 15% or more on your car insurance[/s] help ensure you get correct and timely answers to your questions (some people just throw up their arms and say, "If he's not bothering to explain things properly, why should I waste my time helping him?").
Anyways, in answer to your query, here's my best guess:
Why is guix and guisizex pointers to dynamic memory? What purpose does that serve? Maybe your memory is getting corrupted because of it.
Try changing those to non-pointers, using regular class member variables; I bet you're accidentally increasing the *pointer* and then dereferencing it (possibly making it point at the memory of your boolean), instead of dereferencing it and then increasing it... though I can't pinpoint the location, I wonder if there isn't additional functions not posted (such as 'MaxLength()') where this might be happening.
I figured out what you mean, only after five minutes of thought. Your five seconds of better communication could [s]save you 15% or more on your car insurance[/s] help ensure you get correct and timely answers to your questions (some people just throw up their arms and say, "If he's not bothering to explain things properly, why should I waste my time helping him?").
Anyways, in answer to your query, here's my best guess:
Why is guix and guisizex pointers to dynamic memory? What purpose does that serve? Maybe your memory is getting corrupted because of it.
Try changing those to non-pointers, using regular class member variables; I bet you're accidentally increasing the *pointer* and then dereferencing it (possibly making it point at the memory of your boolean), instead of dereferencing it and then increasing it... though I can't pinpoint the location, I wonder if there isn't additional functions not posted (such as 'MaxLength()') where this might be happening.
I am deaf, and Im not good speaking and/or question.
One more, I mean that If mouse is clicked in textbox(in up) was working, but not textbox2(in down).
I was fixing gui for 2 hours, still doesn't work.
"Why is guix and guisizex pointers to dynamic memory?"
Becuase I was testing this, it still bugged.
Edit:
I forget I did not write "textbox->Events(evets);"
Sorry guys! ... Im dumb
One more, I mean that If mouse is clicked in textbox(in up) was working, but not textbox2(in down).
I was fixing gui for 2 hours, still doesn't work.
"Why is guix and guisizex pointers to dynamic memory?"
Becuase I was testing this, it still bugged.
Edit:
I forget I did not write "textbox->Events(evets);"
Sorry guys! ... Im dumb
One more, I have problem with SDL_SetColors and SDL_Palette, Let dont me set colors the images....
Your questions are totally unclear. Try asking smarter questions. Indicating clearly what you are trying to do, how you are going about it (via code preferably) and what is happening, versus your expectations.
Whatever your current problem is, you probably don't need to use SDL 1.3 to fix it.
Whatever your current problem is, you probably don't need to use SDL 1.3 to fix it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement