![]() So you see why Bill says the dialog box is its own master. Dialog box sixzes are dialog units converted to pixels. ![]() Poits are mapped to twips and convert to pixels. Screen resolution controls dialog usnits. The standard is 1440 per inch.ĭialog boxes are disaplyed and managed in dialog units. Without geting into the details twips are what detemines font placement. I believe this may also be set by the 'twips' setting and the font chosen for th MB. On XP the limirt omn one system is 115 characters. Just use an HTML window.Ī little testing shows that the output is limited on WIn7 to 71 characters. You can use WMI to return the disaply dimensions and use that to contro l you line width but it is really a waste of time. Ideally you would migrate to PowerShell which can display custom forms.įor outputs with very short lines your only limit is the vertical display dimmensions. If you want complex messages like reports to display you should use an HTML output of some kind. Whenthye line is longer than the size of the popup WIndows wil always wrap them unless you have a custom for that is set up to not do that. THe line brask are all ther as you placed them. REduce the lenghts of the lines and it won't wrap. Change the font size to a smaller font and it won't wrap. ![]() Thissi because the lines you are outputting are too long. Microsoft uses vbCrLf to format message boxes virtually everywhere. Under many circumstances this will look OK but on the neer desktop it will look very bad. Msg = "hello somthing user on line one " & vbNeLine & "you have done this" & vbNewLine & " don't do it again" Set shell = CreateObject("WScript.Shell") iTemp = shell.Popup(msg, 30, "Some Title", vbYesNo) The last one of these I did looked like this. The difference in the display with a broken script would make the two systems look different. We do not have the script to llok at so it is likely that the script is not using what is claimed. Libraries are correupt or there is something wrong with the use to teh strin. If it does not work then either teh VBScritp/vbs support We have been using this in VB and V.NET for more than a decade to format simple mesages. Ou absolutely have control over how a message is dispalyed up to and including the use of line breaks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |