Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1233 > unrolled thread

how do I find a window handle?

Started byJohn Rickman Iyonix <rickman@argonet.co.uk>
First post2011-12-31 00:11 +0000
Last post2012-01-05 15:59 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  how do I find a window handle? John Rickman Iyonix <rickman@argonet.co.uk> - 2011-12-31 00:11 +0000
    Re: how do I find a window handle? Steve Drain <steve@kappa.me.uk> - 2011-12-31 10:21 +0000
      Re: how do I find a window handle? John Rickman Iyonix <rickman@argonet.co.uk> - 2011-12-31 12:06 +0000
    Re: how do I find a window handle? Sebastian Barthel <naitsabes@freenet.de> - 2012-01-05 15:59 +0000

#1233 — how do I find a window handle?

FromJohn Rickman Iyonix <rickman@argonet.co.uk>
Date2011-12-31 00:11 +0000
Subjecthow do I find a window handle?
Message-ID<fef0f14952.iyojohn@rickman.argonet.co.uk>
I am trying to write an application using AppBasic and am having a
bit of trouble working out how much I have to code myself and how much 
I can leave to the builtin facilities.

For example my app has three windows which are opened by clicking on 
iconbar menu entries.

I would like to change a display field when the mouse pointer enters
one of the windows. In order to do this I need to know
the window id of the window concerned.

At the moment the system creates the windows
with ToolBoxAutocreated, so don't know the handles.

Is there a way to determine a window handle
for a window that has been auto-created or do I have to
create the windows myself?


-- 
John Rickman Iyonix

[toc] | [next] | [standalone]


#1234

FromSteve Drain <steve@kappa.me.uk>
Date2011-12-31 10:21 +0000
Message-ID<moBLq.67802$925.21472@newsfe16.ams2>
In reply to#1233
On 31/12/2011 00:11, John Rickman Iyonix wrote:
> I am trying to write an application using AppBasic and am having a
> bit of trouble working out how much I have to code myself and how much
> I can leave to the builtin facilities.
>
> For example my app has three windows which are opened by clicking on
> iconbar menu entries.
>
> I would like to change a display field when the mouse pointer enters
> one of the windows. In order to do this I need to know
> the window id of the window concerned.
>
> At the moment the system creates the windows
> with ToolBoxAutocreated, so don't know the handles.
>
> Is there a way to determine a window handle
> for a window that has been auto-created or do I have to
> create the windows myself?

I do not know if AppBasic implements it in itself, but I would use SWI 
Window_GetPointerInfo, which you could use just as it is.

Steve

[toc] | [prev] | [next] | [standalone]


#1235

FromJohn Rickman Iyonix <rickman@argonet.co.uk>
Date2011-12-31 12:06 +0000
Message-ID<ff63334a52.iyojohn@rickman.argonet.co.uk>
In reply to#1234
In message <moBLq.67802$925.21472@newsfe16.ams2>
          Steve Drain <steve@kappa.me.uk> wrote:

....
>> I would like to change a display field when the mouse pointer enters
>> one of the windows. In order to do this I need to know
>> the window id of the window concerned....
>> Is there a way to determine a window handle
>> for a window that has been auto-created or do I have to
>> create the windows myself?

> I do not know if AppBasic implements it in itself, but I would use SWI
> Window_GetPointerInfo, which you could use just as it is.

Yes - PROCWindow_GetPointerInfo(object,component,x,y,buttons) gives 
the window handle and winame$=FNUtils_Object(object) returns the name 
of the window as it appears in the Res file.

Thanks for pointing me in the right direction:-)

john

-- 
John Rickman Iyonix

[toc] | [prev] | [next] | [standalone]


#1265

FromSebastian Barthel <naitsabes@freenet.de>
Date2012-01-05 15:59 +0000
Message-ID<je4hc6$9c6$1@solani.org>
In reply to#1233
Am Sat, 31 Dec 2011 00:11:49 +0000 schrieb John Rickman Iyonix:

> I am trying to write an application using AppBasic ...
> of the windows. In order to do this I need to know the window id of the
> window concerned.
> 
> At the moment the system creates the windows with ToolBoxAutocreated, so
> don't know the handles.

ToolBoxAutocreated Objects should produce an Toolbox Event wich is sent 
back to the Application to inform it about the automatically created 
object (Toolbox_ObjectAutoCreated). This can be checked to get the 
correct handles.

After that the now known handles can be used to check them against 
WimpPoll Event No. 5 wich occurs when the pointer enters a new window.
(Keep in mind, that there is a Pollmask, wich is able to switch this 
function on/off. In AppBasic FNUtils_GetPollMask should be checked if 
PollEvents dosn't work.)

Here is an interesting link for You:
<http://www.mofeel.net/626-comp-sys-acorn-programmer/1382.aspx>

Best regards, Sebastian

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web