Op Fri, 08 Apr 2011 23:56:31 +0300 schreef Martyn Hill
<[email protected]>:
Whilst I suspect that there is no 'simple' way to make an SBasic job
work with the PE - i.e. able to move #0/1/2 windows and put to sleep in
QPAC2 frame - without going the whole hog of making a PE compliant
application, but none-the-less wondered if someone could devise and
share a basic HowTo on the process.
I think I've read most of the PE documentation out there but I'm still
at a loss to understand just what is required to be able to manipulate
an SBasic Job (0 or daughter SBasic jobs) with the PE.
I run QPC2 with QPAC2 and would invoke my copy of QDT more if I could
tame SBasic windows in this way.
To Sleep I use the following line:
ERT HOT_THING('$','Button_Sleep')
This puts any current job like Job 0 or Xchange, into the button frame on
ALT '$'. Make sure you use a hotkey that is not used by the job itself.
To Move, the commands WTV & WMON can be used to move the windows in SMSQ/E.
WTV ,40,40 will move the Basic windows to that position.
This only works on these standard window definitions.
If you defined non standard size windows this will not work.
I don't know of any command to do the same with any current window.
One way might be to find the exact window positions in the screen memory,
then use PEEK$ to store the windows as a PIC file.
Next close the windows and reopen at the new position and restore the PIC
over it with POKE$.
Execute this from the SBasic to move it.
I have not fully worked this out yet, it may be more complicated.
Bob
--
The BSJR QL software site at: http://members.chello.nl/b.spelten/ql/
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm