Autor Beitrag
SvenAbeln
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 334
Erhaltene Danke: 3



BeitragVerfasst: Mi 05.11.08 12:14 
user profile iconD. Annies hat folgendes geschrieben Zum zitierten Posting springen:
Hi, Delpher,

ich führe diesen Thread erstmal weiter.
Was jetzt aufgetaucht ist, ist, dass die BorderIcons wie abgedunkelt sind, es fehlt also z.B. die rote Hintergrundfarbe beim Close-Icon.

Wer hat dazu eine Idee?


Sind denn die BorderIcons von beiden Fenstern grau, oder nur bei einem?

Windows zeichnet die Icons unterschiedlich, jenachdem ob das Fenster den Fokus hat oder nicht.
mit Fokus: bunt
ohne Fokus: grau
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mi 05.11.08 14:02 
Hi, Sebastian und Sven,

der Code ist wirklich absolut unspektakulär, aber seht selbst:

ausblenden 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:
procedure TForm1.Datensatzneu2Click(Sender: TObject);  {neues Buch}  begin form6.Show end;  // Code aus Form1

// *************************************************************************************                              Code aus Form6

procedure tform6.init(sender:tobject);
begin                        // = 476                       // = 257
  form6.setbounds(0,screen.Height-300,screen.Width,screen.Height-500);
  //form6.BorderIcons := BorderIcons -[biminimize, bimaximize];  // [bisystemmenu];
  label1.Caption := ''; label2.Caption := ''; label3.Caption := ''; label4.Caption := '';
  label5.Caption := ''; label6.Caption := ''; label8.Caption := 'REG_ID'; label9.caption := '';
  edit1.Text := ''; edit1.setfocus;   edit2.Text := ''; edit3.Text := '';
  edit4.Text := ''; edit5.Text := ''; edit6.Text := ''; edit7.Visible := true;
  edit1.Enabled := true; edit2.Enabled := true; edit3.Enabled := true;
  edit4.Enabled := true; edit5.Enabled := true; edit6.Enabled := true;
  button2.Visible := false;
end;

procedure TForm6.FormActivate(Sender: TObject);
begin
  init(self);
  if form1.CheckBox1.Checked then  // Buchstamm
  begin
    label10.Visible := false; edit8.Visible := false;
    label1.Caption := 'Titel  *'; label2.Caption := 'Jahr';  label3.Caption := 'Verlag';
    label4.Caption := 'ISBN';     label5.Caption := 'Preis'; label6.Caption := 'U-Fach  *';
    button2.Visible := true; datum := Now; DecodeDate(datum, j, m, t);
    edit2.text := inttostr(j); edit2.Enabled := false; edit7.Visible := false;
    label7.Caption := ' --> Buchstammtabelle';
  end
end;


Da ist (??) nichts. Nach meiner Meinung ist es (etwas) passiert, als ich
form6.parent := form1 gesetzt hatte. Das habe ich dann zurückgenommen und seitdem ist "Stochern im Nebel" bei mir.

Aber wir kriegen das raus ..
Danke erstmal bis jetzt,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mi 05.11.08 18:01 
So, nächster Stand:

Ich habe statt form6.show form6.showmodal gesetzt. Jetzt kommt wenigstens kein Debugger-alarm mehr. Aber das "abgedunkelte" ist immer noch, seltsam.

Detlef

_________________
ut vires desint, tamen est laudanda voluntas