Search found 19 matches
- Fri May 31, 2013 3:05 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: No such object error when stack opens
- Replies: 3
- Views: 2859
Re: No such object error when stack opens
Sorry guys - I think I've solved the problem. Because the value of qnum is set by a mouseenter event and there is also a mousemove event that contains the script that determines the name of the field, the movement of the mouse into the control was triggering the mousemove handler, where qnum would s...
- Fri May 31, 2013 12:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: No such object error when stack opens
- Replies: 3
- Views: 2859
No such object error when stack opens
Hi All I am getting the following error when I first open my stack: _executing at 11:23:04 AM Type_Chunk: no such object Object_Slidercode Line_put the round of tunits into field manfld2 Hint_Man@ I think I know why it is happening but I'm not sure how to deal with the issue. The button 'slidercode'...
- Fri May 31, 2013 11:48 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Block the return key
- Replies: 5
- Views: 5768
Re: Block the return key
Thanks to you both. I like the simplicity of the textchanged option which I have used to trigger an answer dialog. Keeping the position of the cursor, etc. will not be an issue as the trapping of any invalid entry sends an instruction to another button to restore the default content of the field. Re...
- Thu May 30, 2013 11:47 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Block the return key
- Replies: 5
- Views: 5768
Re: Block the return key
Thanks Jan. Didn't realise it was that simple. I'm hoping these users wouldn't be silly enough to paste multiple lines and would accept the consequences of a crash if they did. There is also a "restore default" button that repopulates the field. I wondered if it was possible to identify the object (...
- Wed May 29, 2013 8:39 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Block the return key
- Replies: 5
- Views: 5768
Block the return key
Hi all
Is it possible to prevent a user from pressing the return key in a text field? I know you can set the property "tab on return" but I don't want to use this.
Regards
Terry
Is it possible to prevent a user from pressing the return key in a text field? I know you can set the property "tab on return" but I don't want to use this.
Regards
Terry
- Wed May 29, 2013 11:19 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Intermittent error
- Replies: 4
- Views: 3299
Re: Intermittent error
Hi Craig Managed to solve the problem by creating label fields within the group that have numbers in them and referring directly to these values. So far, 30 minutes without an error message, so fingers crossed. I think it was to do with carving up the group name to get the number but I don't suppose...
- Tue May 28, 2013 5:26 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Intermittent error
- Replies: 4
- Views: 3299
Re: Intermittent error
Hi Craig I've tried the test and, for some reason, it is indeed showing as "not a number" when the mouse leaves the main group (although not every time). This may be because the variable qnum is derived (using chunk character referencing) from the name of a group that has non-numerical characters (e...
- Tue May 28, 2013 3:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Intermittent error
- Replies: 4
- Views: 3299
Intermittent error
Hi All I am getting the following error message when running my application: _executing at 2:21:46 PM Type_Operators +: error in left operand Object_Slidercode Line_put the value of qnum+1 into nxtnum Hint_mouseenter qnum and nxtnum are both declared as global variables at the top of script (before ...
- Sat May 25, 2013 5:42 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: repeating script across multiple objects
- Replies: 3
- Views: 2831
Re: repeating script across multiple objects
Thanks Dixie. Finally got it to work.
Regards
Terry
Regards
Terry
- Sat May 25, 2013 3:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: repeating script across multiple objects
- Replies: 3
- Views: 2831
repeating script across multiple objects
Hi All I have the following script for a custom slider that sets its thumb position and displays the value in a label (Qtr). The slider and label are in a group. on mouseMove put the long id of graphic "tline" of me into CurrentLine put the long id of graphic "thumb1" of me into Currentthumb put the...
- Fri May 24, 2013 8:48 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Multiple custom sliders
- Replies: 8
- Views: 5586
Re: Multiple custom sliders
Hi Craig Thanks for your advice. Fingers crossed, it seems to be working fine now. I've declared Currentline and Currentthumb as Global variables on the card script and removed the local variable declarations. Fixing the null content issue was as simple as moving the position of the line: put item 2...
- Fri May 24, 2013 5:31 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Multiple custom sliders
- Replies: 8
- Views: 5586
Re: Multiple custom sliders
Hi Simon I wonder if you can help? I created this slider array (file attached), based on the one you uploaded and, last night, it was working fine. I opened it again today and I am immediately getting the following error: executing at 8:15:53 PM Type Chunk: error in object expression Object BSQ 12 L...
- Mon May 20, 2013 8:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Multiple custom sliders
- Replies: 8
- Views: 5586
Re: Multiple custom sliders
Hi Simon Thanks very much for this. The code was in the group script, so not sure why mine wouldn't work, but I did notice that the group name in one of the groups I was testing was greyed out, so I couldn't enter a group name (I think I might have accidentally grouped more than one slider when usin...
- Sat May 18, 2013 8:42 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Multiple custom sliders
- Replies: 8
- Views: 5586
Multiple custom sliders
Hi All I have managed to create a vertical slider (with a lot of help from forum members). The slider is contained in a group and consists of a line (tline) and a thumb(thumb1). I want to copy this group to create several sliders, but I can only get the first one to work correctly. I am using the fo...
- Sat May 18, 2013 4:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Custom Vertical slider
- Replies: 10
- Views: 7659
Re: Custom Vertical slider
Hi Guys I got Craig's one-liner to work (I think I accidentally deleted a character from one of the object names the first time). I figured out what you were trying to do but couldn't get Simon's code to work. My workaround is rather simple. As all the sliders will be in the same vertical location o...