teaser - toolbars (yes, those ones)

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9660
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: teaser - toolbars (yes, those ones)

Post by dunbarx » Tue Apr 24, 2012 11:24 pm

Shaosean.

I guess I need help. I am only using the IDE.

I initially tried keeping the stack and the bundle in the folder they downloaded themselves into. No dice. So I created an external reference within the stack, pointing to the bundle. No dice. I am using a G5 in OS 10.5. Non intel. Is this the issue? If so, I will try it on my 10.6 intel machine at home.

Craig

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Apr 24, 2012 11:29 pm

If it does not work with the sample stack and external in the same folder then it does seem to be Intel only so looks like you will have to wait until you get home..

But this does bring up a valid question - is it worth trying to get the external to work on PPC?

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Sat Apr 28, 2012 11:38 pm

done.. and with PPC support =^.^=

Configurations tested:
  • RunRev 2.8.1, 10.5.8 PPC
  • RunRev 3.0.0, 10.5.8 PPC
  • RunRev 3.5.0, 10.5.8 PPC
  • RunRev 4.0.0, 10.5.8 PPC
  • RunRev 2.8.1, 10.6.8 Intel
  • RunRev 4.0.0, 10.6.8 Intel
Just the docs left *blargh*
Attachments
Screen shot 2012-04-28 at 6.56.09 PM.png
now with selectable toolbar items

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by monte » Tue May 01, 2012 9:52 am

Fantastic!
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7235
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: teaser - toolbars (yes, those ones)

Post by jacque » Tue May 01, 2012 5:36 pm

I'm so glad you're back with us again. :) This is very cool.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: teaser - toolbars (yes, those ones)

Post by micmac » Wed May 16, 2012 6:48 am

Hi there

Is this considerd finished?

Michael

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Wed May 16, 2012 9:36 am

micmac wrote:Is this considerd finished?
almost..

Taligent
Posts: 2
Joined: Tue Jun 05, 2012 3:04 pm

Re: teaser - toolbars (yes, those ones)

Post by Taligent » Tue Jun 05, 2012 3:15 pm

I was dreaming of a true native feeling to my MacOSX applications for ages.
I can't thank you enough for your work miss Sean.

A few questions remaining (unless I've missed something in this thread) :
- How to change the icons/buttons in the toolbar ? And add scripts in buttons ?
- What will be the rules for using your external in our applications ?

Once again, zillions THANKS.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Jun 05, 2012 4:42 pm

The teaser version did not have support for icons..
The buttons are not Rev objects, so the scripts are done by callbacks..

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Re: teaser - toolbars (yes, those ones)

Post by phaworth » Sun Jul 08, 2012 3:46 am

Just came across this and love it!

Any further progress on the "what's missing" list you mentioned? I can't figure out how to put my own items onto the toolbar - I set it to be configurable and tried dragging and dropping icons onto it, but the drop wasn't allowed. Also, how do you find out when an item is clicked, or attach a script to it?

Thanks,
Pete
shaosean wrote:
Screen shot 2012-04-22 at 2.23.59 AM.png
Well, my skills are good enough for me to tackle this and get over all the road blocks and headaches that come with coding in Rev and trying to make externals for it.. This is far from being feature complete and it is just a little bit of a teaser for people to play with and to see what they can do with it..

what do i do with it?!
click the "ssSetWindowToolbar" button
click the "ssToolbarSetVisible" button
now you have a very simple little toolbar

if you want it to be able to customizable, click the "ssToolbarSetConfigurableAttribute" button
if you want it to autosave the changes you have made, you will need to click on the "ssToolbarSetAutoSaveAttribute" button before clicking the "ssToolbarSetVisible" button in the steps listed above..

look at the scripts of the buttons to see what to do (please note that some of the comments are out-dated, but you can see the actual code used and it should make sense)
look at the stack script to see how to handle the callbacks and to build your own custom toolbars (yes, those globals are needed and make it all work)..

what are missing
- icon support, just going to take a day or two to support all the possible methods (Rev imported images, images in the application bundle and built-in system icons)
- all of the toolbar and toolbar item events
- modifying toolbar items on a per window basis
- toolbar item attributes

where and how much!!
http://shaosean.tk/runrev/ssMacToolbar/
pricing has not been set, so free feel to throw out some numbers and lets see where it goes..

now what?
play with it, break it, send me feedback, ask me questions, order me pizzas..

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Jul 10, 2012 11:16 am

phaworth wrote:I can't figure out how to put my own items onto the toolbar
copy the code that is in the sample stack.. just a small word of warning though, lots of the API names have changed to make more sense..
phaworth wrote:I set it to be configurable and tried dragging and dropping icons onto it, but the drop wasn't allowed.
setting the configurable allows you to bring up the customize sheet and you can drag and drop icons from there (hopefully).. if you are trying to drag and drop Rev icons, it will not work..
phaworth wrote:Also, how do you find out when an item is clicked, or attach a script to it?
scripts are handled in a callback message due to limitations with Rev's external interface..

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: teaser - toolbars (yes, those ones)

Post by Mark » Tue Jul 10, 2012 11:31 am

Hi,

Is it possible to use your own icon resources already?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Jul 10, 2012 9:15 pm

Mark wrote:Is it possible to use your own icon resources already?
Not in that teaser version.. But the feature is in the code base now..

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: teaser - toolbars (yes, those ones)

Post by Mark » Tue Jul 10, 2012 9:47 pm

Hi,

That's cool. Am looking forward to it.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by monte » Sun Jul 15, 2012 12:15 am

Hi Shaosean

Any chance you could contact me at monte@goulding.ws? I can't seem to find an email address for you anywhere and there no PMs here.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Mac OS”