mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 09:06:14 +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;
|
cmdEvent: EventTypeSpec;
|
||||||
eventHandler: EventHandlerUPP;
|
eventHandler: EventHandlerUPP;
|
||||||
fontStyle: ControlFontStyleRec;
|
fontStyle: ControlFontStyleRec;
|
||||||
|
psn: ProcessSerialNumber;
|
||||||
begin
|
begin
|
||||||
|
psn.highLongOfPSN:=0;
|
||||||
|
psn.lowLongOfPSN:=kCurrentProcess;
|
||||||
|
TransformProcessType( psn, kProcessTransformToForegroundApplication );
|
||||||
|
setFrontProcess( psn );
|
||||||
status := CreateNewWindow(kDocumentWindowClass,
|
status := CreateNewWindow(kDocumentWindowClass,
|
||||||
(kWindowStandardDocumentAttributes or kWindowStandardHandlerAttribute
|
(kWindowStandardDocumentAttributes or kWindowStandardHandlerAttribute
|
||||||
or kWindowCompositingAttribute),
|
or kWindowCompositingAttribute),
|
||||||
|
Loading…
Reference in New Issue
Block a user