PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] How to indicate the active control?
[WD19] How to indicate the active control?
Iniciado por guest, 03,dic. 2014 13:50 - 4 respuestas
Publicado el 03,diciembre 2014 - 13: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
Ola
Publicado el 03,diciembre 2014 - 14:00
Hi Ola

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

Best regards
Publicado el 03,diciembre 2014 - 14:12
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
Ola
Publicado el 03,diciembre 2014 - 14:26
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
Publicado el 03,diciembre 2014 - 14:36
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
Ola