Jump to content


bosjo

Member Since 03 Dec 2005
Offline Last Active May 16 2021 07:56 PM
-----

Posts I've Made

In Topic: HeaderStyle

15 May 2021 - 07:58 PM

Hi boki,

 

I added two images, one with a version 5 grid with HeaderStyle set to something non-ugly, and the other with the version 6 grid with a header that is not much of a header at all... I would like to have something similar to the version 5 grid, if possible.

 

/bosjo

 


In Topic: SetFocus problem

07 May 2021 - 12:36 PM

If I correctly understood, you are setting Visible to False after user double click on a row inside grid?

Precisely; I write a handler for a doubleclick event in a TNextGrid6, and in that I set Visible := false (after I extract the proper object from the grid and prepared the form for using it) on the grid. After the handler exits, the grid obviously tries to set focus, which doesn't work as it is not Visible anymore.


In Topic: SetFocus problem

07 May 2021 - 11:36 AM

The workaround I used to solve this problem, if anyone is interested, is to set a flag in the doubleclick handler, and do the actual "Visible := false" thingy in a action update. Not particularly beautiful, but it works...