AROS-Exec - No schedule 'n' rocking
Login
Username:

Password:


Lost Password?

Register now!
Main Menu
Who's Online
15 user(s) are online (11 user(s) are browsing Forum)

Members: 0
Guests: 15

more...
   All Posts


(1) 2 3 4 ... 2255 »


Re: my wish list is short
Just can't stay away
Joined:
2004/3/30 21:57
Group:
Registered Users
Posts: 117
Offline
That is just great ! Thanks Kalamatee !

Posted on: Today 7:47:26
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2004/5/7 2:45
From Daoulas (Finistère, France)
Group:
Registered Users
Posts: 184
Offline


I've just seen that Kalamatee has started to implement window positionning in Wanderer!

THANK YOU!


Posted on: Today 5:35:45
_________________
« Tu causes, tu causes, c'est tout ce que tu sais faire » Raymond Queneau - Zazie dans le métro
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2004/5/7 2:45
From Daoulas (Finistère, France)
Group:
Registered Users
Posts: 184
Offline
Quote:

SamuraiCrow wrote:
The window position is stored in a .info file with no filename in front of it and disk.info holds the volume information about a drive.


Such .info files with no filenames aren't described on RKM (libraries) and I didn't see any of them on original Amiga disks (Workbench and so on...).

But this book states that "If the icon is associated with a directory (WBDISK, WBDRAWER, WBGARBAGE), it needs a DrawerData structure to go with it. This structure contains an Intuition NewWindow structure [...] Workbench uses it to hold the current window position and size of the window so it will reopen in the same place." (page 352)

And page 346 you could read that "for a directory, the icon is stored in a .info file at the same level where the directory name appears (not in the directory itself). The icon type should be set to DRAWER. The icon for a disk should always be stored in a file named disk.info at the root level directory of the disk. The icon type should be set to DISK. (The icon type can be set and the icon imagery edited with the IconEdit program.)"

So it is clear that an Amiga disk named "foo" contains a file named "disk.info" at the root: here is the imagery of the icon of the disk (seen on the main Workbench window and associated with the name "foo"), and here is also the coordinates of the window to be opened when the user double-clicks on it. If the disk contains a drawer named "bar" with an icon, you can use "C:List foo:" to be able to read the content which should at least include "bar" (which is the drawer itself) and "bar.info" (which contains the drawer icon imagery (seen in the foo window on workbench screen) _and_ the coordinates of the window to be opened when the user double-clicks on this bar icon). Of course it is possible to have disks without icons, and drawers without icons: in such cases, Workbench can provide default ones (and always do for disks).

My previous post shows a way to read those informations in original Amiga icons.

Posted on: Today 3:37:52

Edited by Ball000 on 2008/8/7 4:17:28
Edited by Ball000 on 2008/8/7 4:26:12
_________________
« Tu causes, tu causes, c'est tout ce que tu sais faire » Raymond Queneau - Zazie dans le métro
Create PDF from Post Print


Re: my wish list is short
Just can't stay away
Joined:
2005/9/3 1:24
From Minnesota, USA
Group:
Registered Users
Posts: 138
Offline
The window position is stored in a .info file with no filename in front of it and disk.info holds the volume information about a drive.

Posted on: Yesterday 18:42:11
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Registered Users
Posts: 582
Offline
Also - what will those values be if the window is unpositioned? ie when workbench should position it using defaults.

Posted on: Yesterday 11:00:41
_________________
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Registered Users
Posts: 582
Offline
OK great - but _where_ is the drawer in questions icon that contains the info? the *.info in the parent of the drawer - or is there a .info inside the drawer?

And what about volume icons - which of ".info" and "disk.info" is the correct one to use?

Posted on: Yesterday 8:43:28
_________________
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2004/5/7 2:45
From Daoulas (Finistère, France)
Group:
Registered Users
Posts: 184
Offline
AFAIK Amiga icons are handled like that:

Open them doing something like
struct DiskObject *icon = GetIconTags(PUT_YOUR_TAGS_HERE);


and then you can for example read the coordinates of the icon by
printf("Icon X coord. in drawer/on WorkBench: %ld\n",icon->do_CurrentX);
printf("Icon Y coord. in drawer/on WorkBench: %ld\n",icon->do_CurrentY);


and if it's the icon of a drawer or of a disk (then the info file contains a DrawerData structure), you can read the coordinates of the window to open when double-clicking on the icon:
printf("Left Edge position of drawer's window: %d\n",icon->do_DrawerData->dd_NewWindow.LeftEdge);
printf("Top Edge position of drawer's window:  %d\n",icon->do_DrawerData->dd_NewWindow.TopEdge);
printf("Drawer's window Width:                 %d\n",icon->do_DrawerData->dd_NewWindow.Width);
printf("Drawer's window Height:                %d\n",icon->do_DrawerData->dd_NewWindow.Height);


If it's a drawer (or disk) icon designed for OS2+, it contains Flags and ViewModes in DrawerData structure that store the way icons are shown in the drawer's window: you can read it by something like:
switch(icon->do_DrawerData->dd_Flags)
{
    case 0:
        printf("Default");
        break;
    case 1:
        printf("Show only icons");
        break;
    case 2:
        printf("Show all files");
        break;
    case 3:
        printf("Show all files");
        break;
    default:
        printf("Only values between 0 an 3 should be found here");
}
switch(icon->do_DrawerData->dd_ViewModes)
{
    case 0:
        printf("Default (inherit from parent)");
        break;
    case 1:
        printf("View as icons");
        break;
    case 2:
        printf("View as text, sorted by name");
        break;
    case 3:
        printf("View as text, sorted by date");
        break;
    case 4:
        printf("View as text, sorted by size");
        break;
    case 5:
        printf("View as text, sorted by type");
        break;
    default:
        printf("Only values between 0 an 5 should be found here");
}

Posted on: Yesterday 5:44:52

Edited by Ball000 on 2008/8/6 6:02:34
Edited by Ball000 on 2008/8/6 6:04:25
_________________
« Tu causes, tu causes, c'est tout ce que tu sais faire » Raymond Queneau - Zazie dans le métro
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2005/7/8 7:04
From Norway
Group:
Registered Users
Posts: 424
Offline
How does the icon tooltype get stored? Couldn't you just use the same location for the information?

Posted on: Yesterday 2:52:20
Create PDF from Post Print


Re: my wish list is short
Home away from home
Joined:
2007/4/16 6:26
From Norway
Group:
Registered Users
Posts: 221
Offline
jepp this is something that must be fixed. It makes aros look stupid ;)
Kalamatee: this is shure something for you :)

Posted on: 8/5 15:48:22
Create PDF from Post Print


Re: It's here AROS with grub 2
Just popping in
Joined:
2005/11/20 19:02
From Massachusetts
Group:
Registered Users
Posts: 19
Offline
This is what I've been waiting years for...

Posted on: 8/5 11:50:38
_________________
www.gameparts.biz
Create PDF from Post Print



 Top
(1) 2 3 4 ... 2255 »




Search
Polls
AROS most urgently needs
General stability
Hardware compatibility
User interface reliability
More applications
Top Posters
1
damocles
1558
2
JLF65
1008
3
paolone
743
4
Holley
706
5
mazze
659
6
KeenEars
606
7
Kalamatee
582
8
pixie
491
9
4pLaY
429
10 m0ns00n 424