Components for Delphi and C++ Builder.

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

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 17 Dec 2018, 01:55 
Offline

Joined: 17 Dec 2018, 01:48
Posts: 1
DBGridEh1.Columns[1].EditButton.DropDownFormParams.CheckShowDropDownForm
Error question!!!


Attachments:
1.jpg
1.jpg [ 53.56 KiB | Viewed 925 times ]
2.jpg
2.jpg [ 126.42 KiB | Viewed 925 times ]
3.jpg
3.jpg [ 112.23 KiB | Viewed 925 times ]
Top
 Profile  
 
PostPosted: 28 Dec 2018, 15:46 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

DropDownForm assigned to the property DBGridEh1.Columns [1] .DropDownFormParams.DropDownForm
intended to be called when clicking on the DBGridEh1.Columns [1] button.
And not meant to call from the outside.

However, you can call the Form from an external event using the following code:

type
TAxisBarDropDownFormCallParamsEhCrack = class(TAxisBarDropDownFormCallParamsEh);

Code:
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
  Handled: Boolean;
  CallParams: TAxisBarDropDownFormCallParamsEhCrack;
begin
  CallParams := TAxisBarDropDownFormCallParamsEhCrack(DBGridEh1.Columns[1].EditButton.DropDownFormParams);

  CallParams.FDataLink := DBGridEh1.DataLink;
  CallParams.FField := DBGridEh1.Columns[1].Field;
  CallParams.FOnGetActualDropDownFormProc := nil;
  CallParams.FPlaceBox := nil;
  CallParams.FEditControl := DBGridEh1.InplaceEditor;
  CallParams.FEditControlScreenRect := EmptyRect;
  CallParams.CheckShowDropDownForm(Handled);
end;

_________________
Best regards
EhLib Support Team


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: Google [Bot] and 58 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:  
Powered by phpBB® Forum Software © phpBB Group