Search found 325 matches

by jalz
Thu Oct 01, 2015 11:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: scrollbar position on data grid
Replies: 3
Views: 2805

scrollbar position on data grid

Hey Guys,

Whats the command to get and set the scrollbar position of the of a data grid?

I've tried the following, but not had any luck as it returns 0

put the scroll of group "dg_data" into tScrollPosition

put the vscroll of group "grp_scrollbar" into tScrollPosition

Thanks
Jalz
by jalz
Thu Oct 01, 2015 11:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Lock screen not quite working right
Replies: 7
Views: 4101

Re: Lock screen not quite working right

I basically rearranged, where I put the lock screen. I wrapped it around the entire bit of code which goes to next card, resize stack etc etc and it seems to be stable. When I just had lock screen wrapped around the resizeStack command, like my example stack it didn't work. Amazing what a little bit...
by jalz
Wed Sep 30, 2015 11:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Lock screen not quite working right
Replies: 7
Views: 4101

Re: Lock screen not quite working right

Hey all, Thank you all for your input, I've removed the lock screen command from the resizeStack and added the command when I call resizeStack on the buttons (left/right) but still encountering scrollbar to jump from the last position to the edge of the card. I've also locked the group on the page a...
by jalz
Tue Sep 29, 2015 11:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Lock screen not quite working right
Replies: 7
Views: 4101

Lock screen not quite working right

Hey guys, Im using the resizeStack handler to apply scrollbars to my page layout of they are needed. The actual code for the page works great when the window of the page is resized by the user. I also call that handler on a navigation button which got to the next card and adds a scrollbar if require...
by jalz
Tue Sep 15, 2015 9:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find a script amongst cards and objects
Replies: 3
Views: 2190

Re: Find a script amongst cards and objects

Thanks Guys, that did the trick!
by jalz
Tue Sep 15, 2015 9:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Find a script amongst cards and objects
Replies: 3
Views: 2190

Find a script amongst cards and objects

Hi Guys, I wrote a script a while ago in my solution which has quite a lot of substacks and cards. Each card also has lots of individual objects on them which may have scripts associated to them. Now the problem is I know what the script is called, but I can't seem to find where it exists (I've chec...
by jalz
Fri Jul 17, 2015 12:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone settings for my app with a database
Replies: 4
Views: 2988

Re: Standalone settings for my app with a database

Hi Guys Thanks for the replies. So close to getting it work! I'm using Klaus' approach where I use the copy using the copy files tab in the standalone and then write the file into the documents folder and access it through this folder. The only problem is, the file copied into the documents location...
by jalz
Tue Jul 14, 2015 12:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone settings for my app with a database
Replies: 4
Views: 2988

Standalone settings for my app with a database

Hi Guys, I have an app which I've developed which has a sqlite database linked to it. The database is in the same folder as my stack script. All work well within the live code environment. I'm experimenting building a standalone using the community edition (7.0.6). The stack compiles correctly (alth...
by jalz
Thu Jul 02, 2015 9:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: datagrid reordering itself
Replies: 5
Views: 3163

Re: datagrid reordering itself

Thanks Craig, Never thought of using dgText, that may have saved me some time in the long run…. Just been walking through my array and the keys are stored in the correct order, i.e. record creation order. It seems the repeat for each key tIndex in tGrid where tIndex seems to start at 8, then goes to...
by jalz
Tue Jun 30, 2015 10:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: datagrid reordering itself
Replies: 5
Views: 3163

datagrid reordering itself

Hi Guys, I have a form datagrid where I enter data. This data goes in fine. I then have a script which puts the contents of the datagrid into a array variable which then loops through the array to display the data outside of the datagrid. The only issue I have found is the order that the array is in...
by jalz
Sat Jun 20, 2015 12:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: applying scrollbars and losing card position
Replies: 1
Views: 1509

Re: applying scrollbars and losing card position

Figured it out using put the scroll of group "grp_scrollbar" into tScrollPosition and then setting the scroll back to this position after the scrollbars have been added.
by jalz
Fri Jun 19, 2015 9:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: applying scrollbars and losing card position
Replies: 1
Views: 1509

applying scrollbars and losing card position

Hi Guys, I have the following code below which applies a scrollbar to my card. I call this script from buttons/anytime there is a change of position for an object (I have a lot of objects down the page that are hidden and appear when certain criteria is met). The problem with it is, when I've scroll...
by jalz
Tue Jun 09, 2015 7:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: on textChanged equivalent for buttons pressed?
Replies: 3
Views: 2141

Re: on textChanged equivalent for buttons pressed?

Hi Craig Yes I know I can apply my script to the to the local mouseUp handler on each button, I just wanted to know if there was global mouseUp handler where I could just instruct the card to call my script when any button is pressed. I think to solve this one quickly so I can move on I'll just call...
by jalz
Tue Jun 09, 2015 10:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: on textChanged equivalent for buttons pressed?
Replies: 3
Views: 2141

on textChanged equivalent for buttons pressed?

Hi Guys, Now that I have my applyScrollBars script working almost exactly as I want it, I've put it/called it from the resizeCard handler which activates the scrollbars on my card depending on whether the user has dragged the card is too small to fit in all the content on that card. I've got various...

Go to advanced search