TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `Steve Kraus`
date: 2003-01-15 07:50:02
subject: [TSEPro] Re: Overiding UI Menus

From: "Steve Kraus" 
@Date: Tue, 14 Jan 2003 16:20:03 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au




----- Original Message ----- 

From: "Sammy Mitchell" 
> 
> You can override the menu system (using SetMenuBar()), but
> there isn't any clean (or dirty that I can think of) way to
> reference the existing menus.

There is a way to do this, using PushKey().
It's not really "clean", but it does work.

For example, PushKey () calls mFindWordAtCursor()

Of course, with two-keys, you must push keys in reverse order.
There aren't many of these in the traditional Tse UI.
I have a custom UI, and I have many two-key called macros,
but usually I just copy the macro from my UI code.
 
> Overriding the key bindings is doable, and, especially in
> v4, you don't have to duplicate a lot of code.
>
> As Fred said, the only "gotcha", is if you want to
> reference routines defined in the .ui file.  However, in v4,
> there is a solution to this.  I'll write it up and send it
> as a separate message

Wow!  I'm anxious to learn this trick!

Steve Kraus

Steve
--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.