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] Cascade menus in 8.5 (HEAD)
by Linus Nyberg other posts by this author
May 31 2007 11:12AM messages near this date
Re: [MACTCL] Thank you for fixing bug 1724460 | Re: [MACTCL] Cascade menus in 8.5 (HEAD)
Hi!

I've started playing with 8.5 on Mac (Intel) and it seems to work fine
except for this:
Cascade menus don't seem to work at all.
Does anyone know if this is supposed to work?
Here is a sample snippet that works fine on Windows (after changing to
ButtonPress-3):

################
set ::tk::mac::useCustomMDEF 1
catch {console show}

proc showmenu {} {
	set x [winfo pointerx .]
	set y [winfo pointery .]

	menu .submenu -type tearoff
	.submenu add command -label "Cascaded item" -command "puts {Cascaded
item}"
	
	menu .m -tearoff 0
	.m add command -label "Test" -command "puts Test"
	.m add cascade -label "And a cascade" -menu .submenu
	update
	.m post $x $y
	update
	destroy .submenu
	destroy .m
}

bind . <ButtonPress-2>  "showmenu"
################

Doesn't matter if I set useCustomMDEF to 0 either.

I'm using HEAD (from 29/5 at 14:44).

Cheers,

Linus



-------------------------------------------------------------------------
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:
Linus Nyberg
Daniel A. Steffen
Linus Nyberg

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved