Jump to content


nevel

Member Since 05 Aug 2011
Offline Last Active May 22 2013 03:42 PM
-----

Topics I've Started

TransparentColor for TNextGrid headers?

10 September 2011 - 01:00 PM

Hi,

I'd like to set the TransparentColor for TNextGrid headers, just like I did with the TNxPageControl and TNxButton components.
Unfortunately, I've been unable to find that option. Did I overlook something?

Thanks in advance.

Stacking TNxAlertWindow instances

05 August 2011 - 05:14 PM

If you're interested in stacking TNxAlertWindow windows instead of them waiting for their turn, it looks like you'll have to create a new instance for each message.
At least, that was my conclusion after fiddling around, please correct me if I'm wrong,

So my initial solution was as follows:

procedure TRollupManager.ShowRollup(const AText: String; const AGlyphName: String; const ACheckedIn: Boolean; ABgColor: TColor = clDefault);
begin
FRollup := TNxAlertWindow.Create(nil);
PreparePopup(AText, AGlyphName, ACheckedIn, ABgColor);
FRollup.Popup;
end;

Naturally, this will cause memory leaks, since earlielrTNxAlertWindow instances will loose their reference after others have been instantiated.
However, this can easily be solved by cleaning up each instance using the OnClose event:

FRollup.OnClose := DoRollupClose;

My DoRollupClose event handler looks like this:

procedure TRollupManager.DoRollupClose(Sender: TObject);
begin
TNxAlertWindow(Sender).LargeGlyph.NormalGlyph.FreeImage;
TNxAlertWindow(Sender).SmallGlyph.NormalGlyph.FreeImage;
TNxAlertWindow(Sender).CloseGlyph.NormalGlyph.FreeImage;
TNxAlertWindow(Sender).CloseGlyph.HoverGlyph.FreeImage;
TNxAlertWindow(Sender).Free;
end;

This way, you don't need to maintain a collection of TNxAlertWindow instances or anything similar.
Please note I deliberately don't use the "with" notation, since I'm not a big fan of doing so.

FireMonkey

05 August 2011 - 03:36 PM

Hi,

I recently bought most of your Delphi components, and am very satisfied with the ones I've used so far. Great value for money!

Do you have any plans of converting your components to FireMonkey in future?
I'm still using an older Delphi version (2007) so I don't worry too much, but it would be nice to know.

Cheers,
Robin.