wxWidgets Problem

Started by The Aboriginal One, July 18, 2010, 10:32:49 PM

Previous topic - Next topic

The Aboriginal One

Hey, I'm in the process of finishing my new project, when I come about a snag that I still didn't fix  for 3 days.

http://www.bmarquis.com/wiki/index.php5?title=Sandbox

All the code I think is necessary is here. What I am trying to do is when a scroll event occurs in a ImageScrollBar, it will use the contents of a wxTextCtrl child from it's own parent, a CtrlPanel

But every time I attempt to do anything after:

Code ("cpp") Select
CtrlPanel *Parent = (CtrlPanel *)h_parent;

Nothing happens. The omission of that line allows the function to work, but the inclusion of it does not.

Anyone know what is the problem?
Accusare nemo se debet nisi coram Veridis
DYNOMITE

VirtuallTek

The wxMessageBox not being called or Parent->ImgTxt->GetValue () does not return the correct value? What is wrong?
I not have compiled wxWidgets here to test, you are using Visual C++?
Not discovered nothing via Debugger? Call Stack, Local variables.

[]s

The Aboriginal One

The wxMessage Box is not being called.

GDB seems not to work, I need to see what's wrong with my debugger.

I'm using a Code::Blocks Nightly build, with Mingw.
Accusare nemo se debet nisi coram Veridis
DYNOMITE

VirtuallTek

It seems to be that the OnScroll event is not being called because you do not have setup a range in SetScrollbar(0,0,0,0,true);

[]s