🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #37

Re: Some 3.1 questions

#37
From: Mark Linton
Date: Fri, 30 Oct 1992 23:05
11 lines
916 bytes
In article <Bwu749.3nE@cs.vu.nl>, erijvor@cs.vu.nl (Rijvordt EGK) writes:
|>    - How do I set a window's title in 3.1?
|> 	window->style()->attribute( "name", title ) only works if
|> 	the window is mapped, else a crash occurs.  Is this the way
|> 	it is supposed to be?

Just set the window's style ahead of time, e.g.,

    window->style(new Style(Session::instance()->style()))

and then you won't get the crash.
Technical Details
Message-ID: <1csf2sINNl0v@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!seismo!darwin.sura.net!jvnc.net!yale.edu!think.com!ames!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton
References: <Bwu749.3nE@cs.vu.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!seismo!darwin.sura.net!jvnc.net!yale.edu!think.com!ames!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: Some 3.1 questions
Message-ID: <1csf2sINNl0v@fido.asd.sgi.com>
Date: 30 Oct 92 23:05:00 GMT
References: <Bwu749.3nE@cs.vu.nl>
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 11
NNTP-Posting-Host: marktwain.rad.sgi.com