Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
Posted a demo stack showing a DG with a behavior button in front of the DG library behavior. https://github.com/bwmilby/lc-misc/tree/master/NestedDGBehavior There is an image of the stack uploaded as well. The preOpenStack handler will update the script (LC9) which will then be available until

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
PR submitted on Bug 21427. https://github.com/livecode/livecode-ide/pull/1987 Since it is a full PR, I went ahead and switched over to using a script local everywhere and initialize it when the DG is initialized. I also looked for an object in the DG resource stack instead of hard coding the

Re: Storing Images for use by Custom Controls

2018-07-24 Thread scott--- via use-livecode
Hello Simon, I see I probably misunderstood what you were trying to do. With a custom control I might be tempted to store the images in a customProp if I wanted multiple resolutions to travel with the group object. Then do something like setting the imageData of the image. — Scott Elementary

Re: Storing Images for use by Custom Controls

2018-07-24 Thread scott--- via use-livecode
Hello Simon, When you say "compared to storing the images on a card or in a folder” it suggests two very different ways of organizing your source images. If you are taking advantage of LiveCode’s automagical ability to pick the correct resolution image then you need to have the images in your

Re: Oauth2 (Dropbox) on iOS

2018-07-24 Thread Pi Digital via use-livecode
Open a console with either the device connected or the simulator and see what calls are made when the allow button is pressed > On 24 Jul 2018, at 19:20, Ben Rubinstein via use-livecode > wrote: > > I feel I've been through this before, but I've not been on it for a while, > and I'm still

Oauth2 (Dropbox) on iOS

2018-07-24 Thread Ben Rubinstein via use-livecode
I feel I've been through this before, but I've not been on it for a while, and I'm still (again) stuck. Using Oauth2 to connect an app to the Dropbox API works fine on desktop. On iOS, I get the overlay; with the Dropbox log-in; I sign in, and it then shows the message that this app would

Re: Storing Images for use by Custom Controls

2018-07-24 Thread Bob Sneidar via use-livecode
Never mind I figured out why it wasn't working when I tested it. I was copy/pasting the custom control group into a stack on the desktop, but my images were relatively linked to png's in a subfolder in one of my project folders! LOL! It works fine. Bob S > On Jul 24, 2018, at 09:43 , Bob

Re: Storing Images for use by Custom Controls

2018-07-24 Thread Bob Sneidar via use-livecode
Hmmm just tested. Doesn't seem to work. I'll have to investigate why. The old script works though I pasted it numerous times. Bob S > On Jul 24, 2018, at 09:35 , Bob Sneidar via use-livecode > wrote: > > No sooner said than done. Keep in mind this method depends on four things: > > 1.

Re: Storing Images for use by Custom Controls

2018-07-24 Thread Bob Sneidar via use-livecode
No sooner said than done. Keep in mind this method depends on four things: 1. Your main group consists of a number of child groups composed of three controls: a button, an icon image and a disabledIcon image 2. Your button names begin with "btn" and your images begin with "img" eg. "btnNew" 3.

Re: Storing Images for use by Custom Controls

2018-07-24 Thread Bob Sneidar via use-livecode
I have a custom control group with a series of buttons, each with an enabled icon and a disabled icon. I have this if the group script, which should give you some idea how to proceed: on newBackground -- Relink buttons to graphics as they all have different ID's now set the icon of button

Storing Images for use by Custom Controls

2018-07-24 Thread Simon Knight via use-livecode
Is there an elegant method of storing images for use by a custom control? I have tried adding the images to the custom control group but the buttons in copies of the first group refer back to the first group so there is no advantage when compared to storing the images on a card or in a folder.

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Bob Sneidar via use-livecode
Never mind Brian, it works. I had the behavior of the custom button set the the behavior STACK and NOT the reDataGridLibrary stack button (now empty). Once I got the behavior of the custom button set to the old behavior button, the datagrid now works! You guys are freaking geniuses! Bob S

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Brian Milby via use-livecode
I’ll put something together tonight. The code in the library has to be updated before opening a card with a DG that has the adjusted behavior chain. I have an idea on how to do it in script, but need to test it out to verify it will work. On Jul 24, 2018, 9:54 AM -0500, Bob Sneidar via

Re: Datagrids and Nested Behaviors

2018-07-24 Thread Bob Sneidar via use-livecode
I did so. I get this when opening my test stack: 91,260,123 62,260,123 77,260,123 456,260,57 534,260,123 253,260,123 241,236,1,_Initialize 353,0,0,stack "/Applications/LiveCode Community 9.0.1 (rc

Re: Example of Livecode function settings array syntax?

2018-07-24 Thread Keith Clarke via use-livecode
Hi Charles, Many thanks that’s exactly the cross-reference needed in the docs and has me over that hurdle …and I’m onto a whole new set of error messages now! :-) Best, Keith > On 24 Jul 2018, at 09:27, Charles Warwick via use-livecode > wrote: > > Hi Keith, > > If you take a look at the

Re: Example of Livecode function settings array syntax?

2018-07-24 Thread Charles Warwick via use-livecode
Hi Keith, If you take a look at the following LC lesson for uploading a file via FTP with tsNet, it shows how to add a username and password to the settings parameter of a tsNet function (which in the example is the tsNetUploadSync command).

Example of Livecode function settings array syntax?

2018-07-24 Thread Keith Clarke via use-livecode
Hi folks, I’m trying to add username & password to the pSettings parameter in the tsNetPost function but have no clue on the correct syntax for settings parameter arrays. Unfortunately, the documentation is not helpful in this regard for the infrequent user - no brief syntax description, code

Re: Datagrids and Nested Behaviors

2018-07-24 Thread BNig via use-livecode
Brian That is a nice modification, makes it faster and is still only in one place. >I also noticed that there are extra "stack" references in the code (stack >_ResourceStack instead of just _ResourceStack 4/10 uses). to my surprise both versions work. Kind regards Bernd Brian Milby via