RJ TextEd

The Unicode source and text editor
It is currently 28 Apr 2017 03:34
Board index » Add-ons » Extensions



Post new topic Reply to topic  [ 4 posts ] 
Author
Search for:
Message

Offline
Site Admin
User avatar

Joined: 19 Jul 2006 14:29
Posts: 5091

Post Posted: 10 Sep 2013 16:38 
Top  
Extensions are just script files that are run at startup. Then they wait for an event to occur. The event can be a selected menu item, or a button clicked on, added by the extension.

Create all extensions using the Quickbar => User Scripts tools. For more information on how to create an extension - please look in the program help.

Here are two simple extension demo's you can try out.

AddMenu
This one adds a new menu to the program. The menu items just display a simple message box, but it may give you an idea how to create a new menu or new menu items.

Attachment:
AddMenu.zip [1.1 KiB]
Downloaded 711 times


AddSidebarPage
This demo adds a new page in the sidebar at startup. It contains of a drop down list and a listbox. Selecting an item in the drop down list, will change the contents in the listbox. Selecting an item in the listbox, will just show you a message box.



Add an extension to the program
Open "Addons => Extensions" and click on the button "Import from file...". Select a downloaded extension. The extension must be in a ZIP-file.

You can also add extensions from "Addons => Addons online", if available.

Don't forget to restart the program after you have activated an extension.


Attachments:
AddSidebarPage.zip [1.27 KiB]
Downloaded 724 times
 Profile  

Offline
User avatar

Joined: 13 Oct 2009 13:48
Posts: 1417
Location: Kraków, Poland

Post Posted: 18 Sep 2013 12:38 
Top  
Would you please explain what AddSidebarPage is supposed to do again? Where exactly should I look for the new page? ...Ah, I can see it now: I had to change sidebar tabs view to "icons"; with "captions", this new page is not visible and hence inaccessible.

_________________
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus

 Profile  

Offline
Site Admin
User avatar

Joined: 19 Jul 2006 14:29
Posts: 5091

Post Posted: 22 Sep 2013 18:14 
Top  
I've updated the "AddSidebarPage" demo extension and added a caption. The new page should read "Test", if captions are displayed.

 Profile  

Offline

Joined: 02 Apr 2014 16:37
Posts: 14

Post Posted: 03 Apr 2015 21:31 
Top  
Could you please update the links above?

PS. Sorry. I found them.

 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC [ DST ]