Menu

#1 Preferences Panel Off Screen

open
nobody
None
5
2005-04-29
2005-04-29
Ron
No

I have created a "Price Notification" widget, which has a
peculiar problem on the display of Widget Preferences.
See
https://secure.sinclairoil.com:4430/subia/deskblox_panel
_problem.gif for a screen shot.

This is a tabbed preferences display. I've enclosed the
widget.xml so you can see that everything seems to be
properly defined. I removed the onLoad script in the
meantime to minimize the paste here.

Ron Grimes

<?xml version="1.0" encoding="UTF-8"?>
<widget>

<deskbloxVersion>1.1.0</deskbloxVersion>
<widgetVersion>1.0.0</widgetVersion>
<portability>windows</portability>

<!-- =============== -->
<!-- Window Section \ -->
<!--
=========================================
================ -->
<window>
<title>Sinclair Alerts</title>
<name>main_window</name>
<x>0</x>
<y>0</y>
<width>345</width>
<height>175</height>
<opacity>100</opacity>
<visible>true</visible>
</window>

<!-- ==================== -->
<!-- Preferences Section \ -->
<!--
=========================================
================ -->
<preference>
<name>TabPrefs</name>
<type>tabpane</type>
<x>0</x>
<y>0</y>
<tab>Login Credentials</tab>
<tab>Alert Subscriptions</tab>
<tab>Alert Appearance</tab>
</preference>

<!-- Login Credentials Tab \ -->
<preference>
<name>UserID</name>
<type>text</type>
<title>User ID</title>
<tabName>Login Credentials</tabName>
<defaultValue></defaultValue>
</preference>

<preference>
<name>PIN</name>
<type>password</type>
<title>PIN</title>
<defaultValue></defaultValue>
<tabName>Login Credentials</tabName>
</preference>

<!-- Alert Subscriptions Tab \ -->
<preference>
<name>AlertsE</name>
<type>checkbox</type>
<title>Emergency</title>
<defaultValue>true</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<preference>
<name>AlertsI</name>
<type>checkbox</type>
<title>General Info</title>
<defaultValue>true</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<preference>
<name>AlertsP</name>
<type>checkbox</type>
<title>Prices</title>
<defaultValue>true</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<preference>
<name>AlertsS</name>
<type>checkbox</type>
<title>Supply</title>
<defaultValue>true</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<preference>
<name>DaysToView</name>
<type>popup</type>
<title>Days to View:</title>
<description>Default is '0' (tomorrow's prices).
Select another value to view prices for tomorrow and the
number of days specified prior.</description>
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<defaultValue>0</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<preference>
<name>PollInterval</name>
<type>popup</type>
<title>Auto Update Every:</title>
<description>Auto update alerts every specified
number of minutes. Select '0' to turn off the auto update
feature.</description>
<option>0</option>
<option>5</option>
<option>10</option>
<option>15</option>
<option>20</option>
<option>25</option>
<option>30</option>
<option>45</option>
<option>60</option>
<defaultValue>15</defaultValue>
<tabName>Alert Subscriptions</tabName>
</preference>

<!-- Alert Appearance Tab \ -->
<preference>
<name>FontFamily</name>
<type>popup</type>
<title>Font:</title>
<option>Arial</option>
<option>Arial Black</option>
<option>Comic Sans MS</option>
<option>Courier New</option>
<option>Helvetica</option>
<option>Times New Roman</option>
<option>Verdana</option>
<defaultValue>Arial</defaultValue>
<tabName>Alert Appearance</tabName>
</preference>

<preference>
<name>FontSize</name>
<type>popup</type>
<title>Font Size:</title>
<option>x-small</option>
<option>small</option>
<option>medium</option>
<option>large</option>
<option>x-large</option>
<defaultValue>medium</defaultValue>
<tabName>Alert Appearance</tabName>
</preference>

<preference>
<name>FontColor</name>
<type>popup</type>
<title>Font Color:</title>
<option>black</option>
<option>blue</option>
<option>green</option>
<option>red</option>
<option>white</option>
<option>yellow</option>
<defaultValue>black</defaultValue>
<tabName>Alert Appearance</tabName>
</preference>

<preference>
<name>AlertSound</name>
<type>popup</type>
<title>Alert Sound:</title>
<description>Selected sound will play upon exit
from Widget Preferences panel.</description>
<option>None</option>
<option>Alert 1</option>
<option>Alert 2</option>
<option>Alert 3</option>
<option>Alert 4</option>
<option>Chimes 1</option>
<option>Chimes 2</option>
<option>Text-to-speech</option>
<optionValue>tts</optionValue>
<defaultValue>Alert 1</defaultValue>
<tabName>Alert Appearance</tabName>
</preference>

<preference>
<name>AlertBG</name>
<type>popup</type>
<title>Alert Background:</title>
<option>solid</option>
<option>transparent</option>
<defaultValue>solid</defaultValue>
<tabName>Alert Appearance</tabName>
</preference>

<!-- ======================== -->
<!-- Text and Images Section \ -->
<!--
=========================================
================ -->
<image>
<name>alertbgimage</name>
<source>resources/background.png</source>
<x>0</x>
<y>0</y>
<width>345</width>
<height>175</height>
</image>

<image>
<name>clear</name>
<source>resources/clear.png</source>
<x>88</x>
<y>10</y>
<width>71</width>
<height>25</height>
<opacity>0</opacity>
<tooltip>Clear alerts</tooltip>
<onMouseUp>
<script>
clearAlerts();
</script>
</onMouseUp>
<onMouseEnter>
<script>
focusWidget();
clear.opacity = 100;
</script>
</onMouseEnter>
<onMouseExit>
<script>
if (clear.opacity == 100)
clear.opacity = 50;
</script>
</onMouseExit>
</image>

<image>
<name>refreshnew</name>
<source>resources/new.png</source>
<x>180</x>
<y>10</y>
<width>71</width>
<height>25</height>
<opacity>50</opacity>
<tooltip>Get new alerts</tooltip>
<onMouseUp>
<script>
sCaller = 'new';
retrieveData();
</script>
</onMouseUp>
<onMouseEnter>
<script>
focusWidget();
refreshnew.opacity = 100;
</script>
</onMouseEnter>
<onMouseExit>
<script>
refreshnew.opacity = 50;
</script>
</onMouseExit>
</image>

<image>
<name>refreshtoday</name>
<source>resources/today.png</source>
<x>268</x>
<y>10</y>
<width>71</width>
<height>25</height>
<opacity>50</opacity>
<tooltip>Get all of today's alerts</tooltip>
<onMouseUp>
<script>
sCaller = 'today';
retrieveData('ALL');
</script>
</onMouseUp>
<onMouseEnter>
<script>
focusWidget();
refreshtoday.opacity = 100;
</script>
</onMouseEnter>
<onMouseExit>
<script>
refreshtoday.opacity = 50;
</script>
</onMouseExit>
</image>

<!-- ================ -->
<!-- Actions Section \ -->
<!--
=========================================
================ -->
<action>
<type>onTimer</type>
<interval>60</interval>
<script>
if(bFirstTime || (nUpdateCounter++ >=
preferences.PollInterval.value)) {
if (preferences.PollInterval.value != 0) {
bFirstTime = false;
nUpdateCounter = 0;
sCaller = 'new';
retrieveData();
}
}
</script>
</action>

<action>
<type>onWillChangePreferences</type>
<script>
setPreferencesPanel();
</script>
</action>

<action>
<type>onPreferencesChanged</type>
<script>
resetGlobals();
if ((sAlertSound != preferences.AlertSound.value)
&& (preferences.AlertSound.value.toString().indexOf
('Text-to-Speech')) == -1 )) {
play(getAlertFile());
}
sAlertSound = preferences.AlertSound.value;
</script>
</action>

<action>
<type>onLoad</type>
<script>
</script>
</action>
</widget>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB