荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: zzt (少年仲永), 信区: Program
标  题: DELPHI TIPS(8)
发信站: BBS 荔园晨风站 (Fri Apr 16 18:22:51 1999), 转信

ZDTips brings you another Delphi Tip

http://www.zdtips.com -- Your #1 source for software tips and techniques
*******************************************************************

Today's sponsor:

SPECIAL OFFER! SAVE UP TO $100 ON OLECTRA PRODUCTS IN FEBRUARY!
Save up to $100 when buying either Olectra Chart or Olectra
Resizer with Gold Support and Subscription. Buy them online at:
http://www.klg.com/store or call 1-800-709-2947 today!
For a FREE trial goto http://www.klg.com/olectra/delphi_tips.html
*******************************************************************

This week's Delphi Tip

Make your forms stay on top

When we want to use forms that "StayOnTop", we can use Delphi's "FormStyle"
form property to define our form as the topmost form. However, using this
method, we have to get used to the form flashing while it sets the new mode.
Here is a bit of API power that will make your forms stay on top of things,
without the annoying blinking:

SetWindowPos(Form1.handle, HWND_TOPMOST,
Form1.Left, Form1.Top, Form1.Width, Form1.Height,0);

Replace "Form1" with the name of your form, and this call does the trick.
If you want your form back to the normal, non-topmost style, use this call:

SetWindowPos(Form1.handle, HWND_NOTOPMOST,
Form1.Left, Form1.Top, Form1.Width, Form1.Height,0);

From--Eric Fortier [http://pages.infinit.net/tlc/software]

For a preview issue of the Delphi Developer's Journal, simply fill
out the form at:

http://www.zdjournals.com/forms/ddj/cuvw79.htm
*******************************************************************

Tips and suggestions can be sent to

delphi_dev@zdjournals.com

We'll print your name and your e-mail or Web address, along with the tip.
*******************************************************************

This weekly tip is delivered to you as a free service from ZDTips.
To unsubscribe from a particluar tip (or tips) list go to

http://www.zdtips.com/unsub/

Type in the e-mail address and name you used to sign up for your tips and
then click unsubscribe.
*******************************************************************

ZDTips (TM) is a trademark of Ziff-Davis Inc. Copyright ?1997
Ziff-Davis Inc. All rights reserved. Reproduction in whole or in part
in any form or medium without express written permission of Ziff-Davis
is prohibited.


--



日出东方,唯我不败;
    天上地下,唯我独尊。

※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.1.143]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店