Recent

Author Topic: Radio and Check with no caption still select empty text  (Read 3319 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5529
  • My goal: build my own game engine using Lazarus
Re: Radio and Check with no caption still select empty text
« Reply #15 on: July 25, 2022, 01:53:02 pm »
Because is based on Panels and Timers. But I don't know anything more professional.
"if all you have is a TTimer, everything looks like a CGI."

You mentioned: "if all you have is a TTimer, everything looks like a CGI." Where did you that? Is there any page explaining it?

I am not sure why you think the ToastMessage looks like a CGI. But my guess is it does not have ease in ease out effect. In video editing and graphics animation, ease in ease out is commonly used. I am sure if you can add ease in ease out effect to the ToastMessage, it should be look much better.

I did notice some small problems like don't always execute OnExit event when the mouse is moving fast, especially on Linux ...

Maybe what you meant is this:
https://forum.lazarus.freepascal.org/index.php/topic,37050.msg388249.html#msg388249

You may need to read the thread from the very beginning to fully understand the case.

But what you can tell me about using Panels like Buttons?

Basically using TPanel as the based for creating your new components should be okay. But problem happens if you need to detect fast clicking. Do this to see what I meant:
1. Run MyComponent
2. Click Start
3. Move your mouse pointer to a checkbox
4. Repeatedly click the checkbox multiple times as fast as possible.

Using panel as button should be okay if you do not detect fast mouse clicking. About the mouse enter/leave issue, that isn't panel issue, that is Lazarus-GTK2 widgetset issue.

Gald

  • Full Member
  • ***
  • Posts: 107
Re: Radio and Check with no caption still select empty text
« Reply #16 on: July 25, 2022, 05:21:29 pm »
I get it now. Many Thanks!

You mentioned: "if all you have is a TTimer, everything looks like a CGI." Where did you that?

It was a joke about the proverb:
"if all you have is a hammer, everything looks like a nail".
This means that I'll do anything using this basic component because it's what I know.

Quote
Is there any page explaining it?
https://en.wiktionary.org/wiki/if_all_you_have_is_a_hammer,_everything_looks_like_a_nail
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

 

TinyPortal © 2005-2018