Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
178 user(s) are online (165 user(s) are browsing Forums)

Members: 0
Guests: 178

more...

Support us!

Headlines

 
  Register To Post  

Icon.library question.
Home away from home
Home away from home


See User information
Icon.library:
Is it possible to find check, if icon is show only icons or show all files.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Icon.library question.
Just can't stay away
Just can't stay away


See User information
See <workbench/workbench.h>:

struct DrawerData
{
    
struct NewWindow dd_NewWindow/* args to open window */
    
LONG             dd_CurrentX;  /* current x coordinate of origin */
    
LONG             dd_CurrentY;  /* current y coordinate of origin */
    
ULONG            dd_Flags;     /* flags for drawer */
    
UWORD            dd_ViewModes/* view mode for drawer */
};

/* definitions for dd_Flags */
#define DDFLAGS_SHOWMASK    0x00000003 /* show mode for drawers */
#define DDFLAGS_SHOWDEFAULT 0x00000000 /* default (inherit parent's show mode) */
#define DDFLAGS_SHOWICONS   0x00000001 /* show only icons */
#define DDFLAGS_SHOWALL     0x00000002 /* show all files */

struct DiskObject
{
    
UWORD               do_Magic;   /* magic number at the start of the file */
    
UWORD               do_Version/* a version number, so we can change it */
    
struct Gadget       do_Gadget;  /* a copy of in core gadget */
    
UBYTE               do_Type;
    
STRPTR              do_DefaultTool;
    
STRPTR *            do_ToolTypes;
    
LONG                do_CurrentX;
    
LONG                do_CurrentY;
    
struct DrawerData do_DrawerData;
    
STRPTR              do_ToolWindow;  /* only applies to tools */
    
LONG                do_StackSize;   /* only applies to tools */
};

Go to top
Re: Icon.library question.
Home away from home
Home away from home


See User information
Thanks that required a bit of detective work I guess.
I found the flags, but did not see the relation between icon.library and flags.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Icon.library question.
Supreme Council
Supreme Council


See User information
You need to GetDiskObject() the icon you are interested in (should be of type Drawer), then check the flags to see what icons will be displayed in the WB lister.

The association comes from the fact GetDiskObject is a function in icon.library.

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project