TextGadget and Mouse Click

Just starting out? Need help? Post your questions and find answers here.
jak64
Enthusiast
Enthusiast
Posts: 639
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

TextGadget and Mouse Click

Post by jak64 »

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?
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: TextGadget and Mouse Click

Post by Caronte3D »

jak64 wrote: Fri Mar 14, 2025 8:28 pm Why isn't the parameter Tess uses in the documentation?
None of the "#SS_" constants are in the documentation, I think because is a Windows only
jak64
Enthusiast
Enthusiast
Posts: 639
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: TextGadget and Mouse Click

Post by jak64 »

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?
User avatar
mk-soft
Always Here
Always Here
Posts: 6315
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: TextGadget and Mouse Click

Post by mk-soft »

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
User avatar
jacdelad
Addict
Addict
Posts: 2029
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: TextGadget and Mouse Click

Post by jacdelad »

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
jak64
Enthusiast
Enthusiast
Posts: 639
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: TextGadget and Mouse Click

Post by jak64 »

Thanks jacdelad and mk-soft
Post Reply