Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 6 Monaten
Letzter Beitrag:
vor 3 Jahren, 6 Monaten
Beteiligte Autoren:
Ola, Alexandre Leclerc, Fabrice Harari

[WD19] How to indicate the active control?

Startbeitrag von Ola am 03.12.2014 12:50

How to indicate the active control in a window?

In a normal edit control there is no problem; the field is somehow highlighted indicating that it is ready to take an entry.

Also other controls have some color indication, when mouse is rolled over them.

But how can I indicate the activeness of a spin control, or a combo box etc., when using only the keyboard and not the mouse? By default, there is now indication, when such a control is entered into by tab.

Best regards


Hi Ola

I think that you are looking for the EYE MAGNET options in the filed description

Best regards

von Fabrice Harari - am 03.12.2014 13:00
Hi Fabrice,

Yes, thanks.

Indeed there seems to be the eye magnet setting for some kinds of fields, but not all, for instance not for spin control. So how can I indicate the activeness of a spin control, for example?

Best regards

von Ola - am 03.12.2014 13:12
Hi Ola,

In our application we made a very simple Class that, when declared in a Window, catches all controls "Gain / Loss of focus" events (with the Event() function).

Then when focus is gained, we change the background color of the field, and on loss of focus we set back the previous color. This behaviour can be activated or deactivated by the user and the "highlighter color" personnalized.

We have a small function that check if this is a field we want to manage (based on it's type) and we have an exclusion group that we ignore. (If a control has been put in a group named GR_NoHighlighter, it is ignored.

This solution has proven simple, flexible and works great.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 03.12.2014 13:26
Hi Alexander,

Thanks for the hint.

I found a simple solution for highlighting also the spin control.

This problem exists only in some styles. I found an old style that surrounds the spin control with a dotted line when active. I just select that style for the spin controls and now the activness is clearly visible.

Best regards

von Ola - am 03.12.2014 13:36
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.