Autor Beitrag
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 11.11.05 15:06 
Irgendwie ist das nicht zu Fassen.
Bei der ClickMethode gibts doch nun wirklich nichts falsch zu machen.
Du hast doch den Code von Tilman und obs Du ihn nu in die Click Methode vom Panel1 oder Button1 setzt ist hin wie her.
Am besten Du zeigst mal einfach deinen Code den Du bisher hast, dann kann Dir auch mal einer sagen was Du falsch machst.
Anstatt der Raterei.
Der Crashkurs ist warscheinlich auch nicht so richtig angekommen.
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Fr 11.11.05 15:29 
Hi also der code ist


ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Panel1: TPanel;
    Panel2: TPanel;
    Panel3: TPanel;
    Panel4: TPanel;
    procedure Panel1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Panel1Click(Sender: TObject);
begin
panel2.Visible := not panel2.Visible;
panel3.Visible := not panel3.Visible;
panel4.Visible := not panel4.Visible;

end;

end.




Aber ich will das die Butten nicht zu sehn sind wen man das Program öffnet ich will das man sie sieht wen man auf Klick Mich drückt !!!


Ich habe das mit False und True auch schon gemacht aber wen ich eins von beiden wähle sind entweder die Button da oder weg !!!

Also wen sie weg sind kan ich auch ned auf Klick Mich drücken da geht dan ganigs mehr ich weis ned warum das ist mein Problem !!!


THX

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 11.11.05 15:36 
Also Ich nehme mal an das Klich Mich Panel1 ist, das muss auf Visible True der Rest auf False.
Das heißt beim Start ist nur Klick Mich zu sehen.
Beim Klicken darauf zeigen sich die anderen, bei nochmaligen Klick sind sie Verschwunden.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Fr 11.11.05 15:37 
Ich hab mir das Topic nicht durchgelesen aber ich tippe auf die XPBar der Jedis.
Einloggen, um Attachments anzusehen!
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Fr 11.11.05 16:05 
Hi Blackheart666


Wenn ich das so mach wie du gesagt hast ist das Klick Mich weg und die Buttons sind da :shock:


THX
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 11.11.05 16:27 
Also nicht verstehen bei Mir gehts, dann mach mal folgendes um alles auszuschließen.
Wenn Das nicht geht treibste mit uns hier einen Spass !

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.Panel1Click(Sender: TObject);
begin
  Panel2.Visible := not Panel2.Visible;
  Panel3.Visible := not Panel3.Visible;
  Panel4.Visible := not Panel4.Visible;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Panel1.Visible:=True;
  Panel2.Visible:=False;
  Panel3.Visible:=False;
  Panel4.Visible:=False;
end;
M 2005 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Fr 11.11.05 16:56 
Hi Jungs wolte nur sagen das es jetzt geht !!!


Tut mir leid wen ich es so scheise rubergebracht habe ( was ich brauche )



Also nochmal vielen vielen Dank