Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
103 user(s) are online (96 user(s) are browsing Forums)

Members: 2
Guests: 101

Raziel, amigait, more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Need help BougeSouris
Just popping in
Just popping in


See User information
@JosDuchlt

for any language?

If you use Arexx with "Commande GETATTR"

Go to top
Re: Need help BougeSouris
Just can't stay away
Just can't stay away


See User information
@sinisrus
no in c and for any window, (apllication with no arexx port)
I think i am progressing
- i should loop through the windows on a screen after a
scr = LockPubScreen(screenname);
with
win = scr->FirstWindow;
and
win = win->NextWindow;

and check for the attribut

WFLG_WINDOWACTIVE

Once i have the active window's handle i can get its position & sizes
From this the corner positions of left upper, rightupper and rightlower corners can be calculated as first approximations to the system gadgets positions

From there on i need to know the coordinates of the center of the system gadgets. Maybe i'll have to derive them from the previous info & borderheight?

I was under the impression you were ahead of me and following such an approach

Go to top
Re: Need help BougeSouris
Just can't stay away
Just can't stay away


See User information
Apparently the previous approach does not work but i can get the active window simply like this
<code>
ib = LockIBase(0);
wn = ((struct IntuitionBase *)IntuitionBase)->ActiveWindow;
UnlockIBase(ib);
if (wn && wn->Title) strncpy (buff, wn->Title, bfsize);
</code>

Go to top
Re: Need help BougeSouris
Just popping in
Just popping in


See User information
I'm sorry but I'm just the Arexx

Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project