Hi Ronny (and anyone interested),
attached is the latest update of the FREE BDSwapImage macro. The latest version has built upon the QuickSwap module (select 2 images and then swap them with one click) by adding a QuickSwapSize module which not only swaps 2 images, but also swaps their sizes.The macro also has the original module SwapImage module which pops up a userform and allows the user to choose how the 2 images are swapped (e.g. swap the position of their top left corners, bottom right corners, etc). Here is a screen capture of how the modules appear in the Macro Manager docker, assign shortcut buttons/keystrokes to make them one click away:
Refer to the video below to see the intented use of this macro:
Thanks Brian. Will have a look at it.I use your quick swap macro a lot. Much appreciated.
you are welcome. You provided so much help in the Corel Newsgroups that I learnt a great deal from you. I owe you big time!
I like the new version but have one small suggestion for an improvement:How about also swapping the stacking order? I mean, if a 'rectangle' is stacked as number three and a 'circle' as number five and we swap places, the circle should then be number three and the 'rectangle' number five.This would mean that the objects truly swap places, stacking order and if desired also size.Is it possible?
I have made the changes you requested, but only where shapes/images are on the same layer. If they are on the same layer then they will swap position, size and position in the stacking order.
John has sent me some code to try - to perform swapping of stacking orders and layer positions, but i have not had a chance to test this yet, as I have been working on other macros. I will test John's code ASAP and post a further revised macro here if it works ok.
I have amended the macro form in case you ever need that and removed the superfluous Reset button. I also added a swapStackingOrder sub so you can run ANY of the swap functions and then swap stacking position after that. Please note that this feature only works on 2 selected images you have just swapped with the macro, because as they swap values are placed in variables which the swapStackingOrder module needs to run.
Hm, not working as I expected. Sometimes I cannot get it to work at all, possibly because 'swap values are placed in variables which the swapStackingOrder module needs to run'. Thanks for trying though.My idea was that the stacking order should swap when the objects changed place. All in one operation.This should, IMO, be the default mode, since it is the most logical way to swap places.