ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
[MACTCL] Use MacWindowStyle window decorations?
by Kevin Walzer other posts by this author
Jul 5 2007 11:44AM messages near this date
Re: [MACTCL] Cocoa vs. Tk | Re: [MACTCL] Use MacWindowStyle window decorations?
I'm trying to get more Mac-specific hooks in my applications, so I've 
been diving into the MacWindowStyle flags 
(tk::unsupported::MacWindowStyle). It appears that I can get windows to 
draw in most of the styles, but wiring them up into my applications is 
proving very difficult. I can get windows to draw as drawers, sheets, 
and so on, but because they are all toplevel, there is no way to get 
them properly aligned.

For instance: using the "sheet" style draws a window that looks like a 
sheet, with no window title or other border, but the style defaults to 
+0+0 screen position. I've done some hacks to get it sort-of-centered 
over the main toplevel, but it grabs focus and doesn't really look like 
a proper sheet.

The "drawer" window works in a similar fashion. I get a "drawer" window 
drawn, but it hangs out by itself away from the main window, and I 
haven't even been able to get it aligned with the main toplevel.

Another issue: I can get windows styled with such flags as 
"toolbarButton" (which is supposed to toggle the visibility of a Mac 
toolbar) and "unifiedTitleAndToolbar," which is supposed to draw a 
"unified-style" toplevel window (like you see in Mail.app), but neither 
really works--the windows are set up correctly, but there does not 
appear to be a way to a) get a real Mac toolbar in the toplevel (I don't 
believe there's any C-level binding to the HIToolbar API in Carbon) or 
b) bind these decorations to a simulated toolbar, i.e. a row of labels 
or buttons embedded in a frame.

Does anyone have any advice on getting these window styles to work, or 
am I better off ignoring them?

--Kevin

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Kevin Walzer
Michael Kirkham

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved