OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27-07-2010, 04:34
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default [X5sp1] CommandBarControl.SetIcon fails

Alex, please?
I wonder if that's another bug or dropped feature in X5sp1, but it worked in both X3 and X4:

Code:
with FrameWork.CommandBars("Standard").Controls.AddCustomButton "2cc24a3e-fe24-4708-9a74-9c75406eebcd", "<MacroProject>.<MacroModule>.<MacroName>"
   .setIcon 22,4 'set icon #234 from VGCoreAuto.dll
end with
X3, X4 - ok
X5sp1 - silently fails, keeps generic icon


I saw that as of now UIConfig xmls don't have bmpRow & bmpCol properties, so the only way I can think of would be to extract an icon from VGCoreAuto.dll as BMP/PNG and then import it - but I don't like it.

Last edited by wOxxOm; 27-07-2010 at 05:45.
Reply With Quote
  #2  
Old 31-07-2010, 13:48
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default .SetIcon

In X5, I think you now need to use .SetIcon2 or .SetCustomIcon. .SetIcon is no longer supported. Hopefully that helps.

-Shelby
Reply With Quote
  #3  
Old 02-08-2010, 02:50
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

yes, indeed, thank you - it accepts a string like "guid://b1dfd3c7-fefc-998a-4bcb-e3f0a904a332"
I wonder though how do I find which guid corresponds to which icon in VGCoreIntl.dll & DrawIntl.dll...
Reply With Quote
  #4  
Old 29-12-2012, 05:31
FaneDuru FaneDuru is offline
Member
 
Join Date: May 2012
Posts: 35
Question

Could you find the correspondence between icons and their guid (VGCoreIntl.dll & DrawIntl.dll)? If yes can you share it? At least for some icons you find the guid...

Thanks in advance,
FaneDuru
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CustomCommand CreateBoundary call fails abdoj CorelDRAW/Corel DESIGNER VBA 8 17-07-2010 01:20
set focus on a commandBarControl biok CorelDRAW/Corel DESIGNER VBA 1 26-08-2009 14:27
C# ApplicationObject.CreateDocument() Fails sjs CorelDRAW/Corel DESIGNER VBA 1 31-03-2008 14:08
forum fails in sending notification s_federici Web site suggestions 2 08-11-2004 03:47


All times are GMT -5. The time now is 15:19.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com