一个简单得拿不出手但又能很快得分的问题(20分)

  • 主题发起人 主题发起人 我爱PASCAL
  • 开始时间 开始时间

我爱PASCAL

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样让主程序最小化后只在任务栏上看到,不要龟缩到左下角;
 
Raize里有个控件放上去就可以了.
 
TRzTrayIcon is a nonvisual control for managing an icon in the Windows System Tray Notification Area.

Unit

RzTray

Description

This component makes it very easy for developers to create an application that appears in the Windows System Tray Notification Area. Simply drop one of these components on the main form of the application and the program will automatically behave as a system tray program.

To display a popup menu when the tray icon is clicked, simply assign a TPopupMenu component to the PopupMenu property. By default the icon that is displayed is the one associated with the application. However, using the Icons and IconIndex properties, an image list can be used to specify custom icons to be displayed.

TRzTrayIcon also supports displaying balloon style hints over the tray icon. Use the ShowBalloonHint and HideBalloonHint methods.
 
我说的是任务栏,不是系统托盘.
 
看不懂的问题,正常的程序都是你表述的样子。
 
本来就是在系统任务栏上啊,'不要龟缩到左下角'是右下角么?
 
找到原因了,如果你在
procedure TUDPMainForm.FormCreate(Sender: TObject);
中放上这一句:
SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
最小化时它就不会缩成任务栏按纽,因为不显示任务栏按纽了,所以它
龟缩到"桌面"的左下角.即开始按钮的上面.
 
后退
顶部