[osflash] ActionStep NSMenu
Cortlandt Winters
cortrah at gmail.com
Fri Sep 9 09:21:45 PDT 2005
Hi Carlos,
Not to worry, NSMenu isn't done yet. I think it has it's non visible part
done only so far.
A good test case for you would be to compile the ASMainTest file. It has the
main entry point and it should give you a visible example by default. You
can change line in the try statement to test out the various other tests
like so.
try{
ASTestComboBox.test();
}
Feel free to post any questions about compiling if you need to.
-Cort
On 9/9/05, Carlos Rovira <carlos.rovira at gmail.com> wrote:
>
> Hi list,
>
> This message was sended to ActioStep mailing list, but for some reason
> I won't be able to reach the AS inbox ¿?, so I think I could send this
> question to osflash...
>
> This days I'm trying to enter ActionStep and study the way it works. I
> follow some of the test included in SVN and try to reproduce some
> steps to create a menu, but I don't get anything on screen....maybe
> NSMenuView, NSMenu, NSMenuItem aren't working yet?
>
> This is my test code inside a the main function:
>
> // --- the app
> var app:NSApplication = NSApplication.sharedApplication();
>
> // --- main container
> var window1:NSWindow = (new NSWindow()).initWithContentRect(new
> NSRect(10,60,300,250));
> var menu1:NSMenu = new NSMenu(new NSRect(0,0,100,140));
> var item1:NSMenuItem = new NSMenuItem(new NSRect(0,0,100,140));
> item1.setTitle("Menu item 1");
> menu1.addItem(item1);
> window1.setMenu(menu1);
>
> I try to get it work with NSMenuView as well, but nothing happens...
>
> Someone could post some working example to know whats the right code?
> I'm digging into the code but I cant't figure whats wrong.
>
> Btw, I must to say that you guys are doing an excellent work! Many
> thanks for this project I'm really enjoying all this stuff : ))
>
>
> --
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/osflash_osflash.org/attachments/20050909/7e518ff6/attachment.htm
More information about the osflash
mailing list