Lazarus
Programming => LCL => Topic started by: madref on July 28, 2021, 10:27:20 am
-
Maybe a silly question.
But is there a replacement component for TMemo?
-
Why do you need it?
Do you need something that TMemo does not provide?
Some other reason?
Is e.g. TSynEdit usefull for you?
Bart
-
I have a form which contains a 2 images, a memo and a TColorSpeedButton (from BGRA component)
I also use these buttons on a different form where they work as they should do.
Now on my form when the TMemo has control the hover-color change does not work on the button on this form.
And one way or another I can't change the focus on this form.
-
I just made a quick test with a memo and a normal TButton and it works as it should (using OnMouseEnter/OnMouseLeave). Laz/FPC 2.0.12/3.2.0 (x86_64 Linux-gtk).
Might be a problem specific to MacOS (assuming, from your signature, that you're on a Mac) or a queer interaction with BGRA controls? Or something in your code?
-
Yes I am using a Mac
I have included a small example program with the actual forms.
The only buttons that work on the ribbon are [Referee Database Exit] [Referee Database Information]
When you press the [Exit]-button on the ribbon en you move your mouse over [No] the button changes color. When you press it it changes to another color.
When I Try to do that in the Information Form it does NOT WORK...
Any suggestions
-
Attachment 2
Could not upload them in same post
-
I tried it and it changes color (on hover and on click) in Windows 10.
I couldn't run your example directly, so I created new project and added your files in it.
-
I know that the code is good....
But still something is wrong and I don't know what
-
I have noticed a strange behavior.
When I completely scroll down in my TMemo field and then go over my button it works like a charm.
So what is the problem?