DataGrid in standalone doesn't´t work

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
emir
Posts: 9
Joined: Fri Dec 10, 2010 11:51 am
Location: Burgenland AUSTRIA Europe

DataGrid in standalone doesn't´t work

Post by emir » Mon Jul 17, 2017 6:06 pm

Hi,
tried to build a standalone from a stack with 2 Datagrids.
Neither in the standalone nor in LC AFTER the build process ends the data grid works. Cannot select a line?!?!!?!

Kind regards,
        Ernst

https://www.dropbox.com/s/rppxcncb3fnv6 ... ecode?dl=0

Klaus
Posts: 10122
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: DataGrid in standalone doesn't´t work

Post by Klaus » Mon Jul 17, 2017 6:29 pm

Servus Ernst,

looks like the Datagrid library did not get copied to hte standalone.

And since there is not substack "Datagrid Template xyz...", "Search for inclusion" in the standalone builder settings will not work as exspected.
Check "Select inclusions for standalone" and manually check all that applies.

Hint:
This is invalid syntax, and I wonder why it has compiled!?
You want:

Code: Select all

...
## set icon to busy
set CURSOR to busy
...
Best

Klaus

emir
Posts: 9
Joined: Fri Dec 10, 2010 11:51 am
Location: Burgenland AUSTRIA Europe

Re: DataGrid in standalone doesn't´t work

Post by emir » Mon Jul 17, 2017 8:26 pm

Hi Klaus,
thanks for quick response!!!
Looked good and really worked once.
But on second trial same situation.
BTW: after building the standalone the stack reopens in LC and the datagrid doesn't´t work there too!?!?!?!?
After closing stack and reopening it it works again!?!?!?!

should there be a substack "Datagrid Template xyz..."???

p.s.: thanks for the hint - thought I could use the cursor icon to animate a button.... ;-(

TerryL
Posts: 59
Joined: Sat Nov 23, 2013 8:57 pm

Re: DataGrid in standalone doesn't´t work

Post by TerryL » Mon Jul 24, 2017 6:52 pm

Hi emir.
Include a substack named "Data Grid Templates Decoy" (exact spelling) as part of the Splash stack. This will force the auto inclusions routine to include the datagrid library in the standalone build. LC v8+ now includes the datagrid library in the manual inclusions option also.

From LiveCode Data Grid pdf:
"...When you build a standalone application Revolution looks for a substack whose name begins with "Data Grid Templates". If it finds one then the revDataGridLibrary stack is added to your standalone application. Some developers prefer to use a launcher (or splash) stack technique. This technique builds a standalone using a stack with very little code in it. In this case the stack used to build the standalone will not have a substack whose name begins with "Data Grid Templates" as no data grids have been added to it.
In this case you will need to create a substack that tricks the Standalone Builder into adding the necessary stack files. From the File menu, create a new substack of your launcher stack. Name the substack "Data Grid Templates Dud" [or "Data Grid Templates Decoy"] and save your launcher stack. Now if you build a standalone application the Standalone Builder will include the necessary data grid [library] stack." Terry
Beginner Lab (LiveCode tutorial) and StarterKit (my public stacks)
https://tlittle72.neocities.org/info.html

Post Reply

Return to “Talking LiveCode”