🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer
Article #27

Re: multiline label on button

#27
From: David Ladanyi
Date: Thu, 05 Sep 2002 16:54
31 lines
2643 bytes
Ben Combee <combee@techwood.org> wrote in message news:<MPG.17dfe08cc99b8ae598986d@news.earthlink.net>...
> In article <30890494.0209040714.52ea024d@posting.google.com>, 
> david_ladanyi@yahoo.com says...
> > Hi
> > 
> > I can't figure out how to put a multiline label on a button. I've
> > tried inserting \n, \r, \r\n, \n\r both at design time in Constructor
> > and at run time using the CtlSetLabel function and nothing works. The
> > \n and \r sequences translate to little ASCII squares, not new lines.
> > How can I get this to work? I'm testing with the emulator only - could
> > that be the problem?
> 
> Buttons don't support multiline labels.  If you've seen them, they've 
> been buttons with no label, with a separate Label object overlapping 
> them.

I've tried using the seperate Label strategy and it seems that the
only way to get it to work was to set a long garbage string in the
Label at design time, then replace it during run time with the
appropriate string with a \r for the line break. The only problem is
that there is a break in the Button border now where the original long
text was placed. Constructor doesnt seem to recognise the \r character
when I tried using it at design time however, when I leave the Label
blank in Constructor i get a run time error saying the Label is now
too long, so the space filler seems necessary. Ive tried using
FrmHideObject and FrmShowObject and stil the gap remains until you
click the button once. Is there any way to fix this? All of this seems
like an extremely convoluted hack for something that should be a basic
feature, as it is with the PocketPC.

Dave
Technical Details
Message-ID: <30890494.0209050854.4d171594@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <30890494.0209040714.52ea024d@posting.google.com> <MPG.17dfe08cc99b8ae598986d@news.earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c638,c903d2009540d20a
X-Google-Attributes: gid10c638,public
X-Google-Thread: 10baa0,c903d2009540d20a
X-Google-Attributes: gid10baa0,public
X-Google-ArrivalTime: 2002-09-05 09:54:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: david_ladanyi@yahoo.com (David Ladanyi)
Newsgroups: pilot.programmer,codewarrior.palm
Subject: Re: multiline label on button
Date: 5 Sep 2002 09:54:00 -0700
Organization: http://groups.google.com/
Lines: 31
Message-ID: <30890494.0209050854.4d171594@posting.google.com>
References: <30890494.0209040714.52ea024d@posting.google.com> <MPG.17dfe08cc99b8ae598986d@news.earthlink.net>
NNTP-Posting-Host: 140.163.94.51
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1031244840 5922 127.0.0.1 (5 Sep 2002 16:54:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Sep 2002 16:54:00 GMT