🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1098

PushButton for 3.0

#1098
From: juando
Date: Mon, 06 May 1991 13:05
16 lines
1166 bytes
	I am building the class PushButton (just as an exercise) using
3.0 classes only, derived from class Button. I just want a button with a
label inside. The constructor would be declared something like:

    PushButton(const char *s, Font *f, Color *fg, Color *bg, Action *a);

	The telltale for the Button would be built inside this constructor,
however, Button parent class requires the telltale before I can build it.
I know I can pass nil to Button constructor and set it later because telltale_
is protected, not private, but then listener_ would be initialized whith a nil
Glyph. Can someone tell me how could this be done?

	Thanks.

	    Juan
Technical Details
Message-ID: <"<9105061205.AA09569@cnmus.cnm.us.es>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!sdd.hp.com!caen!uwm.edu!bionet!agate!riacs!stanford.edu!cnm.us.es!juando

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!sdd.hp.com!caen!uwm.edu!bionet!agate!riacs!stanford.edu!cnm.us.es!juando
From: juando@cnm.us.es
Newsgroups: comp.windows.interviews
Subject: PushButton for 3.0
Message-ID: <"<9105061205.AA09569@cnmus.cnm.us.es>
Date: 6 May 91 13:05:55 GMT
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
Lines: 16