Author Topic: Greyed out controls?  (Read 283 times)

CM630

  • Hero Member
  • *****
  • Posts: 1776
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Greyed out controls?
« on: July 10, 2026, 08:59:18 am »
I am implementing some LabView controls in Lazarus.
LabView does not have Enabled = True/False, it has Disable = Enabled/ Disabled/ Disabled and greyed out.

The attached image shows how grey out looks like (on the left compared with normal view on the right), I wonder if there is a native mutiplatform way to implement it.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

LeP

  • Guest
Re: Greyed out controls?
« Reply #1 on: July 10, 2026, 10:14:08 am »
EDIT: forget me, stupid question, of course you are emulating the controls

Are you emulate those controls in Lazarus or are you linking NI DLL / so / dylib  (or COM) ?
« Last Edit: July 10, 2026, 10:27:46 am by LeP »

CM630

  • Hero Member
  • *****
  • Posts: 1776
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Greyed out controls?
« Reply #2 on: July 10, 2026, 11:34:41 am »
Writing controls in Lazarus, which look and behave like the controls in LabView.
They also shall have the same properties, as long as they make sense outside LV.
There must be some differences in areas where the LV controls are unbearably wrong.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

LeP

  • Guest
Re: Greyed out controls?
« Reply #3 on: July 10, 2026, 12:21:25 pm »
In Windows there are many states of the UI controls, typically:

1) Enabled;
2) Disabled (grayed or faded);
3) Focuesd (when the control is the primary input);
4) Highlight (when the mouse are over);
5) Pressed (temporary or permanent state);

Not all of them are rapresented in all platform or environment.

But 3 of them are normaly always present: Enabled, Disabled, Focused.

What LV rapresent is the normal behaviour. Some rappresentations in some environment of Disabled are not grayed but dimmed.

That 3 states should works in every platform without issues.

In Delphi those states are the same everywhere (except if you use styles of course).

 

TinyPortal © 2005-2018