Changeset 268
- Timestamp:
- May 7, 2011, 12:57:53 AM (14 years ago)
- 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 92 92 super (parent, style); 93 93 this.parent = parent; 94 // System.out.println("Control::Control-> check 1"); 94 95 createWidget (); 96 // System.out.println("Control::Control-> check 2"); 95 97 } 96 98 … … 471 473 472 474 //@@TODO (dmik): debug code, remove when no more necessary 473 /* System.out.println (475 /* System.out.println ( 474 476 "Control.createHandle(): Window has been created:\n" + 475 477 " hwnd = " + Integer.toHexString (handle) + "\n" + … … 494 496 setForegroundPixel (OS.CLR_DEFAULT); 495 497 setBackgroundPixel (OS.CLR_DEFAULT); 498 // System.out.println("Control::createWidget-> check"); 496 499 } 497 500 … … 1815 1818 background = pixel; 1816 1819 setPresBackground(); 1820 1817 1821 /* 1818 1822 * OS/2 feature. Invalidate children also, because some of them … … 3137 3141 return item.wmDrawChild (mp1, mp2); 3138 3142 } 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; 3141 3150 } 3142 3151 … … 3460 3469 3461 3470 MRESULT WM_MEASUREITEM (int mp1, int mp2) { 3462 System.out.println("Control:WM_MEASUREITEM -> sListBox" + mp1);3463 3471 // MEASUREITEMSTRUCT struct = new MEASUREITEMSTRUCT (); 3464 3472 // OS.MoveMemory (struct, lParam, MEASUREITEMSTRUCT.sizeof); … … 3724 3732 3725 3733 MRESULT 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));3728 3734 int code = callWindowProc (OS.WM_SETFOCUS, mp1, mp2); 3729 3735 Shell shell = getShell (); 3730 3736 3731 3737 boolean gotFocus = OS.SHORT1FROMMP (mp2) > 0; 3732 3733 3738 /* 3734 3739 * It is possible (but unlikely), that application … … 3737 3742 * the activate/deactivate events. 3738 3743 */ 3739 if (gotFocus)3744 if (gotFocus) 3740 3745 sendEvent (SWT.FocusIn); 3741 3746 else 3742 3747 sendEvent (SWT.FocusOut); 3743 3748 // widget could be disposed at this point 3744 3749 3745 3750 /* … … 3972 3977 } 3973 3978 3974 /*MRESULT WM_FOCUSCHANGE (int mp1, int mp2) {3979 MRESULT WM_FOCUSCHANGE (int mp1, int mp2) { 3975 3980 callWindowProc (OS.WM_FOCUSCHANGE, mp1, mp2); 3976 3981 return MRESULT.ZERO; 3977 3982 } 3978 */ 3983 3979 3984 //@@TODO(lpino): Consider the process in Menu controls and ListBoxes 3980 3985 //MRESULT WM_ADJUSTWINDOWPOS (int mp1, int mp2) { -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java
r237 r268 384 384 if (frameHandle == 0) error (SWT.ERROR_NO_HANDLES); 385 385 //@@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 */ 394 395 FRAMECDATA fcdata = new FRAMECDATA (); 395 396 fcdata.flCreateFlags = widgetFrameFlags (); … … 414 415 state |= CANVAS; 415 416 //@@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 needed417 /* 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 424 425 if (parent == null) return; 425 426 setParent (); -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/TabFolder.java
r197 r268 277 277 if (index == count) return; 278 278 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)) { 280 280 error (SWT.ERROR_ITEM_NOT_REMOVED); 281 281 }
Note:
See TracChangeset
for help on using the changeset viewer.