Re: The Cat ate my mouse

2018-06-16 Thread Richmond Mathewson via use-livecode

Thanks.

Richmond.

On 16/6/2018 10:47 pm, dunbarxx via use-livecode wrote:

Richmond.

Say you have a field 1 with text in it.

on mouseUp
select after char 12 of fld 1
   put the number of words of char 1 to (word 2 of the selectedChunk)of fld 1
into numWords
   select before word numWords of fld 1 -- or after
end mouseUp



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: The Cat ate my mouse

2018-06-16 Thread dunbarxx via use-livecode
Richmond.

Say you have a field 1 with text in it.

on mouseUp
   select after char 12 of fld 1
  put the number of words of char 1 to (word 2 of the selectedChunk)of fld 1
into numWords
  select before word numWords of fld 1 -- or after
end mouseUp



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


The Cat ate my mouse

2018-06-16 Thread Richmond Mathewson via use-livecode

So I am trying to make a text editor in LiveCode that
NEVER uses a mouse (pace the late, great Jeff Raskin).

Not a big problem selecting fields, and positions inwith text in fields 
using

keyUps trapping F-keys.

What IS a problem is HOW to select an word either before or after where
the insertion point has been positioned.

3 glasses of dry white wine fantasy in best alcoholic pseudocode following:

on rawKeyUp RUP
  if RUP = 65470 then
 select after word 1 of field "TEKST"
select the word before the selected
 delete
 else
 pass rawKeyUp
 end if

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Multiple Monitors ; However, LC IDE want a 0,0,X X working rect.

2018-06-16 Thread Sannyasin Brahmanathaswami via use-livecode
I raised the second monitor, then adjusted the arrangement in Mac OSX prefs. It 
changed everything

I hide to fiddle with

set the  topleft of stack "revMenuBar"  to 0,22
save stack "revMenuBar"

put locations didn’t stick on reboot

so I wiped ~/Library/RunRev/##preferencesA##

reboot, then it change

We should not need to wipe the preferences just to set up for new  a monitor 
arrangement

Definitely could use a command for this 

BR


 

On 6/15/18, 11:10 AM, "use-livecode on behalf of Bob Sneidar via use-livecode" 
 wrote:

I have a development menu which has, among other things a command that 
simply sets the loc of the top stack to the screenloc. Centers the stack in the 
monitor. 

I also have found it necessary to record the rect and loc of the stack on 
close so I can restore it on open. 

Bob S


> On Jun 15, 2018, at 12:22 , Sannyasin Brahmanathaswami via use-livecode 
 wrote:
> 
> There on old LED Cinema display that was not worth seeing (slightly 
dimmed) and I tried hooked it up my may book program on with the 32inch LG 
curved display, this giving three monitors.
> The effective working screenrect(s) are as follows
> 
> 0,455,3440,1872# Display 1 the LG
> -1680,1463,0,2490 # Display 2, the LED Cinema display
> -2560,23,0,1440   # my MacPowerbook
> 
> The problem in the arrangement is: if I set the LC IDE to open on any of 
these, the stacks in my app open where I expect to but
> 
> Stack "revNewScriptEditor 1" (SE)
> 
> 0,454,1264,1456
> 
> So to the Prefs stack, ) revPreferencesGUI 
> Property Inspector
> 
> Fortunately there is a work around. I open script editor. Set the working 
rect to 
> 
> 0,600,1264,1456 # this get the whole the screen. Then you *must* make 
change, like add what space, save the editor in it's new location. Had to 
fiddle the rect of revPreferencesGUI also. Save. 
> 
> Then quit LC and open in again. It in the new location.
> 
> I realize how tricky it would be... perhaps this should be a 
"resetToNewMonitorSpace" space which wipes the loc the IDE stack and relocates  
them in  relation to the rect on the revMenuBar, which appears in the right 
locations.
> 
> The rect of other stacks could be set to +100 on topLeft. [fake code]
> 
> Put rect with revMenuBar to tRelocate
> Put (item 1 of tRelocate + 100)  into tLeft
> Put( item 1 of tRelocate  +100) into tTop
> 
> Repeat [for all stacks x in IDE]
>  Set rects of stack [x] 
>  Set the topLeft for stack [x]  to tLeft,tTop
> ## offset they don't appear in top of each other
>  Add 20 to tLeft
>  Add 20 to tTop
> End repeat
> 
> Brahmanathaswami
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dark Mode in macOS Mojave, any thoughts from the mothership?

2018-06-16 Thread panagiotis merakos via use-livecode
Hi Tekne,

We have filed this bug report to track the crash on startup on MacOS Mojave:

https://quality.livecode.com/show_bug.cgi?id=21363

Note that Mojave is currently in early beta, so it might be the case that
this issue is resolved on the next beta. If I remember correctly, a similar
problem affected LC in early beta of High Sierra.

Anyway, if you could attach a crash log to this report, it would be great.

Best regards,
Panos

--

On Sat, Jun 16, 2018 at 9:18 AM, Tekne via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Lc 8 & 9 crash at startup on macOS Mojave
> Older Versions with carbon api run.
>
> Regards
> Riccardo
>
> Sent from my iPhone
>
> Il giorno 15 giu 2018, alle ore 05:53, Colin Holgate via use-livecode <
> use-livecode@lists.runrev.com> ha scritto:
>
> >>> We haven’t yet got a system with it running on yet. If anyone does
> (Colin?)
> >
> > I have several tight deadline things on at the moment, otherwise I would
> have gone ahead and installed it!
> >
> > Come to think of it, I do have an external drive I could try it on.
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dark Mode in macOS Mojave, any thoughts from the mothership?

2018-06-16 Thread Tekne via use-livecode
Lc 8 & 9 crash at startup on macOS Mojave 
Older Versions with carbon api run. 

Regards
Riccardo

Sent from my iPhone

Il giorno 15 giu 2018, alle ore 05:53, Colin Holgate via use-livecode 
 ha scritto:

>>> We haven’t yet got a system with it running on yet. If anyone does (Colin?)
> 
> I have several tight deadline things on at the moment, otherwise I would have 
> gone ahead and installed it!
> 
> Come to think of it, I do have an external drive I could try it on.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode