Mail Archives: djgpp/1998/03/06/17:46:08
From: | Vic <tudor AT cam DOT org>
|
Newsgroups: | rec.games.programmer,comp.os.msdos.djgpp
|
Subject: | HELP: GUI questions
|
Date: | Fri, 06 Mar 1998 17:35:58 +0200
|
Organization: | Communications Accessibles Montreal, Quebec Canada
|
Lines: | 15
|
Message-ID: | <350017DE.27FF@cam.org>
|
NNTP-Posting-Host: | dialup-431.hip.cam.org
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm making this GUI in C++.
I have a base object with all the event handlers (mouseOver, mouseOut
etc) and all the rest of the things (buttons, windows etc) are derived
from this one. till now I have working buttons :)
But I don't know how I should add the others. You can add things to the
desktop at runtime, and all the objects are in the same array.
I don't know how I should return the values from checkboxes, text imput
etc. Should I give a pointer in the constructor and then the status of
the object (like wehter a checkbox is checked or the text in an edit
window) would be returned there?
What is the best way of doing this? How do other GUIs handle this?
Any ideas?
TIA,
--
--> http://www.cam.org/~tudor <--
- Raw text -