diff options
author | Andre Weinand <aweinand> | 2002-10-23 14:28:35 +0000 |
---|---|---|
committer | Andre Weinand <aweinand> | 2002-10-23 14:28:35 +0000 |
commit | f042468080f18053ad1e19119d6315a6df3ab4c1 (patch) | |
tree | 693c5fd64ec19f3e23c88cacb91bd131731945ba /bundles/org.eclipse.swt/Eclipse SWT/carbon/org | |
parent | 56ffaf88b17c1de2cb1c726f53190f3f6474c622 (diff) | |
download | eclipse.platform.swt-f042468080f18053ad1e19119d6315a6df3ab4c1.tar.gz eclipse.platform.swt-f042468080f18053ad1e19119d6315a6df3ab4c1.tar.xz eclipse.platform.swt-f042468080f18053ad1e19119d6315a6df3ab4c1.zip |
added handler for kEventControlHit
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java index e10e1a3148..5d6968d874 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java @@ -1817,6 +1817,11 @@ static String convertToLf(String text) { windowProc(cHandle, SWT.Paint, new MacControlEvent(inEvent, region[0], gccontext[0])); return OS.noErr; + case OS.kEventControlHit: + short[] part= new short[1]; + OS.GetEventParameter(inEvent, OS.kEventParamControlPart, OS.typeControlPartCode, null, 2, null, part); + return windowProc(cHandle, SWT.Selection, new MacControlEvent(cHandle, part[0], true)); + default: System.out.println("Display.handleControlProc: wrong event kind: " + kind); break; |