[racket] Inserting menu between two other menu

From: Veer Singh (veer.chah at gmail.com)
Date: Thu Jun 28 08:18:59 EDT 2012

Thanks for explaining it in detail.


On Thu, Jun 28, 2012 at 5:25 PM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> Well, it depends on when you actually create the menu. If you created
> a frame-mixin and then create the menus during the dynamic extent of
> the call to the constructor (i.e. by putting the code in the body of
> the mixin (but not in a method)) but before the call to super-new,
> then DrRacket will call frame:reorder-menus after your menu is created
> and that will control it's positioning.
>
> If you create the menu at some other time, then you probably will have
> to re-order them yourself (and note that DrRacket currently doesn't
> provide any guarantees about the precise set of menus in the menubar).
>
> Robby
>
> On Thu, Jun 28, 2012 at 6:47 AM, Veer Singh <veer.chah at gmail.com> wrote:
>> Just tried it , the menu  is inserted before Tab menu , which is where I wanted.
>>
>> I assume that new menu's are inserted before Tab menu in DrRacket.
>>
>> Thanks.
>>
>>
>> On Thu, Jun 28, 2012 at 4:28 PM, Veer Singh <veer.chah at gmail.com> wrote:
>>> Is it possible to insert a menu between two other menu in menu-bar but
>>> not at the end?
>>>
>>> More specifically if I want to add a new menu in DrRacket between
>>> "Racket" and "Insert"  how do I do that?
>>>
>>> Thanks
>>>
>>> Veer
>>
>> ____________________
>>  Racket Users list:
>>  http://lists.racket-lang.org/users


Posted on the users mailing list.