Hello,
what is the best way to set the Font property of a TEdit control each time if the TEdit is selected (perhaps there is some text selected and one or more TEdit controls at one time) in all selected TEdit controls. Is there an example to do this?
Best wishes
Bernhard
TEdit Control and Font
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
Sorry. It was a missunderstanding. I will try to explain my problem.
The user changes the font style, the font size, the font color or the font name of the selected items. Perhaps with the toolbar or with the menu Character.
Is there a way to react to such actions in one event. So I can use GetSelectionBounds for determing if there are controls selected.
OnSelect is not the right event.
Best wishes and thanks for your support
Bernhard
The user changes the font style, the font size, the font color or the font name of the selected items. Perhaps with the toolbar or with the menu Character.
Is there a way to react to such actions in one event. So I can use GetSelectionBounds for determing if there are controls selected.
OnSelect is not the right event.
Best wishes and thanks for your support
Bernhard
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
This event occurs every time when some action needs a style with certain properties. This even may occurs when applying some change to the selection, or when inserting hyperlink.
If this event is not processed, the default procedure provides this style (creates a new style or returns the existing style with these properties).
This event rarely needs to be used (for example it can be used to prevent reusing of some styles, or to disallow some formatting)
If this event is not processed, the default procedure provides this style (creates a new style or returns the existing style with these properties).
This event rarely needs to be used (for example it can be used to prevent reusing of some styles, or to disallow some formatting)
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: