当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 关键字:Dialog、对话框、resizable1、问题的提出问题来自Stanley_Xu,希望得到只有关闭按钮(还可以有帮助),左上也没有程序的图标并且能够更改窗口大小的对话框。
 

 

    摘要:library dbinstall;{ important note about dll memory management: sharemem must be the first unit in your librarys uses clause and your projects (select project-view source) uses clause if your dll expo......
    摘要:unit jisuanqiu; interface uses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; type tform1 = class(tform) button1: tbutton; button2......


Delphi中实现可以更改大小的对话框

关键字: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 caption

type 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.


...   下一页
    摘要:我这有一个对当前页面的设置代码var mmm,nnn,aaa:olevariant;begin mmm:=wdline; nnn:=1; aaa:=wdfieldpage; wordapp.activewindow.activepane.view.seekview :=wdseekcurrentpageheader ; wordapp.selection.move(mmm,nnn); wordap......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE