Author |
Message |
Ken Stiee #1 / 6
|
TDialog.Setname
Can anyone verify that this method exists?? Its in the help file, but I can't find it in the object browser and it won't compile. I don't have my books handy so I can't check there. What I'm trying to do is have the caption change on a dialog box that is being created using TApplication.ExecDialog. Since this is a decended of TDialog, not Twindow, I can't use SetCaption. Any help would be greatly appreciated. -- Views expressed herein are not necessarily the views of Ontrack Computer Systems, Inc. or Ontrack Data Recovery, Inc. ******************************************************************* * Ken Stieers | Minneapolis - 1.800.872.2599 * * AV Research/Apps. Eng. | Los Angeles - 1.800.752.7557 * * Ontrack Computer Systems | Washington, D.C. - 1.800.650.2410 * * Ontrack Data Recovery | London - 0800 24 39 96 * * Eden Prairie, MN | Japan - 81.429.32-6365 * *******************************************************************
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
Patrik Wadstr #2 / 6
|
TDialog.Setname
Quote:
>Path: columba.udac.uu.se!news.mdh.se!news.seinf.abb.se!inquo!vyzynz!newsfeed.conc entric.net!winternet.com!mr.net!news.mr.net!usenet
>Newsgroups: comp.lang.Pascal.borland >Subject: TDialog.Setname >Date: 25 Apr 1996 20:35:56 GMT >Organization: Ontrack Computer Systems >Lines: 24
>NNTP-Posting-Host: flint.ontrack.com >Mime-Version: 1.0 >Content-Type: Text/Plain; charset=US-ASCII >X-Newsreader: WinVN 0.99.7 >Can anyone verify that this method exists?? Its in the help file, but I can't >find it in the object browser and it won't compile. I don't have my books >handy so I can't check there. >What I'm trying to do is have the caption change on a dialog box that is being >created using TApplication.ExecDialog. >Since this is a decended of TDialog, not Twindow, I can't use SetCaption. >Any help would be greatly appreciated.
Hi My TInputTelDialog inherits TDialog and this is the overiding of method SetupWindow: procedure TInputTelDialog.SetupWindow; begin TDialog.SetupWindow; SetWindowText(HWindow, Caption); SetDlgItemText(HWindow, id_NamnInput, BufferNamn); SetDlgItemText(HWindow, id_TelInput, BufferTel); SendDlgItemMessage(HWindow, id_NamnInput, em_LimitText, BufferNamnSize - 1,0); SendDlgItemMessage(HWindow, id_TelInput, em_LimitText, BufferTelSize - 1, 0); end; Send a "ACaption" to Init then do "Caption := ACaption" in the init method. Hope this will help you :-) /Patrik |||||||||| __ __ __________________ < *) ( *> __| |_____ | | | ( ) ____- Say No More!!! | ____ -_______________ _| |______________| |----____|____|____----| | | | | | | |-------------Oooo---------------------| | |_______---__|_ | | ---- Patrik Wadstr?m | |_____------__) | |
| | | | | 018 - 42 08 23 | | | | 070 - 557 03 29 | | | | http://www.csd.uu.se/~s93pwa | |______________________________________|
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
Michael Slac #3 / 6
|
TDialog.Setname
Quote:
> Can anyone verify that this method exists?? Its in the help file, but I can't > find it in the object browser and it won't compile. I don't have my books > handy so I can't check there. > What I'm trying to do is have the caption change on a dialog box that is being > created using TApplication.ExecDialog. > Since this is a decended of TDialog, not Twindow, I can't use SetCaption. > Any help would be greatly appreciated.
SetWindowText(HWindow,'New Caption'); will work. ^^^^^^^ Dialog window handle. Hope it helps, Mike
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
Mike Chap #4 / 6
|
TDialog.Setname
Quote:
>Can anyone verify that this method exists?? Its in the help file, but I can't >find it in the object browser and it won't compile. I don't have my books >handy so I can't check there. >What I'm trying to do is have the caption change on a dialog box that is being >created using TApplication.ExecDialog. >Since this is a decended of TDialog, not Twindow, I can't use SetCaption.
You can use the API function SetWindowText.
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
#5 / 6
|
TDialog.Setname
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
Dr John Stockto #6 / 6
|
TDialog.Setname
Quote:
>>Path: columba.udac.uu.se!news.mdh.se!news.seinf.abb.se!inquo!vyzynz!newsfeed.co
The header of an article should almost never be quoted. Quote: >>Can anyone verify that this method exists?? Its in the help file, but >>I can't >>... >>Any help would be greatly appreciated.
One should quote only enough of the previous article to set one's own reply in context. Quote: >/Patrik > |||||||||| >... > |______________________________________|
There is, for good reasons, a (non-mandatory) convention on News signature lengths; and yours grossly exceeds it. This is a waste of resources; disc space and download time cost real money. The convention is that a signature should consist of no more than FOUR lines, and that it should be preceded by a line containing just "minus minus space" (which good software recognises, for t{*filter*} replies). Of course, no-one much minds a slight excess, if the material is worthwhile and makes reasonably full use of each line; but lines of dashes are pointless, and tall signatures are annoying. --
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
|