Re: LiveCode Datagrid Questions

2010-10-04 Thread Trevor DeVore
On Sat, Oct 2, 2010 at 2:29 AM, Peter Haworth p...@mollysrevenge.comwrote:

 I'm having a number of issues with datagrids created in LiveCode 4.5.
  Datagrids created by Revolution 4.0 still work fine.



 I am unable to create custom column behaviors for any columns using the
 recommended method.  I click the plus sign for the column, the card with the
 row template is displayed, I select the row template group but the Edit
 Group button in the toolbar or on the Object menu is greyed out and doesn't
 function.  If I select the card containing the template for the datagrid,
 then select the Row Template group,  the Edit Group command is available to
 me.


Hi Peter,

Are you sure you are selecting the row template group? By chance do you have
Select Grouped active in the toolbar? If it is then you are selecting one
of the controls in the group and not the group itself.


 I have a default column behavior script which I use for all my datagrids.
  Those created under 4.0 correctly execute the various handlers in that
 script but any created under 4.5 never execute any of the handlers in that
 script (the default column behavior is set to the correct button).


Hard to say without knowing more details. What troubleshooting steps have
you taken thus far?


 I see two new handlers in the default column behavior supplied with
 LiveCode - PreFillinData and ResetData.  What are some uses for these
 handlers?


These two messages are for advanced use cases where you need to know that
data is being unloaded from a row/column.

For example, let's say you dynamically create player objects in rows of a
data grid when the user clicks a play button to sample a song. If the user
then scrolls that row out of view you might want to do something with the
player object you created dynamically. PreFillinData would allow you to do
that.


 I also saw a recent post to this list regarding some new built in drag and
 drop reordering handlers in the default script - they don't appear in my
 default script.


There is no code that goes in the default script. I haven't documented the
drag/drop routines officially but I have posted examples of using it to the
list. I have yet to go through the routines and ensure that I'm completely
happy with the API so they remain undocumented until I do so.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


LiveCode Datagrid Questions

2010-10-02 Thread Peter Haworth
I'm having a number of issues with datagrids created in LiveCode 4.5.   
Datagrids created by Revolution 4.0 still work fine.


I am unable to create custom column behaviors for any columns using  
the recommended method.  I click the plus sign for the column, the  
card with the row template is displayed, I select the row template  
group but the Edit Group button in the toolbar or on the Object menu  
is greyed out and doesn't function.  If I select the card containing  
the template for the datagrid, then select the Row Template group,   
the Edit Group command is available to me.


I have a default column behavior script which I use for all my  
datagrids.  Those created under 4.0 correctly execute the various  
handlers in that script but any created under 4.5 never execute any of  
the handlers in that script (the default column behavior is set to the  
correct button).


I see two new handlers in the default column behavior supplied with  
LiveCode - PreFillinData and ResetData.  What are some uses for these  
handlers?


I also saw a recent post to this list regarding some new built in drag  
and drop reordering handlers in the default script - they don't appear  
in my default script.


I have been using the Data Group Handler plugin.  I have removed it  
from the Plugins folder in the Application bundle but these problems  
did not go away.


Any answers much appreciated.

Pete Haworth









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


Re: LiveCode Datagrid Questions

2010-10-02 Thread zryip theSlug
On Sat, Oct 2, 2010 at 8:29 AM, Peter Haworth p...@mollysrevenge.com wrote:
 I'm having a number of issues with datagrids created in LiveCode 4.5.
  Datagrids created by Revolution 4.0 still work fine.

 I am unable to create custom column behaviors for any columns using the
 recommended method.  I click the plus sign for the column, the card with the
 row template is displayed, I select the row template group but the Edit
 Group button in the toolbar or on the Object menu is greyed out and doesn't
 function.  If I select the card containing the template for the datagrid,
 then select the Row Template group,  the Edit Group command is available to
 me.

 I have a default column behavior script which I use for all my datagrids.
  Those created under 4.0 correctly execute the various handlers in that
 script but any created under 4.5 never execute any of the handlers in that
 script (the default column behavior is set to the correct button).

 I see two new handlers in the default column behavior supplied with LiveCode
 - PreFillinData and ResetData.  What are some uses for these handlers?

 I also saw a recent post to this list regarding some new built in drag and
 drop reordering handlers in the default script - they don't appear in my
 default script.

 I have been using the Data Group Handler plugin.  I have removed it from the
 Plugins folder in the Application bundle but these problems did not go away.

 Any answers much appreciated.

Peter,

To clarify things about DGH (Data Grid Helper):

1) About interaction with the IDE.
- DGH traps double click and click ONLY on datagrid groups.
- it interacts with the LiveCode's inspector ONLY for the objects in
its template area.

2) About scripts
- DGH build scripts to fill column behaviors but it is not able to
change how the datagrid library performs.

3) About templates
- DGH uses its own way to edit the templates of a datagrid in a
special area and never directly in the datagrid template it edits.
- DGH not uses the IDE to edit templates.


So DGH is not capable to generate the issues you describe:
- group capability disable in the IDE  (menu and toolbar)
- handlers not working in a behavior script



Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: LiveCode Datagrid Questions (zryip theSlug)

2010-10-02 Thread Peter Haworth
I understand.  I wasn't placing any blame on DGH.  I always de-install  
any third party products when trying to troubleshoot weird issues like  
this and the problems still exist when DGH is not installed so no  
blame on DGH.


Pete Haworth

On Oct 2, 2010, at 7:09 AM, use-revolution-requ...@lists.runrev.com  
wrote:



Peter,

To clarify things about DGH (Data Grid Helper):

1) About interaction with the IDE.
- DGH traps double click and click ONLY on datagrid groups.
- it interacts with the LiveCode's inspector ONLY for the objects in
its template area.

2) About scripts
- DGH build scripts to fill column behaviors but it is not able to
change how the datagrid library performs.

3) About templates
- DGH uses its own way to edit the templates of a datagrid in a
special area and never directly in the datagrid template it edits.
- DGH not uses the IDE to edit templates.


So DGH is not capable to generate the issues you describe:
- group capability disable in the IDE  (menu and toolbar)
- handlers not working in a behavior script


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