<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>640</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<LanguageCode>en</LanguageCode>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>fabInitialize &quot;Container1&quot;</pageenter>
					<Components>
						<Container id="Container1">
							<left>18px</left>
							<top>16px</top>
							<width>574px</width>
							<height>380px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
						</Container>
						<Slider id="Slider1">
							<left>210px</left>
							<top>405px</top>
							<width>271px</width>
							<height>30px</height>
							<variable>[Deg]</variable>
							<init_value>0</init_value>
							<min>0</min>
							<max>360</max>
							<changing>fabSetProperty &quot;Container1&quot; &quot;Image1&quot; &quot;angle&quot; &quot;[Deg]&quot;
Refresh</changing>
						</Slider>
						<PushButton id="PushButton1">
							<left>16px</left>
							<top>408px</top>
							<width>184px</width>
							<height>40px</height>
							<caption>Load Image from URL</caption>
							<click>fabLoadImage &quot;Container1&quot; &quot;Image1&quot; &quot;https://library.kissclipart.com/20180831/flw/kissclipart-pinwheel-clipart-pinwheel-clip-art-3dedfd3a67eb552a.jpg&quot; 10 10

.As the loading is asynchronous we have to wait
Wait 500

  .Set transformation origin
  fabOriginX &quot;Container1&quot; &quot;Image1&quot; &quot;center&quot;
  fabOriginY &quot;Container1&quot; &quot;Image1&quot; &quot;center&quot;

  fabGetProperty &quot;Container1&quot; &quot;Image1&quot; &quot;height&quot; [tmpHeight]
  If [tmpHeight] &gt;= 380
     SetVar [ratio] 200/[tmpHeight]
     fabScale &quot;Container1&quot; &quot;Image1&quot; [ratio]
  EndIf

  .New position
  fabSetLeft &quot;Container1&quot; &quot;Image1&quot; 300
  fabSetTop &quot;Container1&quot; &quot;Image1&quot; 200

EndWait</click>
						</PushButton>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>640px</width>
							<height>480px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
