Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3aed234

Browse files
author
Fraser J. Gordon
committed
Merge remote-tracking branch 'upstream/develop' into refactor-syntax_unicode
Conflicts: builder/installer.rev builder/tools_builder.rev engine/src/card.cpp engine/src/lnxstack.cpp engine/src/mac-av-player.mm engine/src/player-platform.cpp engine/src/player-platform.h engine/src/quicktime.cpp engine/src/w32transfer.cpp ide libgraphics/src/utils.cpp
2 parents 9a57dff + 0b15219 commit 3aed234

82 files changed

Lines changed: 868 additions & 498 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

builder/installer.rev

125 Bytes
Binary file not shown.

builder/tools_builder.rev

200 Bytes
Binary file not shown.

docs/dictionary/command/revBrowserSet.xml

Lines changed: 115 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<type>command</type>
55

66
<syntax>
7-
<example>revBrowserSet <i>instanceId</i>, <i>propertyName</i>, <i>propertyValue</i></example>
8-
<example>XBrowser_Set<i> propertyName, propertyValue ,</i>[<i> instanceid </i>]</example>
7+
<example>revBrowserSet <i>instanceId</i>, <i>propertyName</i>,
8+
<i>propertyValue</i></example>
9+
<example>XBrowser_Set<i> propertyName, propertyValue ,</i>[<i> instanceid
10+
</i>]</example>
911
</syntax>
1012

1113
<synonyms>
@@ -16,6 +18,10 @@
1618

1719
<examples>
1820
<example>revBrowserSet tBrowserId, "url", "http://www.runrev.com"</example>
21+
<example><p>answer file "Please choose a file to display"</p><p>if the
22+
result is not "cancel" then</p><p> put it into tFile</p><p> put
23+
revBrowserSet tBrowserID,"url","file://" &amp; tFile </p><p>end
24+
if</p></example>
1925
</examples>
2026

2127
<history>
@@ -48,18 +54,21 @@
4854
</classification>
4955

5056
<references>
51-
<function tag="revBrowserGet">revBrowserGet Function</function>
52-
<function tag="revBrowserOpen">revBrowserOpen Function</function>
53-
<function tag="revBrowserInstances">revBrowserInstances Function</function>
54-
<command tag="revBrowserSnapshot">revBrowserSnapshot Command</command>
55-
<message tag="queryRecordChanged">queryRecordChanged Message</message>
56-
<message tag="browserOver">browserOver Message</message>
57-
<message tag="browserNewInstance">browserNewInstance Message</message>
58-
<message tag="browserNewUrlWindow">browserNewUrlWindow Message</message>
57+
<function tag="revBrowserGet">revBrowserGet function</function>
58+
<function tag="revBrowserOpen">revBrowserOpen function</function>
59+
<function tag="revBrowserInstances">revBrowserInstances
60+
function</function>
61+
<command tag="revBrowserSnapshot">revBrowserSnapshot command</command>
62+
<message tag="queryRecordChanged">queryRecordChanged message</message>
63+
<message tag="browserOver">browserOver message</message>
64+
<message tag="browserNewInstance">browserNewInstance message</message>
65+
<message tag="browserNewUrlWindow">browserNewUrlWindow message</message>
5966
</references>
6067

6168
<description>
62-
<overview>The <b>revBrowserSet</b> command sets the value of the property <i>propertyName</i> to the value <i>propertyValue</i> for the browser specified by the <i>instanceId</i>.</overview>
69+
<overview>The <b>revBrowserSet</b> command sets the value of the property
70+
<i>propertyName</i> to the value <i>propertyValue</i> for the browser
71+
specified by the <i>instanceId</i>.</overview>
6372

6473
<parameters>
6574
<parameter>
@@ -68,75 +77,102 @@
6877
</parameter>
6978
<parameter>
7079
<name>propertyName</name>
71-
<description>The name of the property to set. See below for a full list.</description>
80+
<description>The name of the property to set. See below for a full
81+
list.</description>
7282
<options title="">
7383
<option>
7484
<item>url</item>
75-
<description>The url being displayed by the browser. The default is empty.</description>
85+
<description>The url being displayed by the browser. The default is
86+
empty. The URL can be a web page, beginning "http://", or a local file,
87+
beginning "file://"</description>
7688
</option>
7789
<option>
7890
<item>rect</item>
79-
<description>The rect of the browser object. The default is 0,0,0,0 so it is necessary to set the rect of a newly created browser before it will appear to be visible.</description>
91+
<description>The rect of the browser object. The default is 0,0,0,0
92+
so it is necessary to set the rect of a newly created browser before it will
93+
appear to be visible.</description>
8094
</option>
8195
<option>
8296
<item>selected</item>
83-
<description>The selected text of the browser. The default is empty. Repeatedly setting the selected allows you to iterate through the matches in the browser document. See the note below for more information.</description>
97+
<description>The selected text of the browser. The default is empty.
98+
Repeatedly setting the selected allows you to iterate through the matches in
99+
the browser document. See the note below for more information.</description>
84100
</option>
85101
<option>
86102
<item>messages</item>
87-
<description>Whether the browser sends "advanced" callback messages. See the note below for more information. The default is false.</description>
103+
<description>Whether the browser sends "advanced" callback messages.
104+
See the note below for more information. The default is false.</description>
88105
</option>
89106
<option>
90107
<item>offline</item>
91-
<description>true if the browser should run in offline mode, ie it does not retrieve information from the internet. The default is false.</description>
108+
<description>true if the browser should run in offline mode, ie it
109+
does not retrieve information from the internet. The default is
110+
false.</description>
92111
</option>
93112
<option>
94113
<item>contextmenu</item>
95-
<description>true if the browser should show a right-click context menu. The default is false.</description>
114+
<description>true if the browser should show a right-click context
115+
menu. The default is false.</description>
96116
</option>
97117
<option>
98118
<item>visible</item>
99-
<description>true if the browser is visible. The default is true.</description>
119+
<description>true if the browser is visible. The default is
120+
true.</description>
100121
</option>
101122
<option>
102123
<item>newwindow</item>
103-
<description>true if the browser should allow pages to open new windows. The default is false.</description>
124+
<description>true if the browser should allow pages to open new
125+
windows. The default is false.</description>
104126
</option>
105127
<option>
106128
<item>htmltext</item>
107-
<description>Sets the html source of the document being displayed. The default is empty.</description>
129+
<description>Sets the html source of the document being displayed.
130+
The default is empty.</description>
108131
</option>
109132
<option>
110133
<item>scrollbars</item>
111-
<description>true if the browser should display scrollbars. The default is true.</description>
134+
<description>true if the browser should display scrollbars. The
135+
default is true.</description>
112136
</option>
113137
<option>
114138
<item>showborder</item>
115-
<description>true if the browser should be drawn with a border. The default is false.</description>
139+
<description>true if the browser should be drawn with a border. The
140+
default is false.</description>
116141
</option>
117142
<option>
118143
<item>browser</item>
119-
<description>Which browser should be used. Currently this can be "IE" on Windows and "Safari" on OS X.</description>
144+
<description>Which browser should be used. Currently this can be
145+
"IE" on Windows and "Safari" on OS X.</description>
120146
</option>
121147
<option>
122148
<item>hscroll</item>
123-
<description>The number of pixels to the right that the browser is scrolled. The default is zero.</description>
149+
<description>The number of pixels to the right that the browser is
150+
scrolled. The default is zero.</description>
124151
</option>
125152
<option>
126153
<item>vscroll</item>
127-
<description>The number of pixels down that the browser is scrolled. The default is zero. </description>
154+
<description>The number of pixels down that the browser is scrolled.
155+
The default is zero. </description>
128156
</option>
129157
<option>
130158
<item>instance</item>
131-
<description>Set the active browser instance. This property is deprecated and is only available when using the XBrowser_Set synonym. There is no longer a concept of "active browser instance" as the instance id is required by all revBrowser functions.</description>
159+
<description>Set the active browser instance. This property is
160+
deprecated and is only available when using the XBrowser_Set synonym. There
161+
is no longer a concept of "active browser instance" as the instance id is
162+
required by all revBrowser functions.</description>
132163
</option>
133164
<option>
134165
<item>useragent</item>
135-
<description>MAC ONLY. If propertyValue is non-empty the browser instance uses that string instead of the default for the User-Agent header transmitted to the web server. If propertyValue is empty the browser instance uses the default user agent string (which is determined by the browser the URL that is being requested).</description>
166+
<description>MAC ONLY. If propertyValue is non-empty the browser
167+
instance uses that string instead of the default for the User-Agent header
168+
transmitted to the web server. If propertyValue is empty the browser
169+
instance uses the default user agent string (which is determined by the
170+
browser the URL that is being requested).</description>
136171
</option>
137-
<option>
172+
<option>
138173
<item>windowID</item>
139-
<description>Attaches an instance of a browser to a stack</description>
174+
<description>Attaches an instance of a browser to a
175+
stack</description>
140176
</option>
141177
</options>
142178
</parameter>
@@ -145,7 +181,53 @@
145181
<description>The value to set the property to.</description>
146182
</parameter> </parameters>
147183

148-
<value>The <b>revBrowserSet</b> command puts empty into the result if successful. </value>
149-
<comments><note>The "advanced" callback messages are: <message tag="browserClick">browserClick</message>, <message tag="browserOut">browserOut</message> and <message tag="browserOver">browserOver</message>. These messages are only sent when the "messages" property is set to true. The other callback messages are always sent.<p></p><note>Setting the selected property selects the first instance of that text. Setting the property repeatedly to the same value will cycle through each occurrence of the value. Setting the selected to empty or to a string not present in the current document will reset the selected text, ie subsequently setting the selected to any string will select the first occurrence again. This behavior is similar to that of the <command tag="find">find command</command>.</note><p></p><change>There is a long standing issue with revBrowser that causes browser instances to be lost whenever the stack it is attached to has its window re-created. Previously, cases where this would occur had to be avoided when a browser was present on a stack.</note><p><p>To resolve this problem a new property was added in version 4.5.1 to browser instances &ndash; windowId. The windowId property allows the stack to which a browser instance is attached to be changed after it has been created.</change><p></p><p>If the windowId is set to 0, the browser instance is temporary hidden. If the windowId is set to a valid stack windowId, the browser instance will move to that stack.</p><p></p><p>For example, to toggle the resizable property of a stack hosting a browser use the following code:</p><p></p><p>&#9;revBrowserSet pBrowserId, "windowId", 0</p><p>&#9;set the resizable of stack pBrowserStack to pNewResizeableValue</p><p>&#9;revBrowserSet pBrowserId, "windowId", the windowId of stack pBrowserStack</p><p></p><p><b>Cross Platform Caution</b>: Due to a limitation in the current browser implementation, the behavior of the scrollbars property is slightly different on Windows and OS X. In particular, under OS X, when navigating to a page for the first time after disabling scrollbars, revBrowser won't allow you to turn scrollbars back on. The way to work around this and create a browser that allows scrollbars to be toggled on both platforms is like this:</p><p></p><p>local sBrowserId</p><p></p><p>on browserOpen</p><p> put revBrowserOpen(the windowId of me, http://www.runrev.com) into sBrowserId</p><p> if the platform is MacOS then</p><p> send browserDisableScrollbars to me in 1 second</p><p> else</p><p> revBrowserSet sBrowserId, scrollbars, false</p><p> end if</p><p>end browserOpen</p><p></p><p>on browserDisableScrollbars</p><p> revBrowserSet sBrowserId, scrollbars, false</p><p>end browserDisableScrollbars</p><p></p><p>on browserToggleScrollbars</p><p> revBrowserSet sBrowserId, scrollbars, (not(revBrowserGet(sBrowserId, scrollbars)))</p><p>end browserToggleScrollbars</p><p></p><p></p><note>For general information on using the browser library, see the notes in the <function tag="revBrowserOpen">revBrowserOpen function</function> reference.</note></comments>
184+
<value>The <b>revBrowserSet</b> command puts empty into the result if
185+
successful. </value>
186+
<comments><note> The "advanced" callback messages are: <message
187+
tag="browserClick">browserClick</message>, <message
188+
tag="browserOut">browserOut</message> and <message
189+
tag="browserOver">browserOver</message>. These messages are only sent when
190+
the "messages" property is set to true. The other callback messages are
191+
always sent.<p></note><p></p><note> Setting the selected property selects
192+
the first instance of that text. Setting the property repeatedly to the same
193+
value will cycle through each occurrence of the value. Setting the selected
194+
to empty or to a string not present in the current document will reset the
195+
selected text, ie subsequently setting the selected to any string will
196+
select the first occurrence again. This behavior is similar to that of the
197+
<command tag="find">find
198+
command</command>.</note><p></p><p></p><change>There is a long standing
199+
issue with revBrowser that causes browser instances to be lost whenever the
200+
stack it is attached to has its window re-created. Previously, cases where
201+
this would occur had to be avoided when a browser was present on a
202+
stack.<p></change><p>To resolve this problem a new property was added in
203+
version 4.5.1 to browser instances windowId. The windowId property allows
204+
the stack to which a browser instance is attached to be changed after it has
205+
been created.</p><p></p><p>If the windowId is set to 0, the browser instance
206+
is temporary hidden. If the windowId is set to a valid stack windowId, the
207+
browser instance will move to that stack.</p><p></p><p>For example, to
208+
toggle the resizable property of a stack hosting a browser use the following
209+
code:</p><p></p><p>&#9;revBrowserSet pBrowserId, "windowId", 0</p><p>&#9;set
210+
the resizable of stack pBrowserStack to
211+
pNewResizeableValue</p><p>&#9;revBrowserSet pBrowserId, "windowId", the
212+
windowId of stack pBrowserStack</p><p></p><p><b>Cross Platform Caution</b>:
213+
Due to a limitation in the current browser implementation, the behavior of
214+
the scrollbars property is slightly different on Windows and OS X. In
215+
particular, under OS X, when navigating to a page for the first time after
216+
disabling scrollbars, revBrowser won't allow you to turn scrollbars back on.
217+
The way to work around this and create a browser that allows scrollbars to
218+
be toggled on both platforms is like this:</p><p></p><p>local
219+
sBrowserId</p><p></p><p>on browserOpen</p><p> put revBrowserOpen(the
220+
windowId of me, http://www.runrev.com) into sBrowserId</p><p> if the
221+
platform is MacOS then</p><p> send browserDisableScrollbars to me in 1
222+
second</p><p> else</p><p> revBrowserSet sBrowserId, scrollbars,
223+
false</p><p> end if</p><p>end browserOpen</p><p></p><p>on
224+
browserDisableScrollbars</p><p> revBrowserSet sBrowserId, scrollbars,
225+
false</p><p>end browserDisableScrollbars</p><p></p><p>on
226+
browserToggleScrollbars</p><p> revBrowserSet sBrowserId, scrollbars,
227+
(not(revBrowserGet(sBrowserId, scrollbars)))</p><p>end
228+
browserToggleScrollbars</p><p></p><p></p><p></p><note> For general
229+
information on using the browser library, see the notes in the <function
230+
tag="revBrowserOpen">revBrowserOpen function</function>
231+
reference.</note><p>&#9;</p></comments>
150232
</description>
151-
</doc>
233+
</doc>

0 commit comments

Comments
 (0)