Search found 2686 matches

by jmburnod
Tue Mar 08, 2022 3:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: alter textstyle 'on the fly'
Replies: 19
Views: 7055

Re: alter textstyle 'on the fly'

Hi Glenn,
Thank you for your message.
Interessant challenge
I wonder if using metadata property would be useful in your "scribe" position.
Just an idea
When you type your marker char you can select a keyword among a list which become the metadata of the previous word.

Best regards
Jean-Marc
by jmburnod
Mon Mar 07, 2022 10:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: alter textstyle 'on the fly'
Replies: 19
Views: 7055

Re: alter textstyle 'on the fly'

Hi Glenn, Glad when I can help This version below works with a selection on keyUp pk put the selectedchunk into tSC put word 2 of tSC into tStart put word 4 of tSC into tEnd if tStart > tEnd then put tEnd into tNumS else put tStart into tNumS end if if pk = "z" then set the forecolor of char tNumS o...
by jmburnod
Sun Mar 06, 2022 5:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: alter textstyle 'on the fly'
Replies: 19
Views: 7055

Re: alter textstyle 'on the fly'

Hi Glen, This works for an insertion, not for a selection on keyUp pk put the selectedchunk into tSC put the value of word 4 of tSC into tNumC if pk = "z" then set the forecolor of char tNumC of fld "notes" to red else set the forecolor of char tNumC of fld "notes" to black end if end keyUp
by jmburnod
Sun Mar 06, 2022 12:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: alter textstyle 'on the fly'
Replies: 19
Views: 7055

Re: alter textstyle 'on the fly'

Hi,
You may use keyup instead rawkeyup (rawkeyup return a integer)
Something like that

Code: Select all

on keyup pKey
if pKey = "z" then
   set the forecolor of the last char of fld "Notes" to red
end if	
end keyup
Best regards
Jean-Marc
by jmburnod
Tue Feb 15, 2022 7:38 pm
Forum: Talking LiveCode
Topic: Continuous scrolling field
Replies: 6
Views: 2682

Re: Continuous scrolling field

Hi Tom,
Just a start

Code: Select all

on textchanged
   set the vscroll of fld 1 to 0
   wait 1 seconds
   put the formattedheight of fld 1 into tFH
   repeat with i = 1 to tFH
      if the optionkey is down then exit repeat
      set the vscroll of fld 1 to i
   end repeat
end textchanged
Best regards
Jean-Marc
by jmburnod
Tue Feb 15, 2022 5:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: draggable image
Replies: 29
Views: 10128

Re: draggable image

Hi Friends,
A other way with a snapshot of target control
stClickSnapMove..zip
(1.23 KiB) Downloaded 104 times
Kind regards
Jean-Marc
by jmburnod
Sun Jan 30, 2022 10:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to enter chars at the place one clicked on? [SOLVED]
Replies: 8
Views: 2991

Re: How to enter chars at the place one clicked on? [SOLVED]

Sorry Richmond,
it works with traversalon = true :D
(not needed with clickcharchunk)
Best
Jean-Marc
by jmburnod
Sat Jan 29, 2022 11:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to enter chars at the place one clicked on? [SOLVED]
Replies: 8
Views: 2991

Re: How to enter chars at the place one clicked on? [SOLVED]

Hi Richmond,
I tested your script but it doesn't work
I get an error, "chunk: no target found" because the selectedchunk is empty
Kind regards
Jean-Marc
by jmburnod
Sat Jan 29, 2022 5:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to enter chars at the place one clicked on? [SOLVED]
Replies: 8
Views: 2991

Re: How to enter chars at the place one clicked on?

Hi,
It seems clickcharchunk function does the job

Code: Select all

on mouseup
   put "(.)" into the clickcharchunk
end mouseup
Best regards
Jean-Marc
by jmburnod
Wed Jan 26, 2022 6:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: shrink in the way
Replies: 8
Views: 2556

Re: shrink in the way

the graphic?
Oups ! Sorry
Yes and you made it :D
Jean-Marc
by jmburnod
Wed Jan 26, 2022 5:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: shrink in the way
Replies: 8
Views: 2556

Re: shrink in the way

Hi Samuel
is it possible?
You may resize field in a loop using the num of points
Best regards
Jean-Marc
by jmburnod
Tue Jan 11, 2022 11:45 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Wait until the sound is done
Replies: 6
Views: 2478

Re: Wait until the sound is done

Hi Bruce,
What Klaus said
Works also with sound file.
Best
Jean-Marc
by jmburnod
Sun Jan 09, 2022 1:18 pm
Forum: iOS Deployment
Topic: Side loading to iPhone. (xCode)
Replies: 1
Views: 2024

Re: Side loading to iPhone. (xCode)

Hi,
Yes Sir,
You need it.
Best regards
Jean-Marc
by jmburnod
Mon Jan 03, 2022 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: move loop
Replies: 10
Views: 4354

Re: move loop

Hi,
I played with your goal
stStartStopMove.zip
(1.11 KiB) Downloaded 88 times
Best regards
Jean-Marc
by jmburnod
Fri Dec 31, 2021 12:54 pm
Forum: iOS Deployment
Topic: unable to install
Replies: 8
Views: 4947

Re: unable to install

Hi,
Thanks for your hints.
How do you understand that previous version of my app doesn't appear on installed app list and xCode ask me if i want replace it ?
Best regards
Jean-Marc

Go to advanced search