Declan Mullen wrote:
Hi,
I've got a Base form that contains many controls. Visually it is not
easy to see which control has the focus.
Does anyone know how to get the focused control highlighted in some
way? eg changing the color of the border or background.
Maybe it could be done via a macro that is assigned to the control's
focus events. Unfortunately I know nothing about the ooo API or
macros. If it is possible, can anyone volunteer the code?
Many thanks,
Declan
I believe that I demonstrate how to obtain a control from an event in my
database document (AndrewBase) on the database page of my web site. I do
not have time to check that now, however. Need to run.... If you can not
find, it, try searching the document for "oEvent". For example,
Sub ButtonEventHandler(oEvent)
oEvent.Source 'Control's view model.
oEvent.Source.getModel() 'Control's data model.
End Sub
I do not know what you need to do with the control off hand to do what
you want. You will probably need a handler for gaining focus (to set the
color) and one for losing focus (to clear the color).
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]