Tk Source Code

Check-in [28d86631]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix for Cocoa scrollbar appearance on 10.6
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 28d86631979a1a7735db284c9c3d3f7ca345b58e
User & Date: kevin_walzer 2015-02-19 15:57:33
Context
2015-02-19
16:02
Add padding to HITheme menubuttons check-in: 63db5a97 user: kevin_walzer tags: core-8-5-branch
15:58
merge mark check-in: 35a89312 user: kevin_walzer tags: trunk
15:57
Fix for Cocoa scrollbar appearance on 10.6 check-in: 28d86631 user: kevin_walzer tags: core-8-5-branch
02:27
Restore live resize to Cocoa with reduced flickering; addresses most serious issue of Cocoa drawing while preserving user expectations for display during window resize; thanks to Marc Culler for extensive patch check-in: cebc6eeb user: kevin_walzer tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXScrlbr.c.

182
183
184
185
186
187
188


189






190
191
192
193
194
195
196
    Tk_Fill3DRectangle(tkwin, (Pixmap) macWin, scrollPtr->bgBorder,
    		       scrollPtr->inset, scrollPtr->inset,
    		       Tk_Width(tkwin) - 2*scrollPtr->inset,
    		       Tk_Height(tkwin) - 2*scrollPtr->inset, 0, TK_RELIEF_FLAT);

    /*Update values and draw in native rect.*/ 
    UpdateControlValues(scrollPtr);


    HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationNormal);






    TkMacOSXRestoreDrawingContext(&dc);
    
    scrollPtr->flags &= ~REDRAW_PENDING;
}

/*
 *----------------------------------------------------------------------






>
>
|
>
>
>
>
>
>







182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
    Tk_Fill3DRectangle(tkwin, (Pixmap) macWin, scrollPtr->bgBorder,
    		       scrollPtr->inset, scrollPtr->inset,
    		       Tk_Width(tkwin) - 2*scrollPtr->inset,
    		       Tk_Height(tkwin) - 2*scrollPtr->inset, 0, TK_RELIEF_FLAT);

    /*Update values and draw in native rect.*/ 
    UpdateControlValues(scrollPtr);
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
    if (scrollPtr->vertical) {
      HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationNormal);
    } else {
      HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationInverted);
    }
#else
    HIThemeDrawTrack (&info, 0, dc.context, kHIThemeOrientationNormal);
#endif
    TkMacOSXRestoreDrawingContext(&dc);
    
    scrollPtr->flags &= ~REDRAW_PENDING;
}

/*
 *----------------------------------------------------------------------