Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-03

Inconsistent behavior of LabeledEdit boxes on different pages of a TabbedNotebook

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

david adam

I would like to set up a tabbed notebook with several pages, each of which contains a few labeled edit boxes
through which I can enter parameters. I can set up edit boxes on Form1 and on the first page of the tabbed notebook that perform as I would expect (edit window is a distinct color, and I can set the text value). However, when I add a second page to the tabbed notebook and try to create a labeled edit box, using the same procedure that worked before, I get a non-working version. The handles to adjust the box size are present, as is the label, but the edit box is the same color as the background, and there is no text property listed in the Object Manager.

I am running Lazarus 0.9.26 beta on Fedora 10. The *.pas file is shown below, and the problem is reproducible on my system. Can some kind soul tell me what I am doing wrong and how to fix it?

Many thanks!

david adam

==============

 unit test1;
{$mode objfpc}{$H+}
interface

uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,

  ExtCtrls;
type
  { TForm1 }
  TForm1 = class(TForm)
    LabeledEdit1: TLabeledEdit;
    LabeledEdit2: TLabeledEdit;
    LabeledEdit3: TLabeledEdit;
    LabeledEdit4: TLabeledEdit;
    LabeledEdit5: TLabeledEdit;
    LabeledEdit6: TLabeledEdit;
    LabeledEdit7: TLabeledEdit;
    Notebook1: TNotebook;
    Page1: TPage;
    Page2: TPage;
  private
    { private declarations }
  public
    { public declarations }
  end;
var
  Form1: TForm1;
implementation
initialization
  {$I test1.lrs}
end.

Reply by email

david adam
to Bart
Bart wrote 10 lines
Just zip the project (.pas .lfm .lpi .lrs) if you want us to take a the .pas won't help us. Bart _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Ok, the project is attached as test1.zip. If you need anything else, just let me know.
Help is much appreciated!

david
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.zip
Type: application/zip
Size: 3627 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090309/c1f83628/attachment.zip

Reply by email

Unknown author
to david adam

????????????, david.

In WinXP SP3 all right,

except that color of edit changed, when Object Inspector lose focus.

?? ?????? 9 ????? 2009 ?., 19:12:05:

Show quoted text 5 lines
Ok, the project is attached as test1.zip. If you need anything else, just let me know. Help is much appreciated! david
? ?????????, Cobalt747 mailto:

Reply by email