TextGadget and Mouse Click
Hello everyone,
I used Tess's code from 2015 in a program I'm writing (Windows 11 64-bit, PureBasic v6.20).
Here's the link to Tess's code:
https://www.purebasic.fr/english/viewto ... se#p471103
I've been looking for a long time for a way to have a TextGadget that responds to mouse clicks.
Her code is perfect, and I congratulate her for it.
In my program, I use a ScrollArea in which I put several hundred lines. I first used ButtonGadgets, but I couldn't change the colors.
I then used CanvasGadgets, but then the mouse wheel didn't work (which is normal).
Using Tess's code, I've created several hundred TextGadgets, and I can change the text and background colors, of course, but these TextGadgets react to mouse clicks, and what's more, they're fast even with several hundred lines.
Finally, the mouse wheel works to move up or down in the ScrollArea.
Congratulations again to Tess.
Why isn't the parameter Tess uses in the documentation?
TextGadget and Mouse Click
Re: TextGadget and Mouse Click
None of the "#SS_" constants are in the documentation, I think because is a Windows only
Re: TextGadget and Mouse Click
Hello Caronte3D,
That's a shame... I searched for a long time before finding it, especially if you're not an expert on "#SS_" constants.
Do you know where I can find documentation on these constants?
That's a shame... I searched for a long time before finding it, especially if you're not an expert on "#SS_" constants.
Do you know where I can find documentation on these constants?
Re: TextGadget and Mouse Click
MSDN SS_ -> Google
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: TextGadget and Mouse Click
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: TextGadget and Mouse Click
Thanks jacdelad and mk-soft


