Changeset 268


Ignore:
Timestamp:
May 7, 2011, 12:57:53 AM (14 years ago)
Author:
lpino
Message:
  • Little changes
Location:
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets
Files:
3 edited

Legend:

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

    r238 r268  
    9292    super (parent, style);
    9393    this.parent = parent;
     94//    System.out.println("Control::Control-> check 1");
    9495    createWidget ();
     96//    System.out.println("Control::Control-> check 2");
    9597}
    9698
     
    471473
    472474//@@TODO (dmik): debug code, remove when no more necessary
    473 /* System.out.println (
     475/*   System.out.println (
    474476    "Control.createHandle(): Window has been created:\n" +
    475477    "    hwnd = " + Integer.toHexString (handle) + "\n" +
     
    494496    setForegroundPixel (OS.CLR_DEFAULT);
    495497    setBackgroundPixel (OS.CLR_DEFAULT);
     498//    System.out.println("Control::createWidget-> check");
    496499}
    497500
     
    18151818    background = pixel;
    18161819    setPresBackground();
     1820
    18171821    /*
    18181822     *  OS/2 feature. Invalidate children also, because some of them
     
    31373141        return item.wmDrawChild (mp1, mp2);
    31383142    }
    3139 //        System.out.println("Control:WM_DRAWITEM - HANDLE ATOM TABLE = " + Integer.toHexString(OS.WinFindAtom(OS.WinQuerySystemAtomTable(), PSZ.getAtom (OS.WC_MENU))));
    3140       return null;
     3143    if(buffer.toString().equalsIgnoreCase(PSZ.getAtom (OS.WC_SLIDER).toString())){
     3144      Control control = WidgetTable.get (mp1);
     3145//      System.out.println("Control:WM_DRAWITEM - MP1 = " + Integer.toHexString(mp1));
     3146      if (control == null) return null;
     3147      return control.wmDrawChild (mp1, mp2);
     3148    }
     3149     return null;
    31413150}
    31423151
     
    34603469
    34613470MRESULT WM_MEASUREITEM (int mp1, int mp2) {
    3462     System.out.println("Control:WM_MEASUREITEM -> sListBox" + mp1);
    34633471//      MEASUREITEMSTRUCT struct = new MEASUREITEMSTRUCT ();
    34643472//      OS.MoveMemory (struct, lParam, MEASUREITEMSTRUCT.sizeof);
     
    37243732
    37253733MRESULT WM_SETFOCUS (int mp1, int mp2) {
    3726 //    System.out.println("Control::WM_SETFOCUS -> handle = " + Integer.toHexString(mp1));
    3727     // System.out.println("Control::WM_SETFOCUS -> mp2 = " + OS.SHORT1FROMMP (mp2));
    37283734    int code = callWindowProc (OS.WM_SETFOCUS, mp1, mp2);
    37293735    Shell shell = getShell ();
    37303736
    37313737    boolean gotFocus = OS.SHORT1FROMMP (mp2) > 0;
    3732 
    37333738    /*
    37343739    * It is possible (but unlikely), that application
     
    37373742    * the activate/deactivate events.
    37383743    */
    3739     if (gotFocus)
     3744     if (gotFocus)
    37403745        sendEvent (SWT.FocusIn);
    37413746    else
    37423747        sendEvent (SWT.FocusOut);
    3743     // widget could be disposed at this point
     3748// widget could be disposed at this point
    37443749
    37453750    /*
     
    39723977}
    39733978
    3974 /* MRESULT WM_FOCUSCHANGE (int mp1, int mp2) {
     3979MRESULT WM_FOCUSCHANGE (int mp1, int mp2) {
    39753980    callWindowProc (OS.WM_FOCUSCHANGE, mp1, mp2);
    39763981    return MRESULT.ZERO;
    39773982}
    3978  */
     3983
    39793984//@@TODO(lpino): Consider the process in Menu controls and ListBoxes
    39803985//MRESULT WM_ADJUSTWINDOWPOS (int mp1, int mp2) {
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java

    r237 r268  
    384384    if (frameHandle == 0) error (SWT.ERROR_NO_HANDLES);
    385385//@@TODO (dmik): debug code, remove when no more necessary
    386 //System.out.println (
    387 //    "Decorations.createHandle(): WC_FRAME has been created:\n" +
    388 //    "    hwnd = " + Integer.toHexString (frameHandle) + "\n" +
    389 //    "    hwnd.parent = " + Integer.toHexString (hwndParent) + "\n" +
    390 //    "    hwnd.owner = " + Integer.toHexString (hwndOwner) + "\n" +
    391 //    "    class = " + windowFrameClass() + "\n" +
    392 //    "    style = " + Integer.toHexString (widgetFrameStyle())
    393 //);
     386/* System.out.println (
     387    "Decorations.createHandle(): WC_FRAME has been created:\n" +
     388    "    hwnd = " + Integer.toHexString (frameHandle) + "\n" +
     389    "    hwnd.parent = " + Integer.toHexString (hwndParent) + "\n" +
     390    "    hwnd.owner = " + Integer.toHexString (hwndOwner) + "\n" +
     391    "    class = " + windowFrameClass() + "\n" +
     392    "    style = " + Integer.toHexString (widgetFrameStyle())
     393);
     394 */
    394395    FRAMECDATA fcdata = new FRAMECDATA ();
    395396    fcdata.flCreateFlags = widgetFrameFlags ();
     
    414415    state |= CANVAS;
    415416//@@TODO (dmik): debug code, remove when no more necessary
    416 //System.out.println (
    417 //    "Decorations.createHandle(): FID_CLIENT window has been created:\n" +
    418 //    "    hwnd = " + Integer.toHexString (handle) + "\n" +
    419 //    "    hwnd.parent = hwnd.owner = " + Integer.toHexString (frameHandle) + "\n" +
    420 //    "    class = " + windowClass() + "\n" +
    421 //    "    style = " + Integer.toHexString (widgetStyle())
    422 //);
    423 //@@TODO(dmik): do something for MDI windows if needed   
     417/* System.out.println (
     418    "Decorations.createHandle(): FID_CLIENT window has been created:\n" +
     419    "    hwnd = " + Integer.toHexString (handle) + "\n" +
     420    "    hwnd.parent = hwnd.owner = " + Integer.toHexString (frameHandle) + "\n" +
     421    "    class = " + windowClass() + "\n" +
     422    "    style = " + Integer.toHexString (widgetStyle())
     423);
     424 *///@@TODO(dmik): do something for MDI windows if needed   
    424425    if (parent == null) return;
    425426    setParent ();
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/TabFolder.java

    r197 r268  
    277277        if (index == count) return;
    278278        int selectionIndex = itemsID[index];
    279         if (OS.WinSendMsg (handle, OS.BKM_DELETEPAGE, selectionIndex, (short)OS.BKA_TAB) == 0) {
     279        if (!OS.WinSendMsg (handle, OS.BKM_DELETEPAGE, selectionIndex, (short)OS.BKA_TAB)) {
    280280                error (SWT.ERROR_ITEM_NOT_REMOVED);
    281281        }
Note: See TracChangeset for help on using the changeset viewer.