Full mouse functions in normal Window
Full mouse functions in normal Window
PureBasic already has a powerful set of mouse functions in its built-in mouse library, but for some reason they are not accessible from normal windows. Is there any way around this, and call them from an OpenWindow instead of an OpenScreen? Or maybe from an implementation of OpenWindowedScreen?
Re: Full mouse functions in normal Window
WindowMouseX()
WindowMouseY() ?
WindowMouseY() ?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Full mouse functions in normal Window
Try the new CanvasGadget or this include file : http://www.purebasic.fr/english/viewtop ... 12&t=45830
Re: Full mouse functions in normal Window
PB's WindowMouseX/Y and click/doubleclick states are just not enough. Short of using API calls, we're left with OpenScreen/OpenWindowedScreen, and they use DirectX.
And atomo, your mouse include file is really great, but it entirely depends on the GetAsyncKeyState API function. I believe it works only in Windows. But the CanvasGadget is news to me. If it includes all the mouse events/states, it could be a real solution. Thanks for the info!
And atomo, your mouse include file is really great, but it entirely depends on the GetAsyncKeyState API function. I believe it works only in Windows. But the CanvasGadget is news to me. If it includes all the mouse events/states, it could be a real solution. Thanks for the info!
Re: Full mouse functions in normal Window
Thank you atomo. CanvasGadget is the answer - full mouse handling, keyboard focus and persistent graphics. Any idea on when the final release of PB4.6 will be available?
OFF-TOPIC: Since compilers only "translate" the functions that we use in our code, is it fair to say that buggy functions that are not called would not affect our projects? If CanvasGadget works well, would there be any reason not to use the beta version to build our project releases?
OFF-TOPIC: Since compilers only "translate" the functions that we use in our code, is it fair to say that buggy functions that are not called would not affect our projects? If CanvasGadget works well, would there be any reason not to use the beta version to build our project releases?
Re: Full mouse functions in normal Window
Hi coder14,
if you are looking for full Mouse-Event Support for all Gadgets, you may have a look at atomos 'MouseEvent-Include.
Greetz, PL.
if you are looking for full Mouse-Event Support for all Gadgets, you may have a look at atomos 'MouseEvent-Include.
Greetz, PL.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Re: Full mouse functions in normal Window
PureLust wrote:if you are looking for full Mouse-Event Support for all Gadgets, you may have a look at atomos 'MouseEvent-Include.
Thanks PL - appreciate the pointer.coder14 wrote:And atomo, your mouse include file is really great, but it entirely depends on the GetAsyncKeyState API function. I believe it works only in Windows.