Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
71 user(s) are online (21 user(s) are browsing Forums)

Members: 0
Guests: 71

more...

Support us!

Headlines

 
  Register To Post  

Selected Icons
Just popping in
Just popping in


See User information
How can i read the selected icons?
In Amiga Developer's Handbook i read about the SelectList, but how can i access it?
Thank you!!

Go to top
Re: Selected Icons
Amigans Defender
Amigans Defender


See User information
You might want to try here first:
http://wiki.amigaos.net/index.php/Workbench_and_Icon_Library

If what you need is not on the wiki please let me know.

ExecSG Team Lead
Go to top
Re: Selected Icons
Just popping in
Just popping in


See User information
ok! thank you!

Go to top
Re: Selected Icons
Just popping in
Just popping in


See User information
Let's see if i've understood something:D:D

When I launch an application Workbench passes to it a WBStartup structure.
In WBStartup there's another struct struct WBArg.
WBArg has two fields: "a lock" and a "name" of the selected icons (working as argument of the program).
So we can find all selected icons and work with them.
It even works with an AppMenuItem.
And this is a very good thing! (Congratulations for the wiki!!)

But if i would i.e. click a button of my app and have a list of all the selected icons in a drawer?
Does the window store a list of all selected icons in it?

Go to top
Re: Selected Icons
Just popping in
Just popping in


See User information
Take a look at the autodocs: workbench.doc
The WorkbenchControl() function does just what you want.
The tag WBCTRLA_GetSelectedIconList will give you a list of all selected icons for a given drawer (=WB window).
The WBCTRLA_GetOpenDrawerList gives you a list of all open drawers. So you can loop through them and call WBCTRLA_GetSelectedIconList for each one.

This information is not in the Wiki yet. Also the multiple hooks, you can use via ChangeWorkbenchSelection() are not yet described in the Wiki.
Same goes for icon.library, which has got some interesting methods, since 3.5.

Go to top
Re: Selected Icons
Just popping in
Just popping in


See User information
Thank you!
I'll give it a try tonight!!:)

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