New Forum | Previous | Next | (P-PDF) Developers
Topic: AVIcon Parameter in AVToolButtonNew
Conf: (P-PDF) Developers, Msg: 139716
Date: 9/20/2005 05:08 PM
I'm looking to add a toolbar button for my plug-in to compliment its menu item. While I understand for the most part the API methods I need to use to accomplish this task (methods very similar as that used for my menu item), I was somewhat thrown by the AVIcon Icon parameter in the AVToolButtonNew method as the example provides the parameter as used for the MAC OS only. However, I now see that I can use the AVSysGetIconFromFileName method to access my icon file, assign it to a variable of type AVIcon, then use it for the AVIcon parameter inside AVToolButtonNew. This noted, am I correct in assuming that the ASText fname parameter for AVSysGetIconFromFileName consists of the entire path name? Also, what about the AVSysIconType itype? Is this strictly relegated to a bitmap? Can someone provide me with a one line code example that fills in the parameters for this method? Thank you ahead of time.