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 17-05-2012, 09:04
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Default Another little X6 toolbar toy - Multigon (Multitype-Polygon Generator)

If you are terrible at drawing flowers, like me, this one's for you!



It's basically the star tool, just with instant node type changing, adjust the settings, then click the button to generate a shape in the middle of the page:



The code to install it is in the zip, but also here:

Code:
Sub addMultigonDocker()
    Dim dockerAssembly As String
    dockerAssembly = "D:\YOUR PATH GOES HERE\Multigon.dll"
    
    Call FrameWork.AddDocker("0F10EF19-3BD9-458F-9FA5-60320658A792", "Multigon.Docker", dockerAssembly)
    Call FrameWork.CommandBars("Dockers").Controls.AddToggleButton("0F10EF19-3BD9-458F-9FA5-60320658A792", 0, False)
End Sub
Make sure to get the path to the DLL right on the first time. If not, change a character or two in the GUID (0F10EF19-3BD9-458F-9FA5-60320658A792) and try again.

An infinite supply of flowers, bottle caps, stamps, badges and other things await. Enjoy!

PS. I know it's a tad cumbersome at first, but after a bit you see the settings in your head. If there's enough interest I might make a live preview version and/or a click to place and set size version.

PSPS. Also (and this might as well be a signature, heh) massive thanks to Shelby for helping with a potentially buggy bit on the other side. Thought I was going crazy there for a bit.
Attached Files
File Type: zip Multigon.zip (22.8 KB, 1486 views)

Last edited by Joe; 17-05-2012 at 09:08.
Reply With Quote
  #2  
Old 19-05-2012, 04:41
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Default Update 1 - Wild Ripsaw Edition

Having done some interface improvements to the main project and learned the data binding system that WPF provides (it's awesome, btw) I decided to update Multigon as well:



You now get an interface more in line with CorelDRAW standards, several ways to input the values + presets. Neat.

Also a new function - you can now shift the outer nodes by a percentage of a full step letting you make some rather neat shapes easily:



Two more improvements - the icons now look sharp and the rotational center of the shape is now set at the exact center of the shape.

Enjoy, feedback welcome.
Attached Files
File Type: zip Multigon.zip (22.8 KB, 1377 views)
Reply With Quote
  #3  
Old 20-05-2012, 16:38
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Default Gears of more

Well, I'll just keep on improving the thing with things that seem useful... So what more can a Multitype Polygon Generator need? More Polygon types, of course!



Eight more types, to be exact, including the rather neat gears:



I have this silly idea of a pattern-based side editing option, but that may be going too far. This is probably the last version for a while. Enjoy, as usual.
Attached Files
File Type: zip Debug.zip (22.6 KB, 1440 views)
Reply With Quote
  #4  
Old 28-05-2012, 13:50
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...That's pretty cool.

Try using this when you are adding the toggle button...
Code:
    With FrameWork.CommandBars("Dockers").Controls.AddToggleButton("0F10EF19-3BD9-458F-9FA5-60320658A792", 0, False)
.Caption="Multigon Tool"
End With

End Sub
The only bad thing is that it doesn't stick the next time you load Draw...it is a bug. There are a couple of ways to make it work though with one, adding everything but the button with AppUI.xslt and DrawUI.xslt and then add just the Toggle Button with VBA, not defining the caption.

You might also try wrapping everything in BeginCommandGroup and EndCommandGroup so you can easily undo and redo it.
Reply With Quote
  #5  
Old 28-05-2012, 14:05
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Default

Ah, neat, thanks for the way to change the caption. Will have to find a way to make it stick, though. I have another docker I'd like to make a proper product of and that would need easy installation, proper button with icons, etc.

Also will check if I have forgotten a commandgroup, usually have them everywhere.
Reply With Quote
  #6  
Old 28-05-2012, 14:12
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

You can just use the .xslt's to add everything actually. You can do it the way Shelby described using a Macro to just toggle the docker on or off, or forget about the macro and remember a ToggleButton is just a checkbox.

I'm using the Macro Toggle on these...

http://www.softbotz.com/QRCode/
http://www.softbotz.com/DockerSet1/

Have the need for VBA elminated and will put it in the next versions.

Last edited by SteveDude; 28-05-2012 at 14:25.
Reply With Quote
  #7  
Old 05-11-2013, 18:01
nic nic is offline
Member
 
Join Date: May 2009
Posts: 90
Default malware detected error

Just a note to say that bitdefender blocks access to Stevedudes links

http://ww.5oftbotz.com/QRCode/
http://ww.5oftbotz.com/DockerSet1/

and reports they conatain malware


If it's a false positive would someone remove this post.
Reply With Quote
  #8  
Old 06-11-2013, 09:11
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

I can guarantee you there is no malware on my site. In fact, everything I do I code sign, including any GMS files I create.

Those links have not been a available for a very long time, so whatever is getting blocked is where your browser is being redirected too when a link is not valid and that can be determined by the browser or even your own ISP.

If you want the updated links, let me know.

You can get the QRCode docker from unleash.com.
Reply With Quote
  #9  
Old 07-11-2013, 05:19
nic nic is offline
Member
 
Join Date: May 2009
Posts: 90
Default followed links

Hi Stevedude
thanks for the reassurance. Just tried again and Bitdefender does block access to the pages listed and not redirected pages. Based upon your reply I ignored the warning and did get your pages and cant see what Bitdefender complained about. - fyi - it's not the download links that it reports as being suspect but the whole page.
Best wishes
nic

Last edited by nic; 07-11-2013 at 05:29.
Reply With Quote
  #10  
Old 07-11-2013, 08:10
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

Quote:
Originally Posted by SteveDude View Post
I can guarantee you there is no malware on my site. In fact, everything I do I code sign, including any GMS files I create.

Those links have not been a available for a very long time, so whatever is getting blocked is where your browser is being redirected too when a link is not valid and that can be determined by the browser or even your own ISP.

If you want the updated links, let me know.

You can get the QRCode docker from unleash.com.
Steve, how do you do code signing? I would love to do this with my macros.

Sean.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
Reply

Tags
coreldrawx6, docker, polygon, star, vba


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
Invisible bar code generator? pithe CorelDRAW/Corel DESIGNER VBA 4 18-03-2011 07:34
Simple Bar code generator Webster Code Critique 2 06-09-2010 01:41
Hexidecimal Code from RGB generator sallybode New product ideas 3 18-10-2008 17:23
Lorem Ipsum macro generator xenio CorelDRAW/Corel DESIGNER VBA 0 25-08-2006 13:58
Plaid Pattern Generator ddonnahoe CorelDRAW/Corel DESIGNER VBA 0 19-07-2004 10:16


All times are GMT -5. The time now is 11:30.


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