Winio formatting problems

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
 
T

Thomas Matthews

Adam said:
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 don't see any C++ issues with the code that you have
posted. Unfortunately, GUIs are outside the realm of
this newsgroup and need to be addressed in a newsgroup
about your platform, compiler or windowing system.

This issue is addressed in the C++ FAQ:
http://www.parashift.com/c++-faq-lite/how-to-post.html
One should always consult the FAQ before posting.
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,428
Latest member
RosalieQui

Latest Threads

Top