At 14:47 -0500 2002.03.18, Steven Kreuzer wrote:
>1) Is it possible to take all my images Iwill be using in the project
>and put them in a resource file that I would create with resedit and
>then be able to load the images
>like: $p = GetPicture(128);

Yes.


>By default, it looks into the resource fork of the actual MacPerl
>application. is there any way to change it to a different resource fork?

OpenResFile().

        use Mac::Resources;
        use Mac::Memory;

        OpenResFile("Bourque:Desktop Folder:Shuck") or die $^E;
        my $resid = Get1Resource('PICT', 128);
        print $resid->size;
        CloseResFile(CurResFile());



>2) If i create a bunch of dialog boxes in resedit with check boxes and
>edit fields, is it possible to have a a macperl script that can read the
>values of these items. this would be alot easier then having to layout
>all the windows by hand

I believe you can call existing resources.  For example, Mac::Dialogs has this:

        PORT = GetNewDialog ID [, BEHIND]

I've never played much with that, though.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to