Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 18:51

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 02 Feb 2018, 14:03 
Offline

Joined: 16 Aug 2017, 14:24
Posts: 6
I can't open drop DropDownForm programmatically. I've registered DropDownForm class and when press down arrow on DBGridEh DropDownForm is shown, and then destroyed. So i'cant use just Col->DropDownForm->ShowModal. I've tried to use DropDown() function, but it didn't work. I also tried to call EditButton->Click() function.


Top
 Profile  
 
PostPosted: 05 Feb 2018, 15:28 
Offline

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

If you have
DBGridEh1.Columns[0].EditButton.DropDownFormParams.DropDownFormClassName
assigned
then you can use
DBGridEh1.Columns[0].EditButton.DropDownFormParams.CheckShowDropDownForm(Processed);

to open DropDownForm for Columns[0] TextEditor

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 07 Feb 2018, 07:36 
Offline

Joined: 16 Aug 2017, 14:24
Posts: 6
Thank you for an answer. But it doesn't work. I've to open dropdownform manually first, and then i could open it automatically. Otherwise it throws error: Access violation read of address 0000... When i open it manually (by pressing down arrow button) and then call form programmatically it works pretty good.


Top
 Profile  
 
PostPosted: 14 Feb 2018, 07:30 
Offline

Joined: 16 Aug 2017, 14:24
Posts: 6
Any other suggestions?


Top
 Profile  
 
PostPosted: 21 Aug 2021, 22:50 
Offline

Joined: 21 Aug 2021, 22:42
Posts: 1
Due to the good speed. No help and user's convenience
:?:
CellButtons = <>
DropDownFormParams.AssignBackFieldNames = 'ID;name'
DropDownFormParams.DropDownFormClassName = 'TDDFVendors'
DropDownFormParams.PassParams = pspRecordValuesEh
DynProps = <>
EditButton.DropDownFormParams.AssignBackFieldNames = 'ID;name'
EditButton.DropDownFormParams.DropDownFormClassName = 'TFRAMECUSTOMER'
EditButton.DropDownFormParams.PassParams = pspRecordValuesEh
EditButtons = <>
FieldName = 'ID'
Footers = <>
Title.Caption = 'Vendor|Name'
Width = 145
COPY AND REPLACE TO DFM dbgridEH .Eh


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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