Code snippets & grid
Moderator: Klaus
-
- Posts: 11
- Joined: Sun Jan 06, 2008 1:22 am
Code snippets & grid
1) A code snippet library, similar to the object library but just for text
2) Grid with column & row headers
Having played with trial versions for a number of months I've only just purchased RR having taken advantage of the cheap Enterprise deal. Having now tried out v3 beta I have to say the new debugger & documentation make it feel - for a beginner at least - like a totally different animal. It is just fabulous.
Best Regards
Chris
2) Grid with column & row headers
Having played with trial versions for a number of months I've only just purchased RR having taken advantage of the cheap Enterprise deal. Having now tried out v3 beta I have to say the new debugger & documentation make it feel - for a beginner at least - like a totally different animal. It is just fabulous.
Best Regards
Chris
-
- Posts: 11
- Joined: Sun Jan 06, 2008 1:22 am
Code snippets & grid
Hi Mark,
Thanks for that I wasn't aware of your website.
Best Regards
Chris
Thanks for that I wasn't aware of your website.
Best Regards
Chris
I feel ya on the code snippet library. In fact I was going to attempt to make one, but alas, the A.D.D. kicked in and I never got to it.
As for the Grid Element/Object, you can make one yourself using the table element/object in Rev. And I believe there's a few examples around the Rev community. Check the Rev Online thing in the users section.
As for the Grid Element/Object, you can make one yourself using the table element/object in Rev. And I believe there's a few examples around the Rev community. Check the Rev Online thing in the users section.
actually when I first starting to us revolution I found there was many rev users willing to have code snippets and open stack examples to learn on there own web sites.
google found many of them. many of nice hidden ones that are not link to on the usually crowd sites. many link to web rings also.
The built in Revolution Search engine under the menu-bar in revolution it self works great for searching most things revolution. including searching mail list achieves. (which is great for me since I could never get a subscription to the list.)
Also found most of the web links of people on this forum had examples that where not listed in the built in Revolution Search engine.
The on-line scripting conference stacks where also a great help when moving over to the transcript language. There no longer linked from the main rev site it seems, but still online here.
http://support.runrev.com/scriptingconferences/
anything I found helpful I keep a snippet floating around on a simple home brew plug in stack. and used a simple copy and paste command to add it to a current stack. (like how the examples in rev documentation stack thing works) then Stored most of the scripts just using custom props.
There was also a 3rd party product floating around a few years back called the scripter's scrapbook for code snippets also. that used an online database.
there was few entries for revolution's / metacard Transcript on it. here found there site;
http://www.flexiblelearning.com/ssbk.htm
hope this help for now.
google found many of them. many of nice hidden ones that are not link to on the usually crowd sites. many link to web rings also.
The built in Revolution Search engine under the menu-bar in revolution it self works great for searching most things revolution. including searching mail list achieves. (which is great for me since I could never get a subscription to the list.)
Also found most of the web links of people on this forum had examples that where not listed in the built in Revolution Search engine.
The on-line scripting conference stacks where also a great help when moving over to the transcript language. There no longer linked from the main rev site it seems, but still online here.
http://support.runrev.com/scriptingconferences/
anything I found helpful I keep a snippet floating around on a simple home brew plug in stack. and used a simple copy and paste command to add it to a current stack. (like how the examples in rev documentation stack thing works) then Stored most of the scripts just using custom props.
There was also a 3rd party product floating around a few years back called the scripter's scrapbook for code snippets also. that used an online database.
there was few entries for revolution's / metacard Transcript on it. here found there site;
http://www.flexiblelearning.com/ssbk.htm
hope this help for now.
It took a little while digging thought my old mac to find this stack. But this was my first home-brew code snippet lib plug-in I built for revolution.

It uses 4 basic scripts.
all the code snippets are store as custom properties within a card.
The refresh button is where I put the script to get the customkeys to fill the list field. ( the data names of the snippets) I stored the custom props on another empty-card named rpSnipStore the list field was named rpShowSnips
This was the list field script to display the contents of the custom prop names into the second field I named that field rpShowScrip (very simple)
and last the copy field contents to clipboard script again very simple.
The plus button added opened an edtior to add more scripts, that code is not working correctly in version 3.0 and because I am lazy to debug that now. You can figure that out on your own since I got you started. or just use the property editor built in revolution and add them into though custom props.
When I fix the plus button editor code or basicly figure out why it is no longer working. I may just add this to rev online as another little tool. It not stylish but gets the job done.
Remeber you have the tools to build every little plug in to help your development along way with the revolution. Simply start off simple. you can make it more complex along the way.
hope this helps.
If you like the stack, site mail me. I not interested in adding this to my web site.

It uses 4 basic scripts.
all the code snippets are store as custom properties within a card.
The refresh button is where I put the script to get the customkeys to fill the list field. ( the data names of the snippets) I stored the custom props on another empty-card named rpSnipStore the list field was named rpShowSnips
Code: Select all
--Put a list of snippets into field to nav list
on mouseUp
put the customKeys of cd "rpSnipStore" into field "rpShowSnips"
end mouseUp
Code: Select all
--put the hilited line stored contents into field to display it's contents
on mouseDown
put the selectedText of me into mySelection
put the mySelection of cd "rpSnipStore" into field "rpShowScript"
end mouseDown
Code: Select all
--copy the snippet to clipboard of field
on mouseUp
set the clipboardData["text"] to the text of fld "rpShowScript"
end mouseUp
When I fix the plus button editor code or basicly figure out why it is no longer working. I may just add this to rev online as another little tool. It not stylish but gets the job done.
Remeber you have the tools to build every little plug in to help your development along way with the revolution. Simply start off simple. you can make it more complex along the way.
hope this helps.
If you like the stack, site mail me. I not interested in adding this to my web site.