• Icon position.

    From Ian Moote@1:244/140 to ALL on Sat Jun 24 07:22:00 2000
    Where does the WorkPlace Shell store icon positions? Are there WPS calls
    to manipulate this value?

    TIA and TTYL.

    ---
    ■ Bill Gates is to software as Ronald McDonald is to cuisine.

    --- AdeptXBBS v1.11y (FREEWare/2)
    * Origin: Moote Pointe (1:244/140)
  • From Herbert Rosenau@2:2476/493 to Ian Moote on Tue Jul 4 05:36:22 2000
    Am 24.06.00 14:22 schrieb Ian Moote

    Where does the WorkPlace Shell store icon positions? Are there
    WPS calls to manipulate this value?

    To set a position you must be an wpFolderObject and override the wpSetNextIconPos().

    To change a currently existent Position you must drag&drop it.

    You has no chance to do that outside WPS.

    This example shows how you can use the wpInitIconPosData, wpIdentify, wpQueryIconPosition, and wpFreeIconPosData
    methods to find the icon position information for all objects within a folder.
    In this example, somSelf contains the pointer to
    the folder being examined.

    BOOL bSem;
    WPObject *Object;
    CHAR szIdentity[CCHMAXSTRING];
    POINTL ptl;
    ULONG ulIndex;

    /* Retrieve the icon position information for all objects within
    * the folder */
    _wpInitIconPosData(somSelf);

    /* Find the every object within the folder */
    bSem = !_wpRequestObjectMutexSem(somSelf,SEM_INDEFINITE_WAIT);
    for (Object = _wpQueryContent(somSelf,NULL,QC_FIRST);
    Object;
    Object = _wpQueryContent(somSelf,Object,QC_NEXT));
    {

    /* For each object in the folder, find the position of its icon
    * in an Icon View of the folder */
    if (_wpIdentify(Object,szIdentity))
    {
    if (_wpQueryIconPosition(somSelf,szIdentity,&ptl,&ulIndex))
    {
    /***** ptl contains the position of the icon for this object *****/
    }
    }
    }
    if (bSem)
    {
    _wpReleaseObjectMutexSem(somSelf);
    }

    /* Free the icon position data structure */
    _wpFreeIconPosData(somSelf);







    --- Sqed/32 1.15/development 891:
    * Origin: Wenn man Australien kommt, ist man gleich Indonesien! (2:2476/493)
  • From Eddy Thilleman@2:280/5143.7 to Ian Moote on Tue Jul 4 04:09:58 2000
    Hello Ian,

    Saturday 24 June 2000 14:22, Ian Moote wrote to ALL:

    Where does the WorkPlace Shell store icon positions? Are there WPS
    calls to manipulate this value?

    I think in the OS2.INI or in the OS2SYS.INI file?


    Greetings -=Eddy=- email: eddy.thilleman@net.hcc.nl

    ... Lucky people gets OS/2, unfortunate people gets NT...
    --- GoldED/2 3.0.1
    * Origin: He's dead, Jim. Cool lunch box. HEY! Ding Dongs! (2:280/5143.7)
  • From David Noon@2:257/609.5 to Ian Moote on Fri Jul 7 12:59:42 2000
    Hi Ian,

    Replying to a message of Eddy Thilleman to Ian Moote:

    Where does the WorkPlace Shell store icon positions? Are there WPS
    calls to manipulate this value?

    I think in the OS2.INI or in the OS2SYS.INI file?

    I should have answered this when you first asked. Sorry.

    The WPS stores icon positions in an extended attribute of the containing folder
    -- either a file system folder (i.e. directory) or abstract folder (also a directory, but managed slightly differently). The name of the extended attribute is, unsurprisingly, .ICONPOS and its format is _undocumented_ in the OS/2 DTK. If you bump into a guy named Henk Kelder on the Internet, he might be
    able to tell you the layout. [I doubt it will ever change now.]

    Regards

    Dave
    <Team PL/I>

    --- FleetStreet 1.25.1
    * Origin: My other computer is an IBM S/390 (2:257/609.5)
  • From Ian Moote@1:244/140 to EDDY THILLEMAN on Fri Jul 28 13:49:00 2000
    Saturday 24 June 2000 14:22, Ian Moote wrote to ALL:

    Where does the WorkPlace Shell store icon positions? Are there
    WPS calls to manipulate this value?

    I think in the OS2.INI or in the OS2SYS.INI file?

    Hey, Eddie!

    Sorry for the lengthy delay in replying. Technical problems with the
    feed which lasted in excess of two weeks, followed by a very busy
    personal life. [:)

    So you think it's the .INI files, eh? Hmph. I'm a little surprised, but
    I guess it makes sense from a point of view.

    Thanks. Take care and TTYL.

    ---
    ■■ If Nicole Simpson had a gun, we'd know who TRIED to do it.

    --- AdeptXBBS v1.11y (FREEWare/2)
    * Origin: Moote Pointe (1:244/140)
  • From Ian Moote@1:244/140 to DAVID NOON on Fri Jul 28 13:49:00 2000
    Where does the WorkPlace Shell store icon positions? Are there
    WPS calls to manipulate this value?

    I think in the OS2.INI or in the OS2SYS.INI file?

    I should have answered this when you first asked. Sorry.

    No problem. Sorry for the long delay -- technical problems and a busy
    personal life myself. [:)


    The WPS stores icon positions in an extended attribute of the
    containing folder -- either a file system folder (i.e. directory) or abstract folder (also a directory, but managed slightly
    differently). The name of the extended attribute is, unsurprisingly, .ICONPOS and its format is _undocumented_ in the OS/2 DTK.

    So _that's_ where it is!! I was under the impression, for some reason,
    that it would be an extended attribute, but it didn't occur to me that
    it would be one of the _folder's_ EA's.

    Thanks a lot, David. This will get me going, I'm sure. Take care and
    TTYL.

    ---
    ■■ History tends to exaggerate.

    --- AdeptXBBS v1.11y (FREEWare/2)
    * Origin: Moote Pointe (1:244/140)
  • From Eddy Thilleman@2:280/5143.7 to Ian Moote on Wed Aug 2 07:28:56 2000
    Hello Ian,

    Friday 28 July 2000 20:49, Ian Moote wrote to EDDY THILLEMAN:

    Sorry for the lengthy delay in replying. Technical problems with the
    feed which lasted in excess of two weeks, followed by a very busy
    personal life. [:)

    Ah, I wondered why it took you so long to reply. :)

    So you think it's the .INI files, eh? Hmph. I'm a little surprised,
    but I guess it makes sense from a point of view.

    Later I saw a reply from David Noon, who says the icon positions are stored in the EA's of the Desktop directory or its appropriate subdirectory.


    Greetings -=Eddy=-

    email: ethilleman@zonnet.nl
    e.thilleman@hccnet.nl
    eddy.thilleman@net.hcc.nl

    ... Windows - not even MONGO wants it!
    --- GoldED/2 3.0.1
    * Origin: Old programs never die, they just get recycled! (2:280/5143.7)
  • From Ian Moote@1:244/140 to HERBERT ROSENAU on Tue Sep 12 09:41:00 2000
    Where does the WorkPlace Shell store icon positions? Are there
    WPS calls to manipulate this value?

    To set a position you must be an wpFolderObject and override the wpSetNextIconPos().

    Heh -- you probably don't remember this. It's from one month and seven
    days ago. [:) Your reply to my question was sitting un-noticed as an
    insecure packet on my system. Sorry 'bout that.

    Thanks for this additional piece of information. I've squirreled it away
    with the other replies that I recieved and I'm sure it will come in
    handy.

    I just didn't want you to think that I had been ignoring you. Take care
    and TTYL.

    ---
    ■■ You can't evaluate a man by logic alone.

    --- AdeptXBBS v1.11y (FREEWare/2)
    * Origin: Moote Pointe (1:244/140)