Re: UI design problem

2017-03-05 Thread tbodine via use-livecode
Thanks Jim.


Jim Lambert wrote
> Presumably text in the field is editable by the user.
> Therefore the field text cannot be locked and mousedowns will be used for
> text selection rather than grabbing of the entire field, correct?
> 
> Is the field user resizable? 

A right-click toggles the text field between being editable-text or a
movable block of text, but there are no resize handles on the text field.
The image, however, has resize handles.

When text and image overlap, I use the mousechar to figure out the user's
intent. (If the user clicked on  blank space, I treat that as an image click
and pass the click through to the image control to make it movable. If the
user clicked on headline text or the space between words, then the text
block becomes movable.)

I narrowed my original issue down to this: "grab" doesn't work for a
mousedown that is passed through to another object. So I bailed on "grab"
and I'm using the mouseStillDown message to make either the text or image
follow the mouse until released.

Spent way to much time on this!

Thanks to all for your suggestions.
Tom




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/UI-design-problem-tp4712829p4712846.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: ouch: the beginning of the end

2017-03-05 Thread Alejandro Tejada via use-livecode
Using the free command line utility PDFTK,
I could fill a pdf with interactive fields using
just a text file formatted as a fdf document
(that you could generate with LiveCode).
Tested and works in Windows and Ubuntu Linux.
Could you test if this works on MacOSX?

pdftk.exe C:\PDFwithForms.pdf fill_form C:\data.fdf output FilledPDF.pdf
flatten

There are many samples of PDF and matching FDF files inside
these compressed folders from Adobe:
http://www.adobe.com/devnet/acrobat/fdftoolkit.html

Al
___
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: UI design problem

2017-03-05 Thread Jim Lambert via use-livecode
Food for thought.

Presumably text in the field is editable by the user.
Therefore the field text cannot be locked and mousedowns will be used for text 
selection rather than grabbing of the entire field, correct?

Is the field user resizable? If so, do you present the user with dotted border 
and resize handles?
Could clicking on the field’s (or image’s) border trigger the grab rather than 
a click within its content area?

Jim Lambert


___
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: Remote debugger

2017-03-05 Thread Monte Goulding via use-livecode
Hi Folks

gREVDevelopment is not necessary for the remote debugger to function.

I have create an enhancement report for the remote debugger to automatically 
turn on android internet permissions:
http://quality.livecode.com/show_bug.cgi?id=19370 


The new version of mergDeploy didn’t make DP 5. Hopefully it will make the next 
DP but as I have been off for a week I’m not sure if work is complete on that 
and it will be in the one after. This will enable the IDE to recognise attached 
iOS devices and the Test button to install apps onto them. The only difference 
to Android is you need to tap the app icon on the device to start it running.

Cheers

Monte


> On 5 Mar 2017, at 5:53 pm, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Never mind… went thru the whole process again. on android → force stop the 
> app and then the IDE says the debugging session closed.
> 
> Awesome I found an obscure bug or rather difference
> 
> binfile://someAppPath/Unicode.txt  into myNewText
> 
> works on iOS and Mac OSX
> 
> but not on android
> 
> only 1 slash allowed.. 
> 
> binfile:/someAppPath/Unicode.txt  into myNewText #now works everywhere
> 
> This is a great step forward! Thank you Monte for the hard work!
> 
> BR
> 
> 
> 
> On 3/4/17, 8:37 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>So far, so good; but I could "escape out" -- my app is locked upon the 
> phone, (because I'm in the script editor no doubt) app and IDE on my desktop 
> is locked. There was no way to return to development and look at the source.. 
> I had to quit my main stack and start it again… on the phone I went to 
> settings/Apps/SivaSiva -- force stop…did not have to quit LC though…
> 
> ___
> 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: align field scrolls

2017-03-05 Thread Paul Hibbert via use-livecode
I have a stack that does a similar thing, but with numbers and I just use the 
following script in the main field;

on scrollBarDrag pScroll
   set the vScroll of fld  “lineNumbers" to pScroll

end scrollBarDrag

Provided both fields have the same number of lines and the text properties are 
identical they should stay aligned correctly.

Or a simpler version would be;
set the vScroll of fld 2 to the vScroll of fld 1

Paul



> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode 
>  wrote:
> 
> Hi.
> 
> The part I've got working...
> 
> Two clickable scrolling fields (fld1, fld2), same height and width. Click a
> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
> line. (fld1 is French text, fld2 is an English gloss.)
> 
> The part I would welcome your help with...
> 
> If, say, the hilited line on fld1 is kinda halfway down, how do I get the
> hilited line on fld2 to also be kinda halfway down?
> 
> Here's my scrolling-magic script:
> 
>  set the scroll of fld2 to (tMatchingLineNr - 1) * \
>the textHeight of fld2 - the textHeight of fld2
>  set the hilitedline of fld2 to tMatchingLineNr
> 
> Of course, this ends up with the hilited line of fld2 being at the top.
> How do I get it to scroll just that little bit more so that it aligns with
> the hilited line as seen in fld1?
> 
> 
> Thank you.
> 
> --
> Nicolas Cueto
> ___
> 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: align field scrolls

2017-03-05 Thread Nicolas Cueto via use-livecode
> Provided both fields have the same number of lines...


​I should've added that the fields do not contain the same number of
lines.  They are identical, though, in size and text properties.

Thanks, Paul.

--
Nicolas Cueto


On 6 March 2017 at 11:26, Paul Hibbert via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a stack that does a similar thing, but with numbers and I just use
> the following script in the main field;
>
> on scrollBarDrag pScroll
>set the vScroll of fld  “lineNumbers" to pScroll
>
> end scrollBarDrag
>
> Provided both fields have the same number of lines and the text properties
> are identical they should stay aligned correctly.
>
> Or a simpler version would be;
> set the vScroll of fld 2 to the vScroll of fld 1
>
> Paul
>
>
>
> > On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi.
> >
> > The part I've got working...
> >
> > Two clickable scrolling fields (fld1, fld2), same height and width.
> Click a
> > fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
> > line. (fld1 is French text, fld2 is an English gloss.)
> >
> > The part I would welcome your help with...
> >
> > If, say, the hilited line on fld1 is kinda halfway down, how do I get the
> > hilited line on fld2 to also be kinda halfway down?
> >
> > Here's my scrolling-magic script:
> >
> >  set the scroll of fld2 to (tMatchingLineNr - 1) * \
> >the textHeight of fld2 - the textHeight of fld2
> >  set the hilitedline of fld2 to tMatchingLineNr
> >
> > Of course, this ends up with the hilited line of fld2 being at the top.
> > How do I get it to scroll just that little bit more so that it aligns
> with
> > the hilited line as seen in fld1?
> >
> >
> > Thank you.
> >
> > --
> > Nicolas Cueto
> > ___
> > 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

align field scrolls

2017-03-05 Thread Nicolas Cueto via use-livecode
Hi.

The part I've got working...

Two clickable scrolling fields (fld1, fld2), same height and width. Click a
fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
line. (fld1 is French text, fld2 is an English gloss.)

The part I would welcome your help with...

If, say, the hilited line on fld1 is kinda halfway down, how do I get the
hilited line on fld2 to also be kinda halfway down?

Here's my scrolling-magic script:

  set the scroll of fld2 to (tMatchingLineNr - 1) * \
the textHeight of fld2 - the textHeight of fld2
  set the hilitedline of fld2 to tMatchingLineNr

Of course, this ends up with the hilited line of fld2 being at the top.
How do I get it to scroll just that little bit more so that it aligns with
the hilited line as seen in fld1?


Thank you.

--
Nicolas Cueto
___
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