http://developer.vectorworks.net/index.php?title=VS:CreateSymbolDisplayControl&feed=atom&action=history
VS:CreateSymbolDisplayControl - Revision history
2024-03-28T12:24:53Z
Revision history for this page on the wiki
MediaWiki 1.41.0
http://developer.vectorworks.net/index.php?title=VS:CreateSymbolDisplayControl&diff=24320&oldid=prev
CBM-c-: fix typo
2020-06-07T09:31:35Z
<p>fix typo</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:31, 7 June 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----------------------------------------------------------------------------------------------------------</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----------------------------------------------------------------------------------------------------------</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><desc></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><desc></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Creates a new symbol display control in the dialog layout. The control displays the specified symbol in the specified rendering mode and view. The actual size of the symbol is not <del style="font-weight: bold; text-decoration: none;">relevent</del>; it is shown as large as possible in the given height and width (the height to width ratio of the symbol is always preserved). To show a blank SymbolDisplay control, use an empty string as the symbolName parameter.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Creates a new symbol display control in the dialog layout. The control displays the specified symbol in the specified rendering mode and view. The actual size of the symbol is not <ins style="font-weight: bold; text-decoration: none;">relevant</ins>; it is shown as large as possible in the given height and width (the height to width ratio of the symbol is always preserved). To show a blank SymbolDisplay control, use an empty string as the symbolName parameter.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{| class="wikitable_c"</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{| class="wikitable_c"</div></td></tr>
</table>
CBM-c-
http://developer.vectorworks.net/index.php?title=VS:CreateSymbolDisplayControl&diff=1035&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 symbol display control in the dialog layout. The control displays the specified symbol in the specified rendering mode and view. The actual size of the symbol is not relevent; it is shown as large as possible in the given height and width (the height to width ratio of the symbol is always preserved). To show a blank SymbolDisplay control, use an empty string as the symbolName parameter.<br />
<br />
{| class="wikitable_c"<br />
|+ Table - Render Modes<br />
! Render Mode !! Constant<br />
|-<br />
| Wireframe<br />
| 0<br />
|-<br />
| Unshaded Polygon<br />
| 2<br />
|-<br />
| Shaded Polygon<br />
| 3<br />
|-<br />
| Shaded Polygon No Lines<br />
| 4<br />
|-<br />
| Final Shaded Polygon<br />
| 5<br />
|-<br />
| Hidden Line<br />
| 6<br />
|-<br />
| Dashed Hidden Line<br />
| 7<br />
|-<br />
| OpenGL<br />
| 11<br />
|-<br />
| Fast RenderWorks<br />
| 12<br />
|-<br />
| Fast RenderWorks with Shadows<br />
| 13<br />
|-<br />
| Final Quality RenderWorks<br />
| 14<br />
|-<br />
| Custom RenderWorks<br />
| 15<br />
|-<br />
| Artistic RenderWorks<br />
| 17<br />
|-<br />
| Sketch<br />
| 18<br />
|}<br />
<br />
{| class="wikitable_c"<br />
|+ Table - Views<br />
! View !! Constant<br />
|-<br />
| Top/Plan<br />
| 2<br />
|-<br />
| Front<br />
| 3<br />
|-<br />
| Back<br />
| 4<br />
|-<br />
| Left<br />
| 5<br />
|-<br />
| Right<br />
| 6<br />
|-<br />
| Top<br />
| 7<br />
|-<br />
| Bottom<br />
| 8<br />
|-<br />
| Right Isometric<br />
| 9<br />
|-<br />
| Left Isometric<br />
| 10<br />
|-<br />
| Right Rear Isometric<br />
| 11<br />
|-<br />
| Left Rear Isometric<br />
| 12<br />
|-<br />
| Bottom Right Isometric<br />
| 13<br />
|-<br />
| Bottom Left Isometric<br />
| 14<br />
|-<br />
| Bottom Right Rear Isometric<br />
| 15<br />
|-<br />
| Bottom Left Rear Isometric<br />
| 16<br />
|}<br />
<br />
</desc><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<def><br />
<funcDef lang="vs"><br />
PROCEDURE CreateSymbolDisplayControl(dialogID:LONGINT; itemID:LONGINT; symbolName:STRING; height:INTEGER; width:INTEGER; margin:INTEGER; renderMode:INTEGER; view:INTEGER);<br />
</funcDef><br />
<funcDef lang="py"><br />
def vs.CreateSymbolDisplayControl(dialogID, itemID, symbolName, height, width, margin, renderMode, view):<br />
return None<br />
</funcDef><br />
</def><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<params><br />
<lineList ident=1><br />
<line><br />
dialogID<br />
LONGINT<br />
The ID of the dialog in which to create the control.<br />
</line><br />
<line><br />
itemID<br />
LONGINT<br />
The item ID of the control.<br />
</line><br />
<line><br />
symbolName<br />
STRING<br />
The name of the symbol to display.<br />
</line><br />
<line><br />
height<br />
INTEGER<br />
The height of the control in pixels.<br />
</line><br />
<line><br />
width<br />
INTEGER<br />
The width of the control in pixels.<br />
</line><br />
<line><br />
margin<br />
INTEGER<br />
The margin bewteen the border of the control and the symbol in pixels.<br />
</line><br />
<line><br />
renderMode<br />
INTEGER<br />
The render mode in which to display the symbol.<br />
</line><br />
<line><br />
view<br />
INTEGER<br />
The view in which to display the symbol.<br />
</line><br />
</lineList><br />
</params><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<sample><br />
==== VectorScript ====<br />
<code lang="pas"><br />
CreateSymbolDisplayControl( 5, 6, 'Chair', 350, 200, 5, 11, 9 );<br />
</code><br />
<br />
This creates a dialog control that displays the symbol called &quot;Chair.&quot; The control is 350 pixels high and 200 pixels wide, with a margin of 5 pixels. The symbol is rendered in OpenGL mode and displayed in a right isometric view.<br />
<br />
<code lang="pas"><br />
PROCEDURE Example;<br />
VAR<br />
dialog1 :INTEGER;<br />
int :INTEGER;<br />
<br />
PROCEDURE dialog1_Handler(VAR item :LONGINT; data :LONGINT);<br />
BEGIN<br />
END;<br />
<br />
BEGIN<br />
dialog1 := CreateLayout('Example', TRUE, 'OK', 'Cancel');<br />
CreateSymbolDisplayControl(dialog1, 4, 'Symbol-1', 128, 128, 0, 11, 9);<br />
SetFirstLayoutItem(dialog1, 4);<br />
int := RunLayoutDialog(dialog1, dialog1_Handler);<br />
END;<br />
RUN(Example);<br />
</code><br />
==== Python ====<br />
<code lang="py"><br />
def dialog1_Handler( item , data ):<br />
pass<br />
<br />
def Example():<br />
dialog1 = vs.CreateLayout('Example', True, 'OK', 'Cancel')<br />
vs.CreateSymbolDisplayControl(dialog1, 4, 'Symbol-1', 128, 128, 0, 11, 9)<br />
vs.SetFirstLayoutItem(dialog1, 4)<br />
int = vs.RunLayoutDialog(dialog1, dialog1_Handler)<br />
Example()<br />
</code><br />
</sample><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<seeAlso><br />
VS Functions:<br />
[[VS:UpdateSymbolDisplayControl]] <br />
</seeAlso><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<version><br />
Availability: from VectorWorks 12.0<br />
<br />
</version><br />
<br />
</vwDoc><br />
<br />
[[Category:VS Function Reference|CreateSymbolDisplayControl]]<br />
[[Category:VS Function Reference:Dialogs - Modern|CreateSymbolDisplayControl]]</div>
Root