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
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
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
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
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
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
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
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.
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.
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
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.
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
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
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
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
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).
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
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
18 matches
Mail list logo