Changeset 189 for trunk/src


Ignore:
Timestamp:
Sep 14, 2009, 8:20:44 PM (16 years ago)
Author:
lpino
Message:
  • More details of implementation
File:
1 edited

Legend:

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

    r14 r189  
    699699 * </ul>
    700700 */
    701 //public int getLineHeight () {
    702 //      checkWidget ();
     701public int getLineHeight () {
     702        checkWidget ();
    703703//      int newFont, oldFont = 0;
    704704//      int hDC = OS.GetDC (handle);
     
    710710//      OS.ReleaseDC (handle, hDC);
    711711//      return tm.tmHeight;
    712 //}
     712       
     713        //@@TODO(lpino): Implement MLM_QUERYFONT
     714//        if ((style & SWT.MULTI) != 0){
     715//            FATTRS hFont;
     716//            OS.WinSendMsg (handle, OS.MLM_QUERYFONT, hFont, 0);
     717//        }else{
     718            int hps = this.hps;
     719            if (hps == 0) hps = OS.WinGetPS (handle);
     720            FONTMETRICS fm = new FONTMETRICS();
     721            OS.GpiQueryFontMetrics (hps, FONTMETRICS.sizeof, fm);
     722            return fm.lEmHeight;
     723//        }
     724//        return 0;
     725}
    713726
    714727/**
Note: See TracChangeset for help on using the changeset viewer.