关键字:dialog.对话框.resizable
【程序编程相关:检查RS232(串口)是否接有设备 】1.问题的提出 【推荐阅读:在非XP操作系统下模拟的LockWork】
【扩展信息:eMag-delphi 進展3 】问题来自stanley_xu,希望得到只有关闭按钮(还可以有帮助),左上也没有程序的图标并且能够更改窗口大小的对话框.vcl中为tform设置了borderstyle与bordericons属性,用以简化窗口样式的设置(否则就要调用setwindowlong与getwindowlong等api函数).tformborderstyle与tbordericon的定义与说明如下:value meaning
bsdialog not resizable; standard dialog box border//不能改大小 bssingle not resizable; single-line border bsnone not resizable; no visible border line bssizeable standard resizable border bstoolwindow like bssingle but with a smaller caption bssizetoolwin like bssizeable with a smaller captiontype tbordericon = (bisystemmenu, biminimize, bimaximize, bihelp);
tbordericons = set of tbordericon;value meaning
bisystemmenu the form has a control menu (also known as a system menu). biminimize the form has a minimize button bimaximize the form has a maximize button bihelp if borderstyle is bsdialog or biminimize and bimaximize are excluded, a question mark appears in the forms title bar and when clicked, the cursor changes to crhelp; otherwise,no question mark appears.... 下一页