Message 1 of 1
Can't get the icon shown in IV ???

Not applicable
08-15-2006
04:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I tried to replace the fist set oButtonDefPrimary (working) with the same
one including icon (copied from samples addin)
and the icon is not shown in IV???
Thx, Chris
Dim oPriIcon As IPictureDisp
Dim oSecIcon As IPictureDisp
Set oPriIcon = LoadPicture(App.Path & "\Primary.ico")
Set oSecIcon = LoadPicture(App.Path & "\Secondary.ico")
'create the button to create the text graphics
'Set oButtonDefPrimary =
oInventorApp.CommandManager.ControlDefinitions.AddButtonDefinition("Primary",
"Primary2", _
kQueryOnlyCmdType,
"{0E2365C9-C7A2-4304-9B1C-29285781218A}", "Primary", "Primary2")
Set oButtonDefPrimary =
oInventorApp.CommandManager.ControlDefinitions.AddButtonDefinition("Primary",
"Primary2", _
kShapeEditCmdType,
"{DB59D9A7-EE4C-434A-BB5A-F93E8866E872}", "Primary", "Primary2", oPriIcon,
oPriIcon)
--
IV11 Pro. sp1 (uninstall)
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 1.1.2
one including icon (copied from samples addin)
and the icon is not shown in IV???
Thx, Chris
Dim oPriIcon As IPictureDisp
Dim oSecIcon As IPictureDisp
Set oPriIcon = LoadPicture(App.Path & "\Primary.ico")
Set oSecIcon = LoadPicture(App.Path & "\Secondary.ico")
'create the button to create the text graphics
'Set oButtonDefPrimary =
oInventorApp.CommandManager.ControlDefinitions.AddButtonDefinition("Primary",
"Primary2", _
kQueryOnlyCmdType,
"{0E2365C9-C7A2-4304-9B1C-29285781218A}", "Primary", "Primary2")
Set oButtonDefPrimary =
oInventorApp.CommandManager.ControlDefinitions.AddButtonDefinition("Primary",
"Primary2", _
kShapeEditCmdType,
"{DB59D9A7-EE4C-434A-BB5A-F93E8866E872}", "Primary", "Primary2", oPriIcon,
oPriIcon)
--
IV11 Pro. sp1 (uninstall)
Window XP Pro sp2
Pentium 3.2 Ghz, 3.0 GB of RAM
NVIDIA FX 3400 84.26
SpacePilot V 1.1.2