Autor Beitrag
lkz633
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 136

WinXP, Suse Linux 8.2 (unter VMWare)
D7 Prof, K3 Prof
BeitragVerfasst: So 29.12.02 22:47 
Hallo,

habe folgenden code:

ausblenden Quelltext
1:
2:
if (function= true) and (showfirsttime= true) then
  trayicon.hidemainform;       // abftrayicon


Aus mir unerklärlichen Gründen(beide werte sind true und die codezeile wird beim debuggen auch ausgeführt) wird jedoch das Fenster nicht minimiert. Deshalb habe ich es mit hide;versucht, da bekome ich jedoch die Fehlermeldung, das dies im onshow-Ereigniss nicht möglich ist.

Gibt es noch eine andere Möglichkeit ? Wie macht ihr soetwas ?

Dank und Gruss
lkz633
Jack Falworth
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 222

Win XP Pro, Slackware 10.0
D5 Enterprise, C++, ABAP
BeitragVerfasst: Mo 30.12.02 01:59 
wie wärs, wenn du es nicht ins OnShow ereignis der Form schreibst?

MfG

Jack Falworth
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 30.12.02 03:00 
Was soll eigentlich passieren? :roll:
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 30.12.02 09:28 
Hallo,

ich gehe einmal davon aus, Du willst Dein Programm verkleinert in der Taskbar anzeigen.
Folgende Zeilen benötigts Du dazu:
ausblenden Quelltext
1:
2:
  Application.ShowMainForm:=False;
  ShowWindow(Application.Handle, SW_HIDE);

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
lkz633 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 136

WinXP, Suse Linux 8.2 (unter VMWare)
D7 Prof, K3 Prof
BeitragVerfasst: Mo 06.01.03 17:33 
Jack Falworth hat folgendes geschrieben:
wie wärs, wenn du es nicht ins OnShow ereignis der Form schreibst


genau das ist ja eben nicht erlaubt bzw nicht möglich

Mein Problem hat sich aber erledigt, ich danke für alle Antworten

Gruss lkz633