http://developer.vectorworks.net/index.php?title=VS:CreateStyledStatic&feed=atom&action=history
VS:CreateStyledStatic - Revision history
2024-03-29T07:11:29Z
Revision history for this page on the wiki
MediaWiki 1.41.0
http://developer.vectorworks.net/index.php?title=VS:CreateStyledStatic&diff=1019&oldid=prev
Root: 1 revision
2013-08-12T14:25:56Z
<p>1 revision</p>
<p><b>New page</b></p><div>{{LocationMain|category=LocationVS|specific=}}<br />
__TOC__<br />
<vwDoc><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<desc><br />
Creates a new static text field control in a dialog layout. Text will have the indicated style.<BR><br />
<BR><br />
To allow the control to size automatically to the text width, pass -1 as the width parameter of the control.<BR><br />
<BR><br />
0 = eStaticTextTypeRegular<BR><br />
1 = eStaticTextTypeCaption<BR><br />
2 = eStaticTextTypeBold, <BR><br />
3 = eStaticTextTypeReduced<BR><br />
<BR><br />
</desc><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<def><br />
<funcDef lang="vs"><br />
PROCEDURE CreateStyledStatic(dialogID:LONGINT; componentID:LONGINT; text:STRING; widthInCharacters:INTEGER; style:INTEGER);<br />
</funcDef><br />
<funcDef lang="py"><br />
def vs.CreateStyledStatic(dialogID, componentID, text, widthInCharacters, style):<br />
return BOOLEAN<br />
</funcDef><br />
</def><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<params><br />
<lineList ident=1><br />
<line><br />
dialogID<br />
LONGINT<br />
<br />
</line><br />
<line><br />
componentID<br />
LONGINT<br />
<br />
</line><br />
<line><br />
text<br />
STRING<br />
<br />
</line><br />
<line><br />
widthInCharacters<br />
INTEGER<br />
<br />
</line><br />
<line><br />
style<br />
INTEGER<br />
Type of this static text control. One of:<br />
<br />
0 = eStaticTextTypeRegular<br />
1 = eStaticTextTypeCaption<br />
2 = eStaticTextTypeBold, <br />
3 = eStaticTextTypeReduced,<br />
101-116 = Custom size, normal<br />
201-216 = Custom size, bold<br />
<br />
<br />
</line><br />
</lineList><br />
</params><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<remark></remark><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<sample><br />
<PRE><br />
PROCEDURE Example;<br />
VAR<br />
dialog1 :INTEGER;<br />
result :INTEGER;<br />
PROCEDURE Dialog_Handler(VAR item :LONGINT; data :LONGINT);<br />
BEGIN<br />
END;<br />
BEGIN<br />
dialog1 := CreateLayout('Example Dialog', FALSE, 'OK', 'Cancel');<br />
CreateEditText(dialog1, 4, 'default text', 16);<br />
CreateStyledStatic(dialog1, 5, 'default text', 16, 2);<br />
SetFirstLayoutItem(dialog1, 4);<br />
SetBelowItem(dialog1, 4, 5, 0, 0);<br />
result := RunLayoutDialog(dialog1, Dialog_Handler);<br />
END;<br />
RUN(Example);<br />
</PRE><br />
</sample><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<seeAlso><br />
VS Functions:<br />
[[VS:CreateStaticText]] <br />
</seeAlso><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<version><br />
Availability: from Vectorworks 2013<br />
<br />
</version><br />
<br />
</vwDoc><br />
<br />
[[Category:VS Function Reference|CreateStyledStatic]]<br />
[[Category:VS Function Reference:Dialogs - Modern|CreateStyledStatic]]</div>
Root