|
From: Jim I. <ji...@ap...> - 2003-08-11 03:01:42
|
No, like:
bind .${win_name} <<Cut>> "status_log cut\n;copy 1 =
${win_name}"
bind .${win_name} <<Copy>> "status_log copy\n;copy 0 =
${win_name}"
bind .${win_name} <<Paste>> "status_log paste\n;paste =
${win_name}"
The synthetic events like Cut & Paste are distinguished from the =20
low-level ones by having "<<" and ">>" rather than "<" and ">". Look =20=
at the tk.tcl file in the tk/library directory for how these are set =20
up. Look at the bind and event man pages for more details.
Jim
On Sunday, August 10, 2003, at 06:29 PM, gag...@ma... wrote:
> I'm not sure to understand.
>
> Like this?
>
>
>> bind .${win_name} <Cut> "status_log cut\n;copy 1 =
${win_name}"
>> bind .${win_name} <Copy> "status_log copy\n;copy 0 =
${win_name}"
>> bind .${win_name} <Paste> "status_log paste\n;paste =
${win_name}"
>
> Le Dimanche, 10 ao=FBt 2003, =E0 20:55 America/Montreal, Jim Ingham a =20=
> =E9crit :
>
>> You can avoid having to switch from Control to Command like this if =20=
>> you bind to the <<Cut>>, <<Copy>> and <<Paste>> synthetic events =20
>> instead. These will get bound to the right key sequences for each =20=
>> platform for you.
>>
>> Jim
>>
>> On Sunday, August 10, 2003, at 11:38 AM, gag...@ma... wrote:
>>
>>> I found it
>>>
>>> I changed
>>>
>>> bind .${win_name} <Control-x> "status_log cut\n;copy 1 =
${win_name}"
>>> bind .${win_name} <Control-c> "status_log copy\n;copy 0 =20=
>>> ${win_name}"
>>> bind .${win_name} <Control-v> "status_log paste\n;paste =20=
>>> ${win_name}"
>>> for
>>>
>>> bind .${win_name} <Command-x> "status_log cut\n;copy 1 =20
>>> ${win_name}"
>>> bind .${win_name} <Command-c> "status_log copy\n;copy 0 =20
>>> ${win_name}"
>>> bind .${win_name} <Command-v> "status_log paste\n;paste =20
>>> ${win_name}"
>>>
>>> And everything is ok
>>>
>>> Le Mercredi, 6 ao=FBt 2003, =E0 14:44 America/Montreal, =20
>>> gag...@ma... a =E9crit :
>>>
>>>> Another problem, the copy/paste are ctrl-c and ctrl-v in aMSN, =20
>>>> instead of command-c and command-v, how to resolve this?
>>>>
>>> G-Rom
>>> ICQ: 157502153
>>> eMail: gag...@ma...
>>> MSNMessenger: gag...@ho...
>>> iChat: gagnonje5000 (sur Mac.com)
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email sponsored by: Free pre-built ASP.NET sites =20
>>> including
>>> Data Reports, E-commerce, Portals, and Forums are available now.
>>> Download today and enter to win an XBOX or Visual Studio .NET.
>>> http://aspnet.click-url.com/go/psa00100003ave/=20
>>> direct;at.aspnet_072303_01/01
>>> _______________________________________________
>>> Tcl-mac mailing list
>>> Tc...@li...
>>> https://lists.sourceforge.net/lists/listinfo/tcl-mac
>>>
>> _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
>> Jim Ingham =20=
>> ji...@ap...
>> Developer Tools - gdb
>>
>>
> G-Rom
> ICQ: 157502153
> eMail: gag...@ma...
> MSNMessenger: gag...@ho...
> iChat: gagnonje5000 (sur Mac.com)
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/=20
> direct;at.aspnet_072303_01/01
> _______________________________________________
> Tcl-mac mailing list
> Tc...@li...
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
>
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham =20
ji...@ap...
Developer Tools - gdb
|