Skip to content

v1.02

Compare
Choose a tag to compare
@mikeduglas mikeduglas released this 15 Feb 15:23
· 49 commits to master since this release
  • you can now set properties for "System" variable:
  <action name="SetProp" field="System">
    <property name="notips" value="1"></property>
  </action>
  • events "AlertKey" and "PreAlertKey" can be limited by key pressed.
  • new action "Export" allows to export LIST contents to Excel2007/Html/Xml/Csv formats:
  <!-- Initialize window and controls -->
  <event name="OpenWindow">
    <!-- Assign hots key to ?Browse:1 -->
    <action name="SetProp" field="?Browse:1">
      <property name="Alrt" value="CtrlShiftE"></property>
      <property name="Alrt" value="CtrlShiftH"></property>
      <property name="Alrt" value="CtrlShiftS"></property>
    </action>
  </event>

  <!-- Export ?Browse:1 contents -->
  <event name="alertkey" field="?Browse:1" key="CtrlShiftE">
    <action name="Export" field="?Browse:1" expression="Excel"></action>
  </event>
  <event name="alertkey" field="?Browse:1" key="CtrlShiftH">
    <action name="Export" field="?Browse:1" expression="Html"></action>
  </event>
  <event name="alertkey" field="?Browse:1" key="CtrlShiftS">
    <action name="Export" field="?Browse:1"></action>
  </event>
  • you can now specify "logfile" (on global or procedure level), to automatically log the program behaviour (procedure name, thread, event, field, keycode):
  <global logfile="school.log"/>

Events placed in log file are: EVENT:Accepted, EVENT:AlertKey, EVENT:CloseDown, EVENT:CloseWindow, EVENT:NewSelection, EVENT:OpenWindow.

  • new ACTION:ChangeText - shortcut for SetProp(text) and allows to significally reduce amount of script lines.
    For example, place following block into "Main" procedure, "OpenWindow" event (in this case System{prop:NoTips}=1 will be called only once):
      <!-- Globally disable tooltips -->
      <action name="SetProp" field="System">
        <property name="notips" value="1"></property>
      </action>
      <!-- Using ACTION:ChangeText -->
      <action name="ChangeText" field="?MENU1" expression="&amp;FILE"/>  
  • new "type" attribute for actions used to set properties of all controls with same type at once. See available types in docs\types.txt.
  • new section applied to all procedures in an app.
    Following example sets lineheight to "16" for all lists in entire app:
  <!-- Applied to all procedures -->
  <global>
    <event name="OpenWindow" position="1">

      <!-- Set LineHeight to 16 for all listboxes -->
      <action name="SetProp" type="list">
        <property name="lineheight" value="16"></property>
      </action>
    </event>
  </global>
  • template now generates app-CONTROLS.txt file with type of controls:

Procedure SplashIt
STRING ?String2
STRING ?String3