Re: DataView and DataView Tree Levure Helpers

2019-01-05 Thread Trevor DeVore via use-livecode
On Fri, Jan 4, 2019 at 11:28 AM Trevor DeVore 
wrote:

> On Wed, Jan 2, 2019 at 10:55 PM Trevor DeVore 
> wrote:
> I've added another DataView helper named "DataView Database Cursor Helper"
> and updated the demo app. This helper adds a `dvCursor` property to a
> DataView along with a number of other properties. You open a database
> cursor, assign it to the DataView, and then the DataView will automatically
> move through the cursor in order to display the rows the user is currently
> looking at. Fast and efficient, even for large result sets.
>

I added one other DataView Tree example to the demo. It allows you to
browse the mainstacks in the IDE much like the Project Browser.

https://github.com/trevordevore/dataview_demo

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: DataView and DataView Tree Levure Helpers

2019-01-04 Thread Trevor DeVore via use-livecode
On Fri, Jan 4, 2019 at 3:05 PM JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks very much for your clear reply Trevor.
>
> And i'd like to thank you for your great contributions.
>

You are welcome.


> Given the fact we can always "roll back" , i can give it a try on a
> project and see how it goes.
>
> I was especially interested in the Dataview as perhaps it is faster and
> may scroll smoother than the DG2.
>

I haven't done any comparison tests myself. I would be interested to hear
how it goes. LiveCode still needs to add a new feature that will improve
scrolling speed in any DG-like control. I don't know what the timeline is
for that though.


> (and who knows Levure might be adopted by LC to add as an optional way
> of working)


LiveCode already recommends it to development teams. See this page on their
website:

https://livecode.com/products/livecode-platform/levure/

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.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: DataView and DataView Tree Levure Helpers

2019-01-04 Thread JJS via use-livecode

Thanks very much for your clear reply Trevor.

And i'd like to thank you for your great contributions.

Given the fact we can always "roll back" , i can give it a try on a 
project and see how it goes.


I was especially interested in the Dataview as perhaps it is faster and 
may scroll smoother than the DG2.


Have a good weekend !

(and who knows Levure might be adopted by LC to add as an optional way 
of working)


Op 4-1-2019 om 19:51 schreef Trevor DeVore via use-livecode:

On Fri, Jan 4, 2019 at 12:12 PM JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:


Curious about some things.

Can this dataview do the same things as the datagrid?

Like Form with images and fields on a row via row template or similar?


Yes. Row templates use the same concept as DataGrids.



Does it has scroller for mobile? or has it to be created like with DG1
and other groups?


The scroller for mobile is built in. You can see the code in the
`preOpenControl` message:

https://github.com/trevordevore/levurehelper-dataview/blob/master/dataview_behavior.livecodescript#L68



   l hesitate on using a lot of 3rd party tools, support could be stopped
anytime, and if you then depend on it...

We already depend on LC.


That is a valid concern and one that I share myself. The tools that I
release are open source and there is no official support for them. Given my
responsibilities at my company I have chosen not to sell or officially
support contributions I make available to the LiveCode community. I do,
however, want to contribute non-proprietary work I do to the community so
that we can all make better apps. I have chosen to do that through making
the code available on GitHub and using the MIT license. I also try to
document them as best as I can given the time I have available. Everyone
has full access to the source code and others can contribute to the source
code. For example, three other people have contributed to Levure besides
myself. They contribute by helping with docs, submitting code updates, and
reporting issues. You can see the list of contributors here:

https://github.com/trevordevore/levure/graphs/contributors



Like i like to give levure a try, but also hesitate, can i turn back to
the "normal" way of building an app?


You can always go back to how you were developing your apps previously. How
much "unwinding" would need to be done depends on how many changes you make
to your app in order to adopt everything that Levure has to offer.

Regarding what is "normal" – Outside of apps that only use a handful of
stack files, I honestly don't know that there is a "normal" way of building
an app in LiveCode. I have seen a lot of different organizational
approaches over the years. Since LiveCode doesn't have a "project" concept
it seems that everyone tries to create their own version of what a project
should be. At least with Levure you are using a well-documented system
whose source code is available and that is at least being used by some
other people.

Let me know if you have any further questions.



___
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: DataView and DataView Tree Levure Helpers

2019-01-04 Thread Trevor DeVore via use-livecode
On Fri, Jan 4, 2019 at 12:12 PM JJS via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Curious about some things.

Can this dataview do the same things as the datagrid?
>
> Like Form with images and fields on a row via row template or similar?
>

Yes. Row templates use the same concept as DataGrids.


> Does it has scroller for mobile? or has it to be created like with DG1
> and other groups?
>

The scroller for mobile is built in. You can see the code in the
`preOpenControl` message:

https://github.com/trevordevore/levurehelper-dataview/blob/master/dataview_behavior.livecodescript#L68


>   l hesitate on using a lot of 3rd party tools, support could be stopped
> anytime, and if you then depend on it...
>
> We already depend on LC.
>

That is a valid concern and one that I share myself. The tools that I
release are open source and there is no official support for them. Given my
responsibilities at my company I have chosen not to sell or officially
support contributions I make available to the LiveCode community. I do,
however, want to contribute non-proprietary work I do to the community so
that we can all make better apps. I have chosen to do that through making
the code available on GitHub and using the MIT license. I also try to
document them as best as I can given the time I have available. Everyone
has full access to the source code and others can contribute to the source
code. For example, three other people have contributed to Levure besides
myself. They contribute by helping with docs, submitting code updates, and
reporting issues. You can see the list of contributors here:

https://github.com/trevordevore/levure/graphs/contributors


> Like i like to give levure a try, but also hesitate, can i turn back to
> the "normal" way of building an app?
>

You can always go back to how you were developing your apps previously. How
much "unwinding" would need to be done depends on how many changes you make
to your app in order to adopt everything that Levure has to offer.

Regarding what is "normal" – Outside of apps that only use a handful of
stack files, I honestly don't know that there is a "normal" way of building
an app in LiveCode. I have seen a lot of different organizational
approaches over the years. Since LiveCode doesn't have a "project" concept
it seems that everyone tries to create their own version of what a project
should be. At least with Levure you are using a well-documented system
whose source code is available and that is at least being used by some
other people.

Let me know if you have any further questions.

-- 
Trevor DeVore
CTO - ScreenSteps
www.screensteps.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: DataView and DataView Tree Levure Helpers

2019-01-04 Thread JJS via use-livecode

Curious about some things.

Can this dataview do the same things as the datagrid?

Like Form with images and fields on a row via row template or similar?

Does it has scroller for mobile? or has it to be created like with DG1 
and other groups?



 l hesitate on using a lot of 3rd party tools, support could be stopped 
anytime, and if you then depend on it...


We already depend on LC.

Like i like to give levure a try, but also hesitate, can i turn back to 
the "normal" way of building an app?


Thanks.

Op 4-1-2019 om 18:28 schreef Trevor DeVore via use-livecode:

On Wed, Jan 2, 2019 at 10:55 PM Trevor DeVore 
wrote:


Over the holiday break I took time to package up some UI controls I use in
my own projects and make them available as helpers for Levure apps*. The
controls are named "DataView" and "DataView Tree". The DataView is a
leaner, more efficient DataGrid Form. It allows you to efficiently display
highly customized rows of data on desktop and mobile. The DataGrid Tree is
built on top of the DataView and works with a tree structure.


I've added another DataView helper named "DataView Database Cursor Helper"
and updated the demo app. This helper adds a `dvCursor` property to a
DataView along with a number of other properties. You open a database
cursor, assign it to the DataView, and then the DataView will automatically
move through the cursor in order to display the rows the user is currently
looking at. Fast and efficient, even for large result sets.

Demo: https://github.com/trevordevore/dataview_demo

DataView Database Cursor Helper:
https://github.com/trevordevore/levurehelper-database_dbcursor



___
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: DataView and DataView Tree Levure Helpers

2019-01-04 Thread Trevor DeVore via use-livecode
On Wed, Jan 2, 2019 at 10:55 PM Trevor DeVore 
wrote:

>
> Over the holiday break I took time to package up some UI controls I use in
> my own projects and make them available as helpers for Levure apps*. The
> controls are named "DataView" and "DataView Tree". The DataView is a
> leaner, more efficient DataGrid Form. It allows you to efficiently display
> highly customized rows of data on desktop and mobile. The DataGrid Tree is
> built on top of the DataView and works with a tree structure.
>

I've added another DataView helper named "DataView Database Cursor Helper"
and updated the demo app. This helper adds a `dvCursor` property to a
DataView along with a number of other properties. You open a database
cursor, assign it to the DataView, and then the DataView will automatically
move through the cursor in order to display the rows the user is currently
looking at. Fast and efficient, even for large result sets.

Demo: https://github.com/trevordevore/dataview_demo

DataView Database Cursor Helper:
https://github.com/trevordevore/levurehelper-database_dbcursor

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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


DataView and DataView Tree Levure Helpers

2019-01-02 Thread Trevor DeVore via use-livecode
Hi folks,

Over the holiday break I took time to package up some UI controls I use in
my own projects and make them available as helpers for Levure apps*. The
controls are named "DataView" and "DataView Tree". The DataView is a
leaner, more efficient DataGrid Form. It allows you to efficiently display
highly customized rows of data on desktop and mobile. The DataGrid Tree is
built on top of the DataView and works with a tree structure.

I've prepared a demo project with examples of each type of control. Here
are the github repos for the demo project and the controls themselves.

Demo Github repo: https://github.com/trevordevore/dataview_demo
DataView Github repo: https://github.com/trevordevore/levurehelper-dataview
DataView Tree Github repo:
https://github.com/trevordevore/levurehelper-dataview_tree

I have also posted a video which walks through the demo project:

https://youtu.be/euIHj1Qrokk

While there is still work to do on the documentation, the demo stack can
help the motivated developer start using the controls in their own projects.

* Of course the code will work in apps that don't use the Levure framework.
You just need to integrate all of the stacks and scripts into your app
manually.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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