mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 14:46:02 +02:00
* make sure example also works without an application bundle
git-svn-id: trunk@13193 -
This commit is contained in:
parent
7f0631d311
commit
1456e82a6a
@ -111,7 +111,12 @@ var
|
||||
cmdEvent: EventTypeSpec;
|
||||
eventHandler: EventHandlerUPP;
|
||||
fontStyle: ControlFontStyleRec;
|
||||
psn: ProcessSerialNumber;
|
||||
begin
|
||||
psn.highLongOfPSN:=0;
|
||||
psn.lowLongOfPSN:=kCurrentProcess;
|
||||
TransformProcessType( psn, kProcessTransformToForegroundApplication );
|
||||
setFrontProcess( psn );
|
||||
status := CreateNewWindow(kDocumentWindowClass,
|
||||
(kWindowStandardDocumentAttributes or kWindowStandardHandlerAttribute
|
||||
or kWindowCompositingAttribute),
|
||||
|
Loading…
Reference in New Issue
Block a user