Problem with highlight tool and fontcolor
Problem with highlight tool and fontcolor
I've created an editor and for some reason the two tools that allow highlighting and fontcolor (set to RVETextrvActionFontColor1 and RVETextrvActionFontBackColor1) aren't working. When I click on either, the entire toolbar becomes inactive.
Sorry I'm a newbie with Delphi and having a problem figuring out what I'm doing wrong. All other tools work (underline, bullets, etc).
Sorry I'm a newbie with Delphi and having a problem figuring out what I'm doing wrong. All other tools work (underline, bullets, etc).
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The coloring actions can work in a silent mode, without displaying a color picker.
Assign Action.UserInterface = rvacNone.
When the user clicks the button:
- show your color picker
- assign Action.Color := color picker color
- call Action.ExecuteTarget(Editor)
The only problem is initializing color picker with the color from editor. It could be done with Action.GetCurrentColor method, however, this method is protected. If you need, I can make it public in the next update.
Assign Action.UserInterface = rvacNone.
When the user clicks the button:
- show your color picker
- assign Action.Color := color picker color
- call Action.ExecuteTarget(Editor)
The only problem is initializing color picker with the color from editor. It could be done with Action.GetCurrentColor method, however, this method is protected. If you need, I can make it public in the next update.