Search found 156 matches

by andresdt
Sat Jun 07, 2025 5:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: image is shared between cards instead of unique to the cards
Replies: 9
Views: 5362

Re: image is shared between cards instead of unique to the cards

Hi @Martin-HC One option is to remove the image from the shared group and have one image on each card. Another option is to change the image filename to a different file in preOpenCard . For example: on preOpenCard -- set the filename of image "theImage" to ("./images/" & the short name of this card...
by andresdt
Mon May 12, 2025 4:19 pm
Forum: iOS Deployment
Topic: Help with touchmove
Replies: 4
Views: 1581

Re: Help with touchmove

He modified your code a bit: local sLastX, sTouchID on touchStart pTouchID /* Stores the id of the first touch, since each touch generates an id */ if sTouchID is not an integer then put pTouchID into sTouchID end if end touchStart on touchMove pTouchID, pTouchX, pTouchY if pTouchID is not sTouchID ...
by andresdt
Mon Oct 14, 2024 8:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mouseLoc
Replies: 13
Views: 12933

Re: mouseLoc

Regarding changing the mouse position within the stack rectangle. You can do it like this

Code: Select all

local tRandomPosition
put random(the width of this stack), \ -- X
	random(the height of this stack) \ -- Y
	into tRandomPosition

set the screenMouseLoc to globalLoc(tRandomPosition)
by andresdt
Mon Oct 14, 2024 12:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: mouseLoc
Replies: 13
Views: 12933

Re: mouseLoc

I want to move my pointer away from a button after someone has clicked on it (so that someone with twitchy fingers doesn't keep clicking on it), and am well aware that I can do something like this: set the screenMouseLoc to 500, 500 BUT this is not ideal as I should like the pointer to remain inwit...
by andresdt
Mon Sep 16, 2024 6:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: livecode script on github
Replies: 22
Views: 28101

Re: livecode script on github

GitHub now recognizes Livecode Script as a programming language. If LiveCode Script is not listed in your repository's programming languages ​​and you have .livecodescript files, try creating or updating the .gitattributes file and adding: # Auto detect text files and perform LF normalization *.live...
by andresdt
Wed Aug 21, 2024 12:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Trouble with Looping Through Array in LiveCode
Replies: 5
Views: 3367

Re: Trouble with Looping Through Array in LiveCode

I don't see anything wrong with your code and it works for me. So just out of curiosity. Is the height of the field high enough to display all the lines?

Code: Select all

set the height of field "fruitList" to the formattedHeight of field "fruitList"
by andresdt
Thu Jul 25, 2024 10:48 pm
Forum: Talking LiveCode
Topic: Error Cannot See A Visible Substack
Replies: 12
Views: 7294

Re: Error Cannot See A Visible Substack

:idea: Some other things that would be nice for the OP to check. Just to rule out that it is not an unwanted value of any of the following properties.

Code: Select all

set the blendLevel of stack "settings" to 0
set the windowShape of stack "settings" to 0
by andresdt
Thu Jul 25, 2024 7:28 pm
Forum: Talking LiveCode
Topic: Error Cannot See A Visible Substack
Replies: 12
Views: 7294

Re: Error Cannot See A Visible Substack

Hi, other than making sure your substack is made visible. You can also make sure it is within the visible area of ​​the screen.

Code: Select all

set the loc of stack "settings" to screenLoc() // OR --> the loc of stack (main stack "settings" stack)
show card 1 of stack "settings"
by andresdt
Mon Jul 08, 2024 2:59 pm
Forum: Talking LiveCode
Topic: Markdown library?
Replies: 13
Views: 4937

Re: Markdown library?

Take a look at @trevordevore's gist and if you think it's useful, give him a star. :D
LiveCode Markdown converter: https://gist.github.com/trevordevore/5090459
by andresdt
Wed Jun 12, 2024 5:26 pm
Forum: Talking LiveCode
Topic: What is the point???
Replies: 26
Views: 7668

Re: What is the point???

Maybe it's just an optical effect. Because if you change the background color of the fields and set the showBorder property to false. It is seen that they are indeed where they should be.
by andresdt
Mon Sep 25, 2023 2:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: web widget
Replies: 2
Views: 4759

Re: web widget

Hello Samuele,
Maybe you have access to the website code. If so, try putting

Code: Select all

user-scalable=no
in the metadata of your website. Look at https://stackoverflow.com/questions/227 ... tribute-in

I hope this helps
by andresdt
Wed Apr 05, 2023 4:42 pm
Forum: Talking LiveCode
Topic: Something to remember when scripting substacks
Replies: 14
Views: 9065

Re: Something to remember when scripting substacks

Hi everyone, as @Klaus already said it's part of the flow. So it's not a mistake. If you don't want the substacks to execute the code you have in the preOpenStack of the mainstack. In the preOpenStack check that it is the mainstack otherwise pass the message and that's it. on preOpenStack if me is n...
by andresdt
Thu Nov 24, 2022 3:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Finding the Hilited Field or Button
Replies: 4
Views: 3376

Re: Finding the Hilited Field or Button

You can try with:

Code: Select all

on openCard
    // code
    focus on nothing
end openCard
by andresdt
Fri Oct 21, 2022 3:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: i18L how to use
Replies: 3
Views: 2457

Re: i18L how to use

Hi Does anyone have sample stack use i18L library? I just install the i18L library, but don't know how to use it. Regards Terry Ho In the Guide section of the IDE help search for i18n Library. https://i.postimg.cc/13Fs9VBP/Screenshot-3.png You can also look at the following post: https://livecode.c...
by andresdt
Tue Oct 04, 2022 11:31 am
Forum: Off-Topic
Topic: Newbie needs help, Buttons on rectangular graphic
Replies: 8
Views: 5078

Re: Newbie needs help, Buttons on rectangular graphic

Put a graphic and on top of it your buttons. Then group them and voila