文章分类 -  DELPHI

摘要:I guess we all like the idea of graphics displayed in the "Start" menu of Windows XX. Have you ever wondered is it possible to do custom control drawing with Delphi? Owner Drawing in DelphiOften it wo... 阅读全文
posted @ 2009-11-18 17:08 tonySuen 阅读(711) 评论(0) 推荐(0) 编辑
摘要:A popup menu appears when the user clicks on a control with the right mouse button. Custom PopUp Menu Item Height with GraphicsPopup Menu wih ImagesDrop a TPopupMenu (name "PopupMenu1") on a form. Ass... 阅读全文
posted @ 2009-11-18 17:06 tonySuen 阅读(243) 评论(0) 推荐(0) 编辑
摘要:The BorderIcons property of a Delphi Form is used to determine if a form shows the standard Windows system (control) menu (the one in the title bar of a form) and maximize and minimize buttons. If you... 阅读全文
posted @ 2009-11-18 17:02 tonySuen 阅读(501) 评论(0) 推荐(0) 编辑
摘要:By design, a Delphi form's "Caption" property is drawn by Windows, on the Caption Bar of a window next to the system menu. If you want to add some custom text on the caption bar of a form, without cha... 阅读全文
posted @ 2009-11-18 16:59 tonySuen 阅读(280) 评论(0) 推荐(0) 编辑
摘要:Here's how to show or hide the Windows Tray: [代码] 阅读全文
posted @ 2009-11-18 16:57 tonySuen 阅读(275) 评论(0) 推荐(0) 编辑
摘要:[代码] 阅读全文
posted @ 2009-11-18 16:55 tonySuen 阅读(218) 评论(0) 推荐(0) 编辑
摘要:The BlockInput API function blocks keyboard and mouse input events from reaching applications. Place a Button (name: "Button1") on a form (name: "Form1") and use this code for the button's OnClick eve... 阅读全文
posted @ 2009-11-18 16:54 tonySuen 阅读(239) 评论(0) 推荐(0) 编辑
摘要:[代码] 阅读全文
posted @ 2009-11-18 13:43 tonySuen 阅读(243) 评论(0) 推荐(0) 编辑
摘要:在delphi中有很多系统定义好的光标供我们来使用,但是某些时候我们也希望使用自己的光标来增加程序的趣味性或实用性。下面我就来介绍下怎么使用自己的光标。其主要原理是使用资源文件(*.res),资源文件制作的工具为delphi自带的Image Editor。 1.在开始菜单中找到delphi的安装程序,其中就有Image Editor,打开。 依次为File-New-Resource File,这时... 阅读全文
posted @ 2009-11-17 11:26 tonySuen 阅读(766) 评论(0) 推荐(0) 编辑
摘要:在delphi可以设置窗体是否显示最大化按钮、最小化按钮等,但是没有直接提供一个属性或方法来设置无标题栏的窗体,不过可以通过重载窗体的CreateParams方法来达到这个目的。下面就这个问题代码如下:[代码] 阅读全文
posted @ 2009-11-17 09:59 tonySuen 阅读(312) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示