Page 1 of 1

Posted: Sat Jan 12, 2002 12:41 am
by BackupUser
Restored from previous forum. Originally posted by preacher.

Gooday everyone.

I just want to ask you all what you thing about changing the syntax of many commands from the nummeric identifier to a handle if you know what I mean. Reason for me asking is simply because I don't want to ask fred to do so if there is no support for it amongst the registerd users.
Now on to what I mean:

OpenWindow(0,x,y,width,height etc etc...)
to
hwnd=OpenWindow(x,y,width,height etc etc...)

Startdrawing(windowoutput())
to
startdrawing(hwnd)

and similar to all functions requiering a identifier...

Hope you guys (and girls?!) understand my english...





[Preacher]

Posted: Sat Jan 12, 2002 1:30 am
by BackupUser
Restored from previous forum. Originally posted by PB.
OpenWindow(0,x,y,width,height etc etc...)
to
hwnd=OpenWindow(x,y,width,height etc etc...)
Yes, PureBasic can already do this (ie. accept both ways).


PB - Registered PureBasic Coder

Posted: Sat Jan 12, 2002 10:25 pm
by BackupUser
Restored from previous forum. Originally posted by preacher.

Hi PB

guess you missunderstood me abit, I mean:
"loose the ID of windows and gadgets!" use variable handle instead.

hope that was a bit clearer...




[Preacher]

Posted: Sun Jan 13, 2002 1:03 am
by BackupUser
Restored from previous forum. Originally posted by TronDoc.

I don't want any changes made that will
promote one operating system over another.

I want to be able to program for Amiga, Win and Linux.

the hwnd stuff is windoze specific.....

-jb


elecTRONics DOCtor
I heal your sick equipment!
{btw I did register my PB}

Posted: Sun Jan 13, 2002 10:22 am
by BackupUser
Restored from previous forum. Originally posted by PB.
guess you missunderstood me abit, I mean:
"loose the ID of windows and gadgets!" use variable handle instead.
All PureBasic gadgets (and windows) do have a variable assigned to them:

ButtonGadget(#GadgetNumber,x,y,w,h,text$)

Then, to do stuff with ButtonGadget later, you can just refer to #GadgetNumber.
Using a hwnd (in Windows) is just an optional extra.

PB - Registered PureBasic Coder

Edited by - PB on 13 January 2002 10:56:59