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]
Syntax change?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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}
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}
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
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
All PureBasic gadgets (and windows) do have a variable assigned to them:guess you missunderstood me abit, I mean:
"loose the ID of windows and gadgets!" use variable handle instead.
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