Author Topic: Better Preview Tool Window  (Read 1453 times)

at5dapa1

  • Senior Community Member
  • Posts: 131
  • Hero Points: 8
Better Preview Tool Window
« on: October 29, 2011, 11:30:50 pm »
This is another patch for the built-in macros, which puts some salt and pepper on the Preview Tool Window.
It gives one button which can freeze the content of the Preview, so that it can be used for visual comparison. It also allows to select and copy text from Preview, or to bookmark, search or copy word from cursor. The file caption from Preview is a text box, not a label, so its content can be selected and copied too.
How is built:
- tagwin_form.e is a new file where I copied the _form _tbtagwin_form from the built-in macro file sysobj.e, and to which is added the new freeze ctl_freeze_preview button. Also the previous ctlbufname label was replaced with ctlbufnametext text box.
- tagwin.e is a full copy of the original built-in macro file with the same name (macros\ tagwin.e) to which I added some code. I tried to surround it with _MY_PATCH_ define, for easier maintenance.
To load the macro, copy the two files in your SlickEdit config folder (or a subfolder of it) and load the tagwin.e (this will automatically load the tagwin_form.e) from menu Macro -> Load Module…
A restart will be required. Ensure first you backup your config folder.
Also consider that if any new hotfix will have a new revision for “tagwin.e” or “_form _tbtagwin_form” then you’ll have to merge the fixes into this patch.


lclevesy

  • Guest
Re: Better Preview Tool Window
« Reply #1 on: October 31, 2011, 01:05:55 pm »
Thank you for your submission. It is in the running for the iPad!

The winner will be announced via our Facebook page https://www.facebook.com/slickedit, Twitter page http://www.twitter.com/slickedit, and on this forum under the main SlickEdit October Macros Challenge Rules & How to Enter post http://community.slickedit.com/index.php/topic,7327.0.html on November 7, 2011.

lclevesy

  • Guest
Re: Better Preview Tool Window
« Reply #2 on: November 01, 2011, 03:09:22 pm »
We'll be announcing the winner of the iPad 2 on November 7th. Until then, your submission has earned a SlickEdit t-shirt! Email your size and address to marketing@slickedit.com to receive one.