Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!decwrl!mcnc!borg!currituck!frederic From: frederic@currituck.cs.unc.edu (Robin Fredericksen) Newsgroups: comp.sys.mac.programmer Subject: TCL CStaticText question Keywords: help, display Message-ID: <1691@borg.cs.unc.edu> Date: 19 Feb 91 11:03:01 GMT Sender: news@cs.unc.edu Lines: 41 Can anyone out there tell me why my CStaticText object won't display itself unless I call FitToEnclosure(,) with at least one true argument? I don't want to call it all, because I want the text to be static in size and position in the window. FitToEnclosure causes teh text update region to be large, causing flicker in other parts of the screen. The code is: ======================== Str255 TString; CStaticText *TitleDisplay; o o o TString[0] = strlen(MyTitle); strcpy(TString+1,MyTitle); TitleDisplay = (CStaticText *)new(CStaticText); TitleDisplay->IStaticText(anEnclosure,this, 60,10,60,60,sizFIXEDSTICKY,sizFIXEDSTICKY,60); TitleDisplay->SetTextString(TString); TitleDisplay->SetFontSize(9); TitleDisplay->SetAligniHEncl,aVEncl,TRUE); TitleDisplay->FitToEnclosure(FALSE, TRUE); TitleDisplay->Place(aHEncl,aVEncl,TRUE); o o } Thanks in advance, Eric Fredericksen frederic@neuretp.biol.ruu.nl -- ------------------------------------------------------------------------------- Eric Fredericksen : Insert amazingly funny or enlightening quote frederic@cs.unc.edu : in this space here. I don't need a disclaimer, I'm a graduate student so no one cares what I say...