Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 18:07

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PlannerControl item drag
PostPosted: 26 Oct 2023, 17:15 
Offline

Joined: 13 Oct 2022, 10:01
Posts: 7
Good evening,
is it possible to prevent items from being dragged with the mouse into a PlannerControl?
Thanks for the replies


Top
 Profile  
 
PostPosted: 08 Nov 2023, 07:04 
Offline

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

Try to use TPlannerControlEh.OnCheckPlannerItemInteractiveChanging event like this.

Code:
procedure TfrFrameOne.PlannerControlEh1CheckPlannerItemInteractiveChanging(
  PlannerControl: TPlannerControlEh; PlannerView: TCustomPlannerViewEh; Item,
  NewValuesItem: TPlannerDataItemEh; var ChangesAllowed: Boolean;
  var ErrorText: string);
begin
  ChangesAllowed := False;
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: No registered users and 68 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