Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 15:16

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 17 Jun 2015, 13:53 
Offline

Joined: 17 Jun 2015, 00:07
Posts: 2
Location: Melbourne - Australia
Hi, Could someone please provide an example of the syntax for RestoreColumnsLayout and SaveColumnsLayout? I would like to save the setting to the current user registry with a key name of Software\AppName\FormName\GridName
Thanks
Colin


Top
 Profile  
 
PostPosted: 11 Oct 2023, 11:30 
Offline

Joined: 11 Oct 2023, 11:29
Posts: 1
// Store the Grid Format ini
Function savegridini (adbgridehnamestr: string; adbgrideh: tdbgrideh): Boolean;
VaR
Inifilenamestr: string;
Begin
Inifilenamestr: = extractfiledir (paramstr (0) + '\' + 'dbgirdconfig. ini ';
Adbgrideh. savegridlayoutini (inifilenamestr, adbgridehnamestr, false );
End;

var
inifilenamestr: string;
restoreparams: tdbgridehrestoreparams;
begin
inifilenamestr: = extractfiledir (paramstr (0 )) + '\' + 'dbgirdconfig. INI ';
adbgrideh. restoregridlayoutini (inifilenamestr, adbgridehnamestr, restoreparams);
end;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 59 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group