Re: [Ql-Users] Auto-hide

2013-04-18 Thread Dilwyn Jones
That was /exactly/ my concern when I asked "how did you do that". As far as I know, in the "classic" PE a ptr read in a background window will just block. With QPTR, this works (on QPC & SMSQmulator) even when bgio is switched off: 100 OPEN_NEW#0,"con" 110 WINDOW#0,0,0,0,0 120 OUTLN#0,0,0,0,0

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Wolfgang Lenerz
Hi, That was /exactly/ my concern when I asked "how did you do that". As far as I know, in the "classic" PE a ptr read in a background window will just block. With QPTR, this works (on QPC & SMSQmulator) even when bgio is switched off: 100 OPEN_NEW#0,"con" 110 WINDOW#0,0,0,0,0 120 OUTLN#0,0

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Tobias Fröschle
Am 17.04.2013 um 17:43 schrieb Marcel Kilgus: > Dilwyn Jones wrote: >> This seems to work with any size of window, haven't tried many sizes though. >> Should work with an Easyptr menu too, though not tried that yet. Only run it >> in BASIC job 0 - intend to try it as an SBASIC job and compiled at

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Marcel Kilgus
Bob Spelten wrote: > The Kilgus system sprites I use are all about 20x20 and have their origin > at the center. > So I have set a margin of SCR_YLIM -10. The arrow is 17px high and has the > origin at 0x0, so needs more margin. Y-direction should be no problem, the sprite can leave the edge of the

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Marcel Kilgus
Dilwyn Jones wrote: > This seems to work with any size of window, haven't tried many sizes though. > Should work with an Easyptr menu too, though not tried that yet. Only run it > in BASIC job 0 - intend to try it as an SBASIC job and compiled at some > point. Only tried it in QPC2 3.34beta3 high c

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Dilwyn Jones
Seems to work on my QPC2, executed as SBasic job. Then you have to open a "con" or "scr" channel, default size will do. Works over the whole width, didn't act on the Escape key though. Esc would only work if my program had the cursor at the time (as I provided no other Quit option). Dilwyn _

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Bob Spelten
Op Wed, 17 Apr 2013 12:26:40 +0200 schreef Dilwyn Jones : Here's my offering for this, using Easyptr in BASIC. Very similar in principle to George's offering, but without the clear window covering the screen. 100 REMark detect pointer at bottom of screen 110 OUTL#0 : REMark "managed windo

Re: [Ql-Users] Auto-hide

2013-04-17 Thread Dilwyn Jones
Here's my offering for this, using Easyptr in BASIC. Very similar in principle to George's offering, but without the clear window covering the screen. 100 REMark detect pointer at bottom of screen 110 OUTL#0 : REMark "managed window" can be any size large enough for pointer 120 REMark Termina

Re: [Ql-Users] Auto-hide

2013-04-16 Thread Marcel Kilgus
Bob Spelten wrote: > It's been done before. > In Cuedark you can assign a corner to act as On switch. > Move the pointer there and the screen saver will be invoked in a few > seconds. > The principle is the same, don't know how it's done however. It directly checks pt_pos in the CON linkage bloc

Re: [Ql-Users] Auto-hide

2013-04-16 Thread George Gwilt
On 16 Apr 2013, at 17:10, Norman Dunbar wrote: > > Does the invisible window cover the whole screen by any chance? If so, what > happens to any other program running "beneath" the invisible window when you > attempt to click on it with the mouse to pick it to the top of the pile? > The windo

Re: [Ql-Users] Auto-hide

2013-04-16 Thread Ralf Reköndt
- Original Message - From: "Norman Dunbar" I remember a program I wrote for Dilwyn some years ago (I can't remember the name of it though!) which opened a full-screen window for some reason, which effectively disabled using the pointer to pick the other running programs. Same with

Re: [Ql-Users] Auto-hide

2013-04-16 Thread Norman Dunbar
Hi George, > By having an invisible window by setting the MSbit of its attributes > in the window definition. This stops the window being cleared so that > you see what's beneath it. Ie it's invisible. Does the invisible window cover the whole screen by any chance? If so, what happens to any ot

Re: [Ql-Users] Auto-hide

2013-04-16 Thread Wolfgang Lenerz
By having an invisible window by setting the MSbit of its attributes in the window definition. This stops the window being cleared so that you see what's beneath it. Ie it's invisible. Very elegant. A 0 sized window will probably do as well. Wolfgang __

Re: [Ql-Users] Auto-hide

2013-04-16 Thread George Gwilt
On 16 Apr 2013, at 16:42, tobias.froesc...@t-online.de wrote: > how did you manage to detect where the pointer is without a window? By having an invisible window by setting the MSbit of its attributes in the window definition. This stops the window being cleared so that you see what's beneath

Re: [Ql-Users] Auto-hide

2013-04-16 Thread tobias.froesc...@t-online.de
>I've just written a small program which has no window that you can see, has no >loose items, or indeed anything at all, except that >it picks master basic (ID >= 0) when the pointer is moved to the top band of the screen. So yes it seems >simple. >Of course you would have to supply to this p

Re: [Ql-Users] Auto-hide

2013-04-16 Thread George Gwilt
On 16 Apr 2013, at 14:03, Dilwyn Jones wrote: > > If the pointer rests at the bottom of the screen (or any edge for that > matter) for a couple of seconds, the program or taskbar (or whatever you use > it for) pops up, even if it was buried under other windows. > > Sounds simple: might be sim

Re: [Ql-Users] Auto-hide

2013-04-16 Thread Bob Spelten
Op Tue, 16 Apr 2013 15:03:28 +0200 schreef Dilwyn Jones : This is a little programming challenge I left with George Gwilt at the Quanta workshop this weekend. I’d like to create something which can behave a bit like an “auto-hide” Windows taskbar, using the pointer environment. If the p

Re: [Ql-Users] Auto-hide

2013-04-16 Thread George Gwilt
On 16 Apr 2013, at 14:03, Dilwyn Jones wrote: > This is a little programming challenge I left with George Gwilt at the Quanta > workshop this weekend. > > I’d like to create something which can behave a bit like an “auto-hide” > Windows taskbar, using the pointer environment. > > If the point

[Ql-Users] Auto-hide

2013-04-16 Thread Dilwyn Jones
This is a little programming challenge I left with George Gwilt at the Quanta workshop this weekend. I’d like to create something which can behave a bit like an “auto-hide” Windows taskbar, using the pointer environment. If the pointer rests at the bottom of the screen (or any edge for that mat