[Lazarus] Changing a TLabel.Caption

Juha Manninen juha.manninen62 at gmail.com
Sat Nov 26 23:31:28 CET 2011


2011/11/26 Timothy Groves <the.tail.kinker at gmail.com>

> I tried changing a TLabel.Caption property, and got a SIGSEGV.  Here's the
> offending code:
>
> if (cmbProfileMeasures.Text = 'Inches') then
>      begin
>      labPDFWidth.Caption := 'in X';
>      labPDFHeight.Caption := 'in';
>    end
>    else
>      if (cmbProfileMeasures.Text = 'Points') then
>      begin
>          labPDFWidth.Caption := 'pt X';
>          labPDFHeight.Caption := 'pt X';
>      end
>        else
>        begin
>          labPDFWidth.Caption := 'cm X';
>          labPDFHeight.Caption := 'cm X';
>      end;
>

The controls (and form) are not created for some reason.
The code itself looks OK.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111127/98629521/attachment-0003.html>


More information about the Lazarus mailing list