Changeset 108 for trunk/src


Ignore:
Timestamp:
Jun 24, 2008, 10:50:47 PM (17 years ago)
Author:
lpino
Message:

(Control.java) - Fixed position of popup and deleted some comments from the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java

    r106 r108  
    472472
    473473//@@TODO (dmik): debug code, remove when no more necessary
    474 System.out.println (
    475     "Control.createHandle(): Window has been created:\n" +
    476     "    hwnd = " + Integer.toHexString (handle) + "\n" +
    477     "    hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" +
    478     "    class = " + windowClass() + "\n" +
    479     "    style = " + Integer.toHexString (widgetStyle())
    480 );
     474//System.out.println (
     475//    "Control.createHandle(): Window has been created:\n" +
     476//    "    hwnd = " + Integer.toHexString (handle) + "\n" +
     477//    "    hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" +
     478//    "    class = " + windowClass() + "\n" +
     479//    "    style = " + Integer.toHexString (widgetStyle())
     480//);
    481481
    482482//@@TODO(dmik): DBCS handling?
     
    31033103    //@@TODO(lpino) First check if this validation applies to OS/2 implementation and then validate using the coordinates of the mouse
    31043104//      if (mp2 != handle) return null;
    3105 //      int parentHandle = OS.WinQueryWindow(menu.handle, OS.QW_PARENT);
    3106       System.out.println("Control:WM_CONTEXTMENU - PARENTHANDLE = " + Integer.toHexString(handle));
    3107       System.out.println("Control:WM_CONTEXTMENU - SHORT1FROMMP = " + OS.SHORT1FROMMP(mp1));
    3108       System.out.println("Control:WM_CONTEXTMENU - SHORT2FROMMP = " + OS.SHORT2FROMMP(mp1));
    31093105      short flOptions = OS.PU_HCONSTRAIN | OS.PU_VCONSTRAIN | OS.PU_KEYBOARD | OS.PU_MOUSEBUTTON1;
    3110       boolean rc = OS.WinPopupMenu(handle, handle, menu.handle, 0, 150, OS.SHORT1FROMMP(mp1), flOptions);
     3106      boolean rc = OS.WinPopupMenu(handle, handle, menu.handle, OS.SHORT1FROMMP(mp1), OS.SHORT2FROMMP(mp1), 0, flOptions);
    31113107      return MRESULT.TRUE;
    31123108}
Note: See TracChangeset for help on using the changeset viewer.