Jump to content


PhilW2

Member Since 17 Oct 2018
Offline Last Active Aug 03 2021 02:30 PM
-----

Posts I've Made

In Topic: NxButton6 disabled look

22 January 2021 - 07:10 PM

Hello Boki,

 

I have found a workround for this issue. 

 

With the NxButton6, I clear the Glyph property, and instead to the Images property add a TImageList with the normal glyph at index 0, and a disabled version at index 1. 

 

Then, in code, to enable the button:

  NxButton61.Enabled := True;
  NxButton61.ImageIndex := 0;

and to disable it:

  NxButton61.Enabled := False;
  NxButton61.ImageIndex := 1;

And this works well. I have used this method and therefore I am not waiting for a fix. 

 

Kind regards,

PhilW


In Topic: NxDBComboBoxColumn6 popup drawn in wrong position

05 January 2021 - 06:05 PM

Hello Boki,

 

It is the current version, v6.6.0.   I didn't know about the hot key combination Alt+AnyKey to dropdown the combobox. It does not dropdown the combobox list for me, either with the AutoDropdown property true or false. Are you thinking of other control, rather than the NxDBComboboxColumn6 control?

 

In the Next Suite v5 any key would dropdown the combobox list - we suggest to our users that they use the spacebar - then with the up and down arrows they can enter and edit information using just the keyboard.

 

This issue may seem a trivial bug, but for users in an office environment, with routine data entry tasks, the ability to use the data grids with the keyboard only (rather than the very slow alternative of keyboard and mouse) is essential. 

 

One other small point: the ListWidth property is ignored when the dropdown list is triggered by the mouse; but it is recognized when the dropdown list is triggered by the keyboard. This may help you in understanding where the code between the two trigger methods diverge. 

 

Best wishes for the new year,

PhilW.


In Topic: NxButton6 disabled look

17 December 2020 - 07:22 PM

Hi Boki,

 

Just found an answer on StackOverflow that *maybe* relevant to this issue:

 

delphi - TButton and TBitBtn, inheritance and ImageList support - Stack Overflow

 

 

 

Now looking at documentation for Delphi 10.4 it seems that there were significant changes in TCustomButton class which introduces additional properties to determine Image Index for different button states essentially allowing any Button to have multiple images for multiple states.

 

 

 

 

This maybe the reason why the disabled image is not visually shown; and why the the issue has just appeared when it was working on earlier Delphi versions.

 

Just a thought,

Kind regards.


In Topic: v5 equivalent events/methods in NextDBGrid6?

15 December 2020 - 01:22 PM

Hi Boki,

 

Yes, it does.   Thanks.

 

PhilW.


In Topic: NxButton6 disabled look

17 November 2020 - 09:47 PM

Hello Boki,

 

Yes please. It is a standard way to show that the button is disabled.  Next Suite 5's TNxButton worked correctly.

 

Thanks in anticipation,

PhilW.