[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Problem writing Configs back to xPLHal
- Subject: Problem writing Configs back to xPLHal
- From: Peter Chick
- Date: Wed, 21 Jan 2004 15:05:00 +0000
Hello folks,
Quick question, sorry, long question hopefully a quick answer!
I'm trying to save the current screen position of my OSD app to xPLHal
on exit. But hit a problem, again.
My On_Load code contains:
Call xPL.ConfigsAdd("DISPLAYROWS", "CONFIG", 1)
Call xPL.ConfigsAdd("DISPLAYCOLUMNS", "CONFIG", 1)
Call xPL.ConfigsAdd("DISPLAYPOSX", "RECONF", 1)
Call xPL.ConfigsAdd("DISPLAYPOSY", "RECONF", 1)
Display size is set on initial config, however DISPLAYPOSX and Y need to
be changed dynamically whenever the application exits. I enter the size
of the display (maybe 4 * 20) and initial position of the display100,100
in xplHal and save to configure the device.
xPL_configured Fires and I get the Variables required:
DisplayColumns = xPL.Configs("DISPLAYCOLUMNS")
DisplayRows = xPL.Configs("DISPLAYROWS")
DisplayLastX = Val(xPL.Configs("DISPLAYPOSX"))
DisplayLastY = Val(xPL.Configs("DISPLAYPOSY"))
My exit code consists of
xPL.Configs("DISPLAYPOSX") = OSD.Left
xPL.Configs("DISPLAYPOSY") = OSD.Top
Call xPL.SendConfig
END
And I see in xPL monitor the following ConfigCurrent message:
NEWCONF=DESKTOP195144
INTERVAL=5
GROUP=
FILTER=*.*.*.*.*.*
DISPLAYROWS=4
DISPLAYCOLUMNS=20
DISPLAYPOSX=8725
DISPLAYPOSY=8575
So far so good. I have even checked in the configs folder in xPLHal and
the values have been correctly stored in the .cfg file.
BUT When I reload the app am I getting the Initial DISPLAYPOSX and
DISPLAYPOSY values returned that I set when the device was created
100,100?
I'm sure this is going to be another one of those 'wrong end of the
sitck' moments, but I'm lost.
PS. I've read reference to an xpl.ocx readme somewhere, I haven't been
able to find it (it was not the installs I downloaded). Can anyone
forward me a copy?
Thanks in advance.
Peter
[Non-text portions of this message have been removed]
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|