Control of Text Fields

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

alextweedly
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4
Joined: Sat Apr 08, 2006 9:52 am
Contact:

Re: Control of Text Fields

Post by alextweedly » Sun Nov 14, 2021 10:25 am

Replying to myself ...

No - that's the wrong version you pasted in ... it should have been

A simple fix is to do
[code]
on mouseup
if (word 2 of the selectedChunk) <= (word 4 of the selectedChunk) then -- there is a selection
type space
end if
delete char (word 4 of the selectedChunk) of the focusedObject -- remove that space
end mouseUp
[/code]

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Control of Text Fields

Post by richmond62 » Sun Nov 14, 2021 6:44 pm

Why worry: replying to oneself is a well-known feature round these parts. 8)

Post Reply