By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,264 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,264 IT Pros & Developers. It's quick & easy.

how to put scrolling option in data read from a file

P: n/a
I made a application which takes input entries of different products
and store them in file using ios library.. Now I want to show the
complete information of all products one by one using scrolling. Could
u help me to do so.

Nov 25 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <11**********************@g44g2000cwa.googlegroups .com>,
sudhir <su*****************@gmail.com> wrote:
I made a application which takes input entries of different products
and store them in file using ios library.. Now I want to show the
complete information of all products one by one using scrolling. Could
u help me to do so.


The C language itself only knows as much about user interfaces as
can be fit into the "write some characters out, read some characters in"
model. C itself has no Graphical User Interface (GUI) and so no
notion of a graphical window that might be scrolled up or down.
C itself also has no notion about terminal control sequences that might
allow the same sort of thing in a pure text context (e.g., as is
done by the 'less' program.)

So, about all you can do in C itself is write some data out for the
user, then write out a "Press return to continue" prompt, and then
read a character from input. (Be sure to through through the input
until you find a newline, or whatever the user typed before they
pressed return will still be in the buffer.)
If you need scroll bars and so on, then you should ask in the programming
newsgroup dedicated to your particular operating system, as such things
are not portable.

--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
Nov 25 '05 #2

P: n/a
sudhir wrote:
I made a application which takes input entries of different products
and store them in file using ios library..
"ios" is the name of a namespace (not library) in C++.
<news:comp.lang.c> deals with the C programming language. For questions
about the different language C++ go to <news:comp.lang.c++>.

Before posting there, check their FAQ and review several weeks of posts.
However, I doubt that your question will be topical even in
<news:comp.lang.c++> because ...
Now I want to show the
complete information of all products one by one using scrolling.
"Scrolling" is usually handled by non-standard libraries which are
specific to your implementation or platforn,
Could
u help me to do so.


Sure: the word 'you' has three letters.
Nov 25 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.