Why not a windowmousebutton command?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by BalrogSoft.
Hi...
Im writting a 3d editor for my 3d engine, and i need a command to read the mouse button on a window, but mouse library is only for screens, and EventType() command is only for gadgets, why not a WindowMouseButton, to know if the mouse button is pushed on a window, without gadgets and windowed screens.
Bye Balrog Soft
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
Hi...
Im writting a 3d editor for my 3d engine, and i need a command to read the mouse button on a window, but mouse library is only for screens, and EventType() command is only for gadgets, why not a WindowMouseButton, to know if the mouse button is pushed on a window, without gadgets and windowed screens.
Bye Balrog Soft
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
EventType() returns:
WindowMouseX() and WindowMouseY() are also available,
so what you want is possible - you just have to use it
the right way.
cya,
...Danilo
(registered PureBasic user)
EventType() returns:
Code: Select all
#PB_EventType_LeftClick : Left mouse button click
#PB_EventType_RightClick : right mouse button click
#PB_EventType_LeftDoubleClick : Left mouse button double click
#PB_EventType_RightDoubleClick : Right mouse button double click
so what you want is possible - you just have to use it
the right way.
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by BalrogSoft.
Bye, Balrog Soft
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
I think EventType is used for gadgets, but i tryed this and dont work...EventType() returns:WindowMouseX() and WindowMouseY() are also available,Code: Select all
#PB_EventType_LeftClick : Left mouse button click #PB_EventType_RightClick : right mouse button click #PB_EventType_LeftDoubleClick : Left mouse button double click #PB_EventType_RightDoubleClick : Right mouse button double click
so what you want is possible - you just have to use it
the right way.
cya,
...Danilo
(registered PureBasic user)
Bye, Balrog Soft
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
-
- 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 Danilo.
>Huh? Don't be like that...
Whats wrong ??
PureBasic is for playing only, when it comes
to professional appz programming.
The Event-Handling is one of the most important
things when you program for a multitasking OS
like MS Windows.
The Event-Handling in PB is totally buggy and
ever has been.
Nice for playing and for some small tools, but
totally useless if you want to do some professional work.
You cant make a nice program in 1 week because
you find some bugs for sure. So you have to wait
for a bugfix... sometimes up to 2 month (next release).
After the next release your source doesnt work anymore
because many other things have changed too.
No problem, you rewrite the whole thing (you have enough time)
and you can see the bug is gone.
But while rewriting you find other bugs and have
to wait again... again... and again.
The compiler is only a small tool for a programmer.
Programming is Art, and the coder has all the wonderful
stuff between his ears.
Programming is translating the ideas and things in brain
into source code. With a good and bugfree compiler you can
make some cool things in a few days.
You sit down and begin to type... and 2 days later you have
4000 lines of source and a nice program ready.
With PureBasic its NOT possible to concentrate on the
important things (the program logic itself), because you
have to search the forum, ask questions and wait for
answers + bugfixes all the time.
Sometimes this is gettin on my nerves...
...especially when sooo simple things dont work.
Yes, you can do EVERYTHING with PB + workarounds.
But you need 3 month for things that others do in 1 week.
(Greetings to Hamburger )
cya,
...Danilo
(registered PureBasic user)
>Huh? Don't be like that...
Whats wrong ??
PureBasic is for playing only, when it comes
to professional appz programming.
The Event-Handling is one of the most important
things when you program for a multitasking OS
like MS Windows.
The Event-Handling in PB is totally buggy and
ever has been.
Nice for playing and for some small tools, but
totally useless if you want to do some professional work.
You cant make a nice program in 1 week because
you find some bugs for sure. So you have to wait
for a bugfix... sometimes up to 2 month (next release).
After the next release your source doesnt work anymore
because many other things have changed too.
No problem, you rewrite the whole thing (you have enough time)
and you can see the bug is gone.
But while rewriting you find other bugs and have
to wait again... again... and again.
The compiler is only a small tool for a programmer.
Programming is Art, and the coder has all the wonderful
stuff between his ears.
Programming is translating the ideas and things in brain
into source code. With a good and bugfree compiler you can
make some cool things in a few days.
You sit down and begin to type... and 2 days later you have
4000 lines of source and a nice program ready.
With PureBasic its NOT possible to concentrate on the
important things (the program logic itself), because you
have to search the forum, ask questions and wait for
answers + bugfixes all the time.
Sometimes this is gettin on my nerves...
...especially when sooo simple things dont work.
Yes, you can do EVERYTHING with PB + workarounds.
But you need 3 month for things that others do in 1 week.
(Greetings to Hamburger )
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
Yes.my actually project took me 2-3 weeks.In VB i would do that in 1 Day.
But in Pure all is under 100KB, in VB the Setup cantains over 5 MB .
So Danilo is absoluty right.My actually project have over 20 Workarounds.
So i can't do a appz without a Windows Callback.
Small Toolz(Including DLL's) and projects ->PureBasic
Bigger appz ->Other Language
Its a long way to the top if you wanna .....CodeGuru
Yes.my actually project took me 2-3 weeks.In VB i would do that in 1 Day.
But in Pure all is under 100KB, in VB the Setup cantains over 5 MB .
So Danilo is absoluty right.My actually project have over 20 Workarounds.
So i can't do a appz without a Windows Callback.

Small Toolz(Including DLL's) and projects ->PureBasic
Bigger appz ->Other Language
Its a long way to the top if you wanna .....CodeGuru
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by BalrogSoft.
Hi to all...
In my opinion, PureBasic is a great language, and im sure that next versions of PB will be better. And i think that is probably make professional programs... im working in a 3d game, and the first attemps are good, and im working in a rpg game, in isometric perspective that is really a scripting language to make rpgs games, and it works very good... and i want to sell this games as shareware when i finish them... One of the things that i love of PB was this forum, you want a command?, post a message and probably in the next version is added this command... Try to make this with other basic language developers, with pb you have a great support from Fred, and this is very good...
Bye, Balrog Soft.
And sorry for my bad english.
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
Hi to all...
In my opinion, PureBasic is a great language, and im sure that next versions of PB will be better. And i think that is probably make professional programs... im working in a 3d game, and the first attemps are good, and im working in a rpg game, in isometric perspective that is really a scripting language to make rpgs games, and it works very good... and i want to sell this games as shareware when i finish them... One of the things that i love of PB was this forum, you want a command?, post a message and probably in the next version is added this command... Try to make this with other basic language developers, with pb you have a great support from Fred, and this is very good...
Bye, Balrog Soft.
And sorry for my bad english.
Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> my actually project took me 2-3 weeks. In VB i would do that in 1 Day.
Visual Basic has over 10 years of development behind it by the world's largest
software company: Microsoft. You can't seriously compare PureBasic with that!
Let's keep things in perspective, okay? Fred is only one man doing his best...
PB - Registered PureBasic Coder
> my actually project took me 2-3 weeks. In VB i would do that in 1 Day.
Visual Basic has over 10 years of development behind it by the world's largest
software company: Microsoft. You can't seriously compare PureBasic with that!
Let's keep things in perspective, okay? Fred is only one man doing his best...
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
> You can't seriously compare PureBasic with that!
> Let's keep things in perspective, okay?
> Fred is only one man doing his best...
You are right - so we cant expect any thing (from PureBasic).
cya,
...Danilo
(registered PureBasic user)
Edited by - Danilo on 27 July 2002 14:35:37
> You can't seriously compare PureBasic with that!
> Let's keep things in perspective, okay?
> Fred is only one man doing his best...
You are right - so we cant expect any thing (from PureBasic).
cya,
...Danilo
(registered PureBasic user)
Edited by - Danilo on 27 July 2002 14:35:37
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
I have not anything against Purebasic.I like Fred and yours(the community who help each other).Pure has he's market - Toolz and small appz (and games of course also)
But if you have to paid for your codings (big appz) its better to code it
in a other language.Too many Topics are missing to create robust Industrial Programms for me.Doubles and Quads cannot realize.Comport-support is only 50%.The Printerrequester is only 10% of that what it should be.Error-handling is totaly missing.Don't think about Objectcoding(ActiveX-COMX) but as you say:
Let's keep things in perspective
i like Pure.It's just for fun and to skill my codings.
Its a long way to the top if you wanna .....CodeGuru
plz understand me correctly:You can't seriously compare PureBasic with that!
Let's keep things in perspective, okay?
Fred is only one man doing his best...
I have not anything against Purebasic.I like Fred and yours(the community who help each other).Pure has he's market - Toolz and small appz (and games of course also)
But if you have to paid for your codings (big appz) its better to code it
in a other language.Too many Topics are missing to create robust Industrial Programms for me.Doubles and Quads cannot realize.Comport-support is only 50%.The Printerrequester is only 10% of that what it should be.Error-handling is totaly missing.Don't think about Objectcoding(ActiveX-COMX) but as you say:
Let's keep things in perspective
i like Pure.It's just for fun and to skill my codings.
Its a long way to the top if you wanna .....CodeGuru
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
I agree with Siggi and Danilo. Sometimes coding in PB can be a hazle. It crashes and you dont know why couse the debugger is calm like a grave.
Fred has many things to do but PB is still a great language!
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
I agree with Siggi and Danilo. Sometimes coding in PB can be a hazle. It crashes and you dont know why couse the debugger is calm like a grave.
Fred has many things to do but PB is still a great language!
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> we cant expect any thing (from PureBasic).
Yes you can. You just have to be patient while the language matures.
What about Visual Basic? You really can't expect anything new from that,
as Microsoft is officially stopping development of it in the near future,
plus the fact that Microsoft doesn't even listen to the wishes of its users.
Be thankful that Fred does listen to us, and fixes our bugs, and adds any
new commands that we request, and so on...
PB - Registered PureBasic Coder
> we cant expect any thing (from PureBasic).
Yes you can. You just have to be patient while the language matures.
What about Visual Basic? You really can't expect anything new from that,
as Microsoft is officially stopping development of it in the near future,
plus the fact that Microsoft doesn't even listen to the wishes of its users.
Be thankful that Fred does listen to us, and fixes our bugs, and adds any
new commands that we request, and so on...
PB - Registered PureBasic Coder
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> Doubles and Quads cannot realize. Comport-support is only 50%. The Printerrequester
> is only 10% of that what it should be. Error-handling is totaly missing.
All these things can be done in a future release -- it's not like they're never
going to happen. It takes time for Fred to update/fix the language, so please
be patient while he does so.
Fred is currently away, probably on holiday. With comments like the above, it
doesn't surprise me if he gets disillusioned and probably wants to just abort
the whole project. We should be encouraging him, not flaming him.
I'm thinking perhaps some of you feel ripped off after paying for PureBasic and
then discovering problems. Fred, if you're reading this from somewhere, then I'd
suggest that the demo version of PureBasic be totally unrestricted except for:
(1) Don't allow creation of EXEs (apps only run in the editor).
(2) Don't allow creation of DLLs (somebody testing wouldn't need this).
(3) Limit number of source lines to 100 or so.
Potential purchasers will therefore not feel ripped off in any way. At the
moment, I personally feel that the demo is far too restricted...
PB - Registered PureBasic Coder
Edited by - PB on 28 July 2002 02:17:38
> Doubles and Quads cannot realize. Comport-support is only 50%. The Printerrequester
> is only 10% of that what it should be. Error-handling is totaly missing.
All these things can be done in a future release -- it's not like they're never
going to happen. It takes time for Fred to update/fix the language, so please
be patient while he does so.
Fred is currently away, probably on holiday. With comments like the above, it
doesn't surprise me if he gets disillusioned and probably wants to just abort
the whole project. We should be encouraging him, not flaming him.
I'm thinking perhaps some of you feel ripped off after paying for PureBasic and
then discovering problems. Fred, if you're reading this from somewhere, then I'd
suggest that the demo version of PureBasic be totally unrestricted except for:
(1) Don't allow creation of EXEs (apps only run in the editor).
(2) Don't allow creation of DLLs (somebody testing wouldn't need this).
(3) Limit number of source lines to 100 or so.
Potential purchasers will therefore not feel ripped off in any way. At the
moment, I personally feel that the demo is far too restricted...
PB - Registered PureBasic Coder
Edited by - PB on 28 July 2002 02:17:38
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
You will always get a PureXXXXX.exe file that you can save and restart.
The only thing Fred could do is a nag screen build in the demo exe or something like that...
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
This is AFAIK not possible because every code is translated to asm and than compiled with nasm - everytime.(1) Don't allow creation of EXEs (apps only run in the editor).
You will always get a PureXXXXX.exe file that you can save and restart.
The only thing Fred could do is a nag screen build in the demo exe or something like that...
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.