You've already forked lazarus-ccr
TvPlanIt: Avoid windows-like messages in printing routines (fixes crashes in cocoa related to PrintPreview).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8888 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -42,26 +42,23 @@ uses
|
||||
Controls, Dialogs, Forms, ExtCtrls, SysUtils, ImgList, Menus,
|
||||
VpConst, VpSR;
|
||||
|
||||
const
|
||||
{Message base}
|
||||
Vp_First = WM_USER; // $7DF0; {Sets base for all Vp messages}
|
||||
|
||||
const
|
||||
{Custom message types}
|
||||
Vp_PrintFormatChanged = Vp_First + 1; {Print formats have changed}
|
||||
{$IFDEF DELPHI}
|
||||
Vp_DataStoreChanged = Vp_First + 2; {Data Store has changed}
|
||||
Vp_DayViewInit = Vp_First + 3; {Initialize the DayView}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LCL}
|
||||
const
|
||||
GUID_VpWatcher = '{F4199DB4-7051-40E9-8EC1-731B083D723E}';
|
||||
|
||||
type
|
||||
IVpWatcher = interface [GUID_VpWatcher]
|
||||
procedure VpDatastoreChanged;
|
||||
procedure VpPrintFormatChanged;
|
||||
end;
|
||||
{$ELSE}
|
||||
const
|
||||
{Message base}
|
||||
Vp_First = WM_USER; // $7DF0; {Sets base for all Vp messages}
|
||||
{Custom message types}
|
||||
Vp_PrintFormatChanged = Vp_First + 1; {Print formats have changed}
|
||||
Vp_DataStoreChanged = Vp_First + 2; {Data Store has changed}
|
||||
Vp_DayViewInit = Vp_First + 3; {Initialize the DayView}
|
||||
{$ENDIF}
|
||||
|
||||
type
|
||||
{$IF FPC_FullVersion < 30000}
|
||||
|
Reference in New Issue
Block a user