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 1 1982
Adam Thickett wrote: 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dan Weeb |
last post by:
Hi All,
I have struggled through this far with help from many of you so thanks. I am
stuck again. I am really new to this so don't be harsh :-)
There are a few problems. You can run the script...
|
by: scooterm |
last post by:
### Question
Can anyone name a text editor or XML editor (prefer open source) that
can open a simple table XML file in a spreadsheet-type GUI, without
adding
any extra formatting or junk to the...
|
by: Jouke Langhout |
last post by:
Hello all!
For quite some time now, I've got the following problem:
Access won't close properly when a user closes the application. An
ACCESS process stays active and that process can only be...
|
by: brAccess |
last post by:
I recently installed Access 2003 and immediately noticed problems with
applications that work fine in 2000 and XP. I use conditional
formatting on continuous forms for a number of reasons. When...
|
by: deko |
last post by:
I've heard it's best not to have any formatting specified for Table fields
(except perhaps Currency), and instead set the formatting in the Form or
Report. But what about Yes/No fields? When I...
|
by: BBFrost |
last post by:
I'm receiving decimal values from database queries and placing them on a
report page.
The users want to see the following ....
Db Value Display Value
123.3400 123.34...
|
by: Ken Wilson |
last post by:
I am writing and .xml file and am not getting the formatting I would
like. The portion of the code that is giving me problems is as
follows;
XmlTextWriter tw = new XmlTextWriter(filename);
...
|
by: Coleen |
last post by:
Hi all :-)
I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML.
Here is the snippet of code for the cell I'm trying to format:
Dim...
|
by: mdh |
last post by:
Hi Group,
Not looking for an answer, but more of an explanation. Thinking back
to those heady days when you had the time to do them, may I ask this.
Exercise 1-22 asks for a program to "fold"...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |