Jump to content


eikcam

Member Since 12 Oct 2012
Offline Last Active Apr 06 2014 08:28 AM
-----

Topics I've Started

Horizontal Scroll Bar flicker

15 June 2013 - 12:54 PM

Situation
Grid on a form that is aligned to client
HideScrollBar set to True

What happends?
Whenever the form is resized, the grid flickers the horizontal scroll bar.

Fix
Original
procedure TNxCustomGridControl.UpdateHorzScrollBar;
...
if ClientHeight > GetSystemMetrics(SM_CXHSCROLL) then
...
end;

Modified
procedure TNxCustomGridControl.UpdateHorzScrollBar;
...
if ClientHeight > GetSystemMetrics(SM_CXHSCROLL) and not (FHideScrollBar) then
...
end;

Result
The horizontal scroll bar no longer flickers. This is due to it not being processed because it is set to hidden. Why process it if its not being displayed?

Regards,

Dan.

Support for XE4

27 April 2013 - 03:44 AM

Boki,

When will XE4 be supported? Currently installation of NextSuite is not possible due to incompatibilities with XE4.

Regards,

Dan.

Get Cell Color

23 April 2013 - 02:28 PM

Is there a way to get the current color of a cell?

In the CellColoring event I have the following and it does not seem to work;


CellColor := gridHours.Cell[ACol, ARow].ActualColor;

Is where a way to get the color? I have tried a test using the OnCellClick event and displaying the cell color in a msgbox however it does not return the clicked cell color.

Regards,

Dan.

TNxButtonEdit .Click function

23 April 2013 - 09:44 AM

Hi,

How do I simulate a TNxButtonEdit click? I see no function like .Click() or .PerformClick()

Is there a way?

Regards,

Dan.

Rows before Vertical Scrollbar appears

22 April 2013 - 02:50 PM

Is there any property or function that will return the number of rows that can be used on a grid before the vertical scroll bar appears?

I want to only add rows up until the scroll bar would appear.

Cheers,

Dan.