print a Maplet application - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Tools : Maplets/Tools/Print

Maplets[Tools][Print] - print a Maplet application

Calling Sequence

Print(maplet)

Parameters

maplet

-

Maplet application

Description

• 

The Print(maplet) calling sequence prints the XML data structure of a Maplet application.  This function can be used to investigate Maplet applications that do not display properly.  The result can be significantly different from the original Maplet application definition because default value settings are included and simplifications are performed.

Examples

By using the default options, Maplet applications can be written simply.  Note that the following two different Maplet application definitions create the same Maplet application and have the same XML data structure.

withMaplets[Tools]:

withMaplets[Elements]:

maplet1:=MapletHello world!:

Printmaplet1

<Maplet locale='C' onstartup='Maplets_reference_4'>
  <Window enabled='true' layout='Maplets_reference_2' reference='Maplets_reference_1' resizable='true' title='Maplet' visible='true'/>
  <BoxLayout border='false' inset='5' reference='Maplets_reference_2' vertical='false' visible='true'>
    <BoxColumn border='false' hscroll='never' inset='5' spacing='5' visible='true' vscroll='never'>
      <BoxRow border='false' hscroll='never' inset='5' spacing='5' visible='true' vscroll='never'>
        <BoxCell fill='none' hscroll='never' value='Maplets_reference_3' vscroll='never'/>
      </BoxRow>
    </BoxColumn>
  </BoxLayout>
  <Label caption='Hello world!' enabled='true' halign='center' reference='Maplets_reference_3' valign='center' visible='true'/>
  <Action reference='Maplets_reference_4' run='false'>
    <RunWindow window='Maplets_reference_1'/>
  </Action>
</Maplet>

maplet2:=Maplet&apos;onstartup&apos;&equals;_Maplets_reference_4&comma;Window&apos;enabled&apos;&equals;true&comma;&apos;visible&apos;&equals;true&comma;&apos;resizable&apos;&equals;true&comma;&apos;reference&apos;&equals;_Maplets_reference_1&comma;&apos;layout&apos;&equals;_Maplets_reference_2&comma;BoxLayout&apos;border&apos;&equals;false&comma;&apos;visible&apos;&equals;true&comma;&apos;inset&apos;&equals;5&comma;&apos;vertical&apos;&equals;false&comma;&apos;reference&apos;&equals;_Maplets_reference_2&comma;BoxColumn&apos;vscroll&apos;&equals;&apos;never&apos;&comma;&apos;border&apos;&equals;false&comma;&apos;visible&apos;&equals;true&comma;&apos;inset&apos;&equals;5&comma;&apos;hscroll&apos;&equals;&apos;never&apos;&comma;&apos;spacing&apos;&equals;5&comma;BoxRow&apos;vscroll&apos;&equals;never&comma;&apos;border&apos;&equals;false&comma;&apos;visible&apos;&equals;true&comma;&apos;inset&apos;&equals;5&comma;&apos;hscroll&apos;&equals;&apos;never&apos;&comma;&apos;spacing&apos;&equals;5&comma;BoxCell&apos;halign&apos;&equals;center&comma;&apos;valign&apos;&equals;center&comma;&apos;vscroll&apos;&equals;&apos;never&apos;&comma;&apos;hscroll&apos;&equals;&apos;never&apos;&comma;&apos;value&apos;&equals;_Maplets_reference_3&comma;Label&apos;enabled&apos;&equals;true&comma;&apos;halign&apos;&equals;center&comma;&apos;valign&apos;&equals;center&comma;&apos;visible&apos;&equals;true&comma;&apos;reference&apos;&equals;_Maplets_reference_3&comma;&apos;caption&apos;&equals;Hello world!&comma;Action&apos;reference&apos;&equals;_Maplets_reference_4&comma;RunWindow&apos;window&apos;&equals;_Maplets_reference_1&colon;

Printmaplet2

<Maplet locale='C' onstartup='Maplets_reference_4'>
  <Window enabled='true' layout='Maplets_reference_2' reference='Maplets_reference_1' resizable='true' title='Maplet' visible='true'/>
  <BoxLayout border='false' inset='5' reference='Maplets_reference_2' vertical='false' visible='true'>
    <BoxColumn border='false' hscroll='never' inset='5' spacing='5' visible='true' vscroll='never'>
      <BoxRow border='false' hscroll='never' inset='5' spacing='5' visible='true' vscroll='never'>
        <BoxCell fill='none' halign='center' hscroll='never' valign='center' value='Maplets_reference_3' vscroll='never'/>
      </BoxRow>
    </BoxColumn>
  </BoxLayout>
  <Label caption='Hello world!' enabled='true' halign='center' reference='Maplets_reference_3' valign='center' visible='true'/>
  <Action reference='Maplets_reference_4' run='false'>
    <RunWindow window='Maplets_reference_1'/>
  </Action>
</Maplet>

See Also

Maplets[Elements], Maplets[Tools], Overview of Maplet Applications


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam