i am writting program for digital calculator.and i have brought calculator image using graphics on outputscreenand i want to give dual interface of keyboard and mouse.how can i do that in graphics?
thank you in advance.
Amol Ranjere
0
Newbie Poster
Recommended Answers
Jump to PostLook into the curses library, or some variation thereof.
Jump to PostWait, is this a console (text) program or a Windows (GUI) program?
In either case, you will have to add "event listeners": code that checks for input from the keyboard and the mouse. If a button is pressed, add the appropriate digit into the current number or invoke …
Jump to PostI don't know if curses is what you want or not, because you didn't clarify your situation too well, but here it is: (there are tutorials at the bottom)
http://en.wikipedia.org/wiki/Curses_(programming_library)
All 9 Replies
plgriffith
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
zhelih
-1
Junior Poster
Amol Ranjere
0
Newbie Poster
Amol Ranjere
0
Newbie Poster
plgriffith
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
LostCause(c,b)
0
Newbie Poster
SideTruth
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.