Einzelnen Beitrag anzeigen

Benutzerbild von baumina
baumina

Registriert seit: 5. Mai 2008
Ort: Oberschwaben
1.275 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: Farbänderung des Formularhintergrundes

  Alt 19. Sep 2013, 08:01
Hast Du da mal nen Code? Denn bei meinem Test mit Delphi XE habe ich das Phänomen nicht.

Delphi-Quellcode:
unit Unit52;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TForm52 = class(TForm)
    ListBox1: TListBox;
    Button1: TButton;
    Panel1: TPanel;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form52: TForm52;

implementation

{$R *.dfm}

procedure TForm52.Button1Click(Sender: TObject);
begin
  Form52.Color := clRed;
end;

end.
Delphi-Quellcode:
object Form52: TForm52
  Left = 0
  Top = 0
  Caption = 'Form52'
  ClientHeight = 337
  ClientWidth = 635
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object Button1: TButton
    Left = 436
    Top = 224
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 0
    OnClick = Button1Click
  end
  object Panel1: TPanel
    Left = 256
    Top = 28
    Width = 299
    Height = 160
    Caption = 'Panel1'
    ParentColor = True
    TabOrder = 1
    object ListBox1: TListBox
      Left = 84
      Top = 39
      Width = 121
      Height = 97
      ItemHeight = 13
      Items.Strings = (
        'E1'
        'Eintrag2')
      ParentColor = True
      TabOrder = 0
    end
  end
end
Hinter dir gehts abwärts und vor dir steil bergauf ! (Wolfgang Ambros)

Geändert von baumina (19. Sep 2013 um 08:07 Uhr)
  Mit Zitat antworten Zitat