[Help] Dynamically Create Right Click Menu Or Portion

Saturday, July 28, 2007 by SirSmiley | Discussion: DesktopX

I'm having a brain fart. Any help would be appreciated.

So, I'm working on my first "Skinnable" Widget/Gadget which uses the ImageMagick Com object
to create a reflective PNG. This came about after a request over at Aqua-soft.

My goal is to populate a portion of the right click menu with a list of the skins. At the moment
I'm using a Subfolder Collection to pull all of the Ini file's. Has anyone got an idea on how to
dynamically populate the right click menu with the names & calls?


First Previous Page 2 of 2 Next Last
RomanDA
Reply #21 Tuesday, July 31, 2007 6:12 PM
this looks good.. i was going to say the issue is a
CASE ELSE as well.
good one!
SirSmiley
Reply #22 Tuesday, July 31, 2007 6:52 PM
Wouldn't that be essentially the same as an IF THEN ELSE statement? Because that didn't work...and apparently neither does the CASE ELSE.

I'm thinking it's most likely using the zero based array? Even though there's nothing specific in the DX documentation most likely zero is a default? So, I'll work on adjusting my arrays accordingly.
SirSmiley
Reply #23 Tuesday, July 31, 2007 7:02 PM
That was it or a combination of it with the CASE ELSE.

So class the lesson for the day is, when dynamically creating a right click menu one can't use a zero based array!

Thanks a lot for all the help guys.
sViz
Reply #24 Tuesday, July 31, 2007 7:23 PM
So class the lesson for the day is, when dynamically creating a right click menu one can't use a zero based array!


   Glad to hear you worked it out. I'll certainly keep this in mind in future.
RomanDA
Reply #25 Friday, August 3, 2007 7:48 AM
YEAH!
SirSmiley
Reply #26 Friday, August 3, 2007 3:31 PM
Okay, the gadget is up at deviantart iReflector.

sViz
Reply #27 Friday, August 3, 2007 4:49 PM
I'm having some probs.

"Drag'n'drop ImageMagickObject.dll onto RegSvr to register the com object"

I did and I got this error: LoadLibrary("C:\Documents")failed - The specified module could not be found

Then when I drag and drop a PNG image onto the first spot of the widget I get an error saying something went wrong and the widget only accepts images by drag and drop.


What do I do now?
SirSmiley
Reply #28 Friday, August 3, 2007 5:10 PM
Try installing the com object from the right click menu. Or drag it onto the regsvr2.vbs file. Or drop it on the regsvr.exe file. If there isn't a right click menu option to install it then you need the newer version.

I'm going to check dA to see if they screwed up my last update.
sViz
Reply #29 Friday, August 3, 2007 5:34 PM
The r-click menu option worked, but I still get an error when I drop an image onto the widget.

Something went wrong. This will only accept images as drag and drop files. I'll try to continue through.
Detail: Object required.


SirSmiley
Reply #30 Friday, August 3, 2007 5:49 PM
I just downloaded it from dA, removed all my versions of the com object & cleaned my temp directory and it installed without a hitch on XP Pro Sp2. All the right click does is call the regsvr (Using the DesktopX.ExecutableDirectory) passes the object to it and registers/unregisters it.
sViz
Reply #31 Friday, August 3, 2007 5:54 PM
Dropping it onto the regsvr.exe file worked! Thank you and thanks for this awesome gadget!      
SirSmiley
Reply #32 Friday, August 3, 2007 6:01 PM
You're welcome.

Thanks for the help in getting the right click menu to work.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01