A
Adam Thickett
Hey Peeps,
I've just recently started using GUI in C++ and so please forgive me
if this question seems obvious . I've searched the net for the
answer and just can't find it anywhere so i really hope you can help.
I'm trying to get a section of a window to disappear and reappear as
toggled by a button (like in Outlook when you send/recieve mail).
Currently i'm using the below code, but the attached windows keep
cascading themselves in the created frame??
int main()
{
winio("%ca[Statistics & Numerical Methods Engine]&");
//winio("%ww[casts_shadow]&");
winio("%cv&", &com);
winio("%`cnPlease type in the data seperated by commas (,)
below\n&");
winio("%rs\n&", man_input, 30);
winio("%`^bt[calculate]\t%bt@\n&", calculate, exit);
winio("%fr", 250, 300);
}
..
..
..
void output()
{
winio("%aw%sp&", &com, 0 , 0);
winio("%ww[no_caption]%lw&", &results);
winio("\nArithmetic Mean = %`rf&", &arithmetic_mean);
winio("\nGeometric Mean = %`rf&", &geo_mean);
winio("\nHarmonic Mean = %`rf&", &harmonic_mean);
winio("\nRange = %`rf&", &range);
winio("\nSemi-Interquartile Range = %`rf&", &semi_inter_range);
winio("\nMode = %`rf&", &mode);
winio("\nMedian = %`rf&", &median);
winio("\nMean Deviation = %`rf&", &mean_dev);
winio("\nMedian Deviation = %`rf&", &median_dev);
winio("\nMode Deviation= %`rf&", &mode_dev);
winio("\nVariance = %`rf&", &variance);
winio("\nStandard Deviation = %`rf", &stand_dev);
}
Thanks in advance
Adam Thickett
I've just recently started using GUI in C++ and so please forgive me
if this question seems obvious . I've searched the net for the
answer and just can't find it anywhere so i really hope you can help.
I'm trying to get a section of a window to disappear and reappear as
toggled by a button (like in Outlook when you send/recieve mail).
Currently i'm using the below code, but the attached windows keep
cascading themselves in the created frame??
int main()
{
winio("%ca[Statistics & Numerical Methods Engine]&");
//winio("%ww[casts_shadow]&");
winio("%cv&", &com);
winio("%`cnPlease type in the data seperated by commas (,)
below\n&");
winio("%rs\n&", man_input, 30);
winio("%`^bt[calculate]\t%bt@\n&", calculate, exit);
winio("%fr", 250, 300);
}
..
..
..
void output()
{
winio("%aw%sp&", &com, 0 , 0);
winio("%ww[no_caption]%lw&", &results);
winio("\nArithmetic Mean = %`rf&", &arithmetic_mean);
winio("\nGeometric Mean = %`rf&", &geo_mean);
winio("\nHarmonic Mean = %`rf&", &harmonic_mean);
winio("\nRange = %`rf&", &range);
winio("\nSemi-Interquartile Range = %`rf&", &semi_inter_range);
winio("\nMode = %`rf&", &mode);
winio("\nMedian = %`rf&", &median);
winio("\nMean Deviation = %`rf&", &mean_dev);
winio("\nMedian Deviation = %`rf&", &median_dev);
winio("\nMode Deviation= %`rf&", &mode_dev);
winio("\nVariance = %`rf&", &variance);
winio("\nStandard Deviation = %`rf", &stand_dev);
}
Thanks in advance
Adam Thickett