Added a sample project. Updated README to include a link to the Pokémon GO IV calculator as an example project.
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
# Strings for Dialog Library SampleProject
|
||||
0.MyDialog.HelpText=
|
||||
1.MyDialog.Title=Dinner Choices
|
||||
2.MyDialog.Label1.HelpText=
|
||||
3.MyDialog.Label1.Label=Dinner:
|
||||
4.MenuList1.StringItemList=Beef
|
||||
5.MenuList1.StringItemList=Pork
|
||||
6.MenuList1.StringItemList=Chicken
|
||||
7.MenuList1.StringItemList=Fish
|
@ -0,0 +1,9 @@
|
||||
# Strings for Dialog Library SampleProject
|
||||
0.MyDialog.HelpText=
|
||||
1.MyDialog.Title=\u9910\u9EDE\u9078\u64C7
|
||||
2.MyDialog.Label1.HelpText=
|
||||
3.MyDialog.Label1.Label=\u9910\u9EDE\uFF1A
|
||||
4.MenuList1.StringItemList=\u725B\u8089
|
||||
5.MenuList1.StringItemList=\u8C6C\u8089
|
||||
6.MenuList1.StringItemList=\u96DE\u8089
|
||||
7.MenuList1.StringItemList=\u9B5A\u8089
|
17
sample-project/oxt/SampleProject/MyDialog.xdl
Normal file
17
sample-project/oxt/SampleProject/MyDialog.xdl
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="MyDialog" dlg:left="200" dlg:top="100" dlg:width="100" dlg:height="35" dlg:help-text="&0.MyDialog.HelpText" dlg:closeable="true" dlg:moveable="true" dlg:title="&1.MyDialog.Title">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="Label1" dlg:tab-index="0" dlg:left="5" dlg:top="6" dlg:width="45" dlg:height="8" dlg:help-text="&2.MyDialog.Label1.HelpText" dlg:value="&3.MyDialog.Label1.Label"/>
|
||||
<dlg:menulist dlg:id="MenuList1" dlg:tab-index="1" dlg:left="50" dlg:top="4" dlg:width="45" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="&4.MenuList1.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&5.MenuList1.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&6.MenuList1.StringItemList"/>
|
||||
<dlg:menuitem dlg:value="&7.MenuList1.StringItemList"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:button dlg:id="CommandButton1" dlg:tab-index="2" dlg:left="5" dlg:top="19" dlg:width="40" dlg:height="12" dlg:default="true" dlg:button-type="ok"/>
|
||||
<dlg:button dlg:id="CommandButton2" dlg:tab-index="3" dlg:left="55" dlg:top="19" dlg:width="40" dlg:height="12" dlg:button-type="cancel"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
14
sample-project/oxt/SampleProject/MyModule.xba
Normal file
14
sample-project/oxt/SampleProject/MyModule.xba
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="MyModule" script:language="StarBasic">' MyModule: The main module of the sample project
|
||||
' by imacat <imacat@mail.imacat.idv.tw>, 2017-08-01
|
||||
|
||||
Option Explicit
|
||||
|
||||
' Main: The main program
|
||||
Sub Main
|
||||
|
||||
MsgBox "OK"
|
||||
|
||||
End Sub
|
||||
</script:module>
|
5
sample-project/oxt/SampleProject/dialog.xlb
Normal file
5
sample-project/oxt/SampleProject/dialog.xlb
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
|
||||
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="SampleProject" library:readonly="false" library:passwordprotected="false">
|
||||
<library:element library:name="MyDialog"/>
|
||||
</library:library>
|
5
sample-project/oxt/SampleProject/script.xlb
Normal file
5
sample-project/oxt/SampleProject/script.xlb
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
|
||||
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="SampleProject" library:readonly="false" library:passwordprotected="false">
|
||||
<library:element library:name="MyModule"/>
|
||||
</library:library>
|
Reference in New Issue
Block a user