My Program is a simple function calculator. The user is asked to provide two inputs. The program is to run the inputs through a function and spit out the answer as a float type. My problem lies with trying to display the results at the bottom of my frame/window. I tried using wxStaticText but the problem was that a variable could not be the value, or text displayed. Any tips, suggestion, and/or solutions. Thank you for your time :)
Guys I appreciate the responses, but my problem lies in displaying the results in a wxFrame. The idea is that the float value, upon being calculated, would be displayed, using a static text, in a result section on the bottom of the frame. I tried to use the float as the value of the wxStaticText but the compiler does not recognize or will not accept the float as the text for the static text element. In order to figure out the parameters of the static text element, I created a blank wxString and assigned some text to it. When substituted for the wxT it once again failed to compile.
wxStaticText *fr = new wxStaticText(panel, -1, wxT("f"), wxPoint(90,200)); // "f" is the value printed on the bottom of the screen
I want to substitute "f" with a float value.
wxStaticText *fr = new wxStaticText(panel, -1, some float variable, wxPoint(90,200)); // the goal is to print the numerical value of the variable