Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
maybe I did not answer your question correctly.

You can conveniently:

set the rawText of btn "XYZ" to the clipBoardData

Craig



--
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


Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
Hi.

When you change an ordinary property, you set it to a new value:

set the width of btn 3 to 50.

A custom property is "filled" in the same way:

set the rawText of me to chapterOneOfDonQuixote

Custom properties are created just like variables; you just do it. Try this.
make a new button named "XYZ", and:

set the albertEinstein of btn "XYZ" to "E=MC^2"

Now go into the property inspector and look at the custom property pane. Or
you can always:

answer the albertEinstein of btn "XYZ".

Custom properties can hold any value of any kind of any size. They survive
sessions, unlike global variables, and do not have to be declared.

Go practice.

Craig



--
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


Re: Live search box

2018-05-01 Thread Heriberto Torrado via use-livecode

Thank you very much Cray,

Your solution is very useful and works perfectly, but now I have another 
problem.


How could I fill out with texts this custom property ("rawText') by script?

My application is multi-language (English, Spanish and French), so when 
someone clicks on the language button, this custom property must be 
filled with the different data of the different languages.

I cannot see how to do that on the Livecode Dictionary.

Best,
Hery


On 04/30/2018 10:54 PM, dunbarx via use-livecode wrote:

Hi.

This is fun to do. Make two fields. In the target field, the one you will
type into, set a custom property "rawText" to some long list of words,
perhaps chapter 1 of your favorite novel. It is a good idea to strip all
punctation from that text before setting the prop.

In that field, place this handler:

on keyDown tKey
if the length of me > 2 then put line lineOffset(me,the rawText of me) of
the rawText of me into fld 2
pass keydown
end keyDown

Craig Newman



--
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: Live search box

2018-05-01 Thread Bob Sneidar via use-livecode
I wasn't the one asking for anything. :-)

Bob S


> On May 1, 2018, at 10:00 , dunbarx via use-livecode 
>  wrote:
> 
> "I already have that."
> 
> Hmmm. Then what is it that you are asking?
> 
> Craig


___
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: Live search box

2018-05-01 Thread dunbarx via use-livecode
"I already have that."

Hmmm. Then what is it that you are asking?

Craig



--
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


Re: Live search box

2018-05-01 Thread Mark Wieder via use-livecode

On 05/01/2018 08:01 AM, Bob Sneidar via use-livecode wrote:

I already have that. I call it FindBar.


Oooo... that would have been handy for the last pub crawl.

--
 Mark Wieder
 ahsoftw...@gmail.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: Live search box

2018-05-01 Thread Bob Sneidar via use-livecode
I already have that. I call it FindBar. It's a group of objects, and all the 
code and constants are in the field object. I can send you a stack. Currently 
it works with sqlYoga accessed databases and a datagrid, but you can peruse the 
code and see how the findbar hot typing works, then decide how you want to 
proceed after that. 

Bob S


> On Apr 30, 2018, at 18:35 , Heriberto Torrado via use-livecode 
>  wrote:
> 
> /Dear Livecode programmers,
> 
> My customer changed his mind and now they would like to have this:
> 
> "...if you can create a "search like" box when the customer would find his 
> condition by typing the 2 or 3 first letters  and selecting the right one by 
> clicking on it (like the google search results)...".


___
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: Live search box

2018-04-30 Thread dunbarx via use-livecode
Hi.

This is fun to do. Make two fields. In the target field, the one you will
type into, set a custom property "rawText" to some long list of words,
perhaps chapter 1 of your favorite novel. It is a good idea to strip all
punctation from that text before setting the prop.

In that field, place this handler:

on keyDown tKey
   if the length of me > 2 then put line lineOffset(me,the rawText of me) of
the rawText of me into fld 2
   pass keydown
end keyDown

Craig Newman



--
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


Re: Live search box

2018-04-30 Thread Peter Bogdanoff via use-livecode
Hi Hery,

Here’s some possibilities:

http://learninglivecode.blogspot.com/2013/11/creating-autofill-option-for-text-entry.html
 


https://forums.livecode.com/viewtopic.php?t=11342 



Peter

> On Apr 30, 2018, at 6:35 PM, Heriberto Torrado via use-livecode 
>  wrote:
> 
> /Dear Livecode programmers,
> 
> My customer changed his mind and now they would like to have this:
> 
> "...if you can create a "search like" box when the customer would find his 
> condition by typing the 2 or 3 first letters  and selecting the right one by 
> clicking on it (like the google search results)...".
> 
> Well, creating something like this with AJAX and PHP is pretty easy, but I 
> don't know how to do it with livecode.
> Of course I know how to connect with a MySQL database, extract data, insert 
> data, put the data on a grid of field, etc with livecode (I did it for a lot 
> of time and it is pretty easy).
> 
> But create a "live search" is something I never did with Livecode.
> 
> Dou you guys have a tip for that?
> 
> Thank you very much in advance./
> 
> Hery
> //
> ___
> 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

Live search box

2018-04-30 Thread Heriberto Torrado via use-livecode

/Dear Livecode programmers,

My customer changed his mind and now they would like to have this:

"...if you can create a "search like" box when the customer would find 
his condition by typing the 2 or 3 first letters  and selecting the 
right one by clicking on it (like the google search results)...".


Well, creating something like this with AJAX and PHP is pretty easy, but 
I don't know how to do it with livecode.
Of course I know how to connect with a MySQL database, extract data, 
insert data, put the data on a grid of field, etc with livecode (I did 
it for a lot of time and it is pretty easy).


But create a "live search" is something I never did with Livecode.

Dou you guys have a tip for that?

Thank you very much in advance./

Hery
//
___
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