Computer Science Canada

Window address

Author:  vlovich [ Sun Jun 01, 2003 6:51 pm ]
Post subject:  Window address

I am looking to see if anyone knows how I can retrieve the address of the window that I use for my program. And if you do, could you also tell me, if you know, where the information about the stuff drawn on the screen starts.

Author:  Mazer [ Sun Jun 01, 2003 7:07 pm ]
Post subject: 

umm...
code:

var win := Window.Open ("graphics:500;500")
put win


is that ok?

Author:  vlovich [ Sun Jun 01, 2003 8:16 pm ]
Post subject: 

no. first of all, the variable simply stores the nth window that's been opened. It doesn't store the actual adress of the window in memory, and that's what i need.

Author:  Dan [ Sun Jun 01, 2003 11:14 pm ]
Post subject: 

i dont think turing could do that, or do that in the wya you whont. there are pointers in truing but i dont think they could be use in that way.

Author:  Martin [ Mon Jun 02, 2003 7:44 am ]
Post subject: 

Try var x : ^defWinID...might work

Author:  Martin [ Mon Jun 02, 2003 7:45 am ]
Post subject: 

Or var x:^winID....(where winID is the window variable that you used)

Author:  Martin [ Mon Jun 02, 2003 7:46 am ]
Post subject: 

Bleh, that doesn't work. Sorry


: