Autor Beitrag
bernd29
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: So 06.02.05 14:50 
hallo!

wie man eine form einblendet weiss ich nur hab ich das problem das es nur einmal geht
woran liegt es meine zweite frage wie kan ich die form ausblenden?

bernd :?!?:
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: So 06.02.05 14:52 
du blendest eine form mit
ausblenden Delphi-Quelltext
1:
Form.Show					

ein und blendest sie mit
ausblenden Delphi-Quelltext
1:
Form.Hide					

wieder aus.

mfg matze

_________________
si tacuisses, philosophus mansisses.
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: So 06.02.05 14:56 
hi !

ich meinte es mehr so:

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:
38:
39:
40:
41:
procedure TForm3.Timer1Timer(Sender: TObject);
const stepsize = 5;

function Min(a,b:integer):integer;
  begin
    if a<b then Result:=a
    else Result:=b;
  end;


begin
  if AlphaBlendValue=255 then
  begin
    AlphaBlend:=false;
    Timer1.Enabled:=false;
  end
  else
    AlphaBlendValue:=Min(AlphaBlendValue + stepsize, 255);
end;


procedure TForm3.FormShow(Sender: TObject);
begin
  Timer1.Enabled:=true;
end;


procedure TForm3.FormCreate(Sender: TObject);
begin
  Timer1.Enabled:=false;
  Timer1.Interval:=25;
  AlphaBlend:=true;
  AlphaBlendValue:=0;

end;

procedure TForm3.SpeedButton1Click(Sender: TObject);
begin
form3.close;
end;
end.

nur wen ich den ein zweites mal einblenden lasse geht es nicht funzt nur beim ersten mal.

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: So 06.02.05 15:04 
kleine info nebenbei, du weißt, dass man Alphablend nur auf NT systemen benutzen kann?

mfg matze

_________________
si tacuisses, philosophus mansisses.
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: So 06.02.05 15:07 
ich denke windows xp ist nt basierend oder ?
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Di 08.02.05 09:03 
hab die lösung!

hab alphablendvalue:= 0 vergessen


bernd