Increase Little Arrows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Increase Little Arrows
on scrollbarLineDec pNewPosition
if thumbPosition is startValue then
put thumbPosition into field "entriesValueInventory"
else
put (startValue of me - lineInc of me) into field "entriesValueInventory"
end if
end scrollbarLineDec
on scrollbarLineInc pNewPosition
if thumbPosition is endValue then
put thumbPosition into field "entriesValueInventory"
else
put (startValue of me + lineInc of me) into field "entriesValueInventory"
end if
end scrollbarLineInc
Hello from the above code I want to increase the value of a field by the increment of a little arrow but when I click on the little arrow nothing happens.
What should I do?
if thumbPosition is startValue then
put thumbPosition into field "entriesValueInventory"
else
put (startValue of me - lineInc of me) into field "entriesValueInventory"
end if
end scrollbarLineDec
on scrollbarLineInc pNewPosition
if thumbPosition is endValue then
put thumbPosition into field "entriesValueInventory"
else
put (startValue of me + lineInc of me) into field "entriesValueInventory"
end if
end scrollbarLineInc
Hello from the above code I want to increase the value of a field by the increment of a little arrow but when I click on the little arrow nothing happens.
What should I do?
- Attachments
-
- entries.PNG (1.42 KiB) Viewed 6822 times
Re: Increase Little Arrows
Hello please cann anyone help. Elanor cann you help?
Re: Increase Little Arrows
Hi ecann,
please show a bit more patience!
This is not a supermarket but a forum, means everyone is a volunteer here.
So if someone knows the answer AND has the time, he/she will respond!
Best
Klaus
P.S.
Since if definitively not a specific "Livecode Commercial" question, I will move this thread to the Beginners section.
please show a bit more patience!
This is not a supermarket but a forum, means everyone is a volunteer here.
So if someone knows the answer AND has the time, he/she will respond!
Best
Klaus
P.S.
Since if definitively not a specific "Livecode Commercial" question, I will move this thread to the Beginners section.
Re: Increase Little Arrows
OK, I had a little time...
"Little arrows" work different than a scrollbar or slider, so you need to do soemthing like this:
Replace the values with the ones you need!
Best
Klaus
"Little arrows" work different than a scrollbar or slider, so you need to do soemthing like this:
Code: Select all
on scrollbarLineInc
if fld "entriesValueInventory" > 1 then
## We cannot go lower than 1
subtract 1 from fld "entriesValueInventory"
end if
end scrollbarLineInc
on scrollbarLineDec
if fld "entriesValueInventory" < 10 then
## We cannot go higher than 10
add 1 to fld "entriesValueInventory"
end if
end scrollbarLineDec
Best
Klaus
Re: Increase Little Arrows
Hello is this not a Commercial Forum, what did Livecode promise us when we buy the Indy version they promised there there will be a technical support. So I deserve to be answered by their engineering team.Klaus wrote: ↑Fri Jan 10, 2020 3:16 pmHi ecann,
please show a bit more patience!
This is not a supermarket but a forum, means everyone is a volunteer here.
So if someone knows the answer AND has the time, he/she will respond!
Best
Klaus
P.S.
Since if definitively not a specific "Livecode Commercial" question, I will move this thread to the Beginners section.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Increase Little Arrows
Aiblins.what did Livecode promise us when we buy the Indy version they promised there there will be a technical support. So I deserve to be answered by their engineering team.
But, surely, the "engineering team" would communicate directly with Indy customers (so that us 'bottom feeders' using the
Community version wouldn't get the crumbs falling from the table ) via some sort of dedicated channel rather than an open forum?
Why do I feel that "engineering team" is somehow wrong in this context?
-
Re: Increase Little Arrows
Yes that WAS the "Commercial" forum, but also in THAT forum we are all volunteers!
The forum is sponsored by LC but run almost completely by LC USERS voluntarily if I didn't mention this already.
If you want to take LC into duty, write a mail to: suppport@livecode.com
THAT is what LC means by:
... when we buy the Indy version they promised there there will be a technical support.
Re: Increase Little Arrows
Klaus wrote: ↑Fri Jan 10, 2020 8:48 pmOK, I had a little time...
"Little arrows" work different than a scrollbar or slider, so you need to do soemthing like this:Replace the values with the ones you need!Code: Select all
on scrollbarLineInc if fld "entriesValueInventory" > 1 then ## We cannot go lower than 1 subtract 1 from fld "entriesValueInventory" end if end scrollbarLineInc on scrollbarLineDec if fld "entriesValueInventory" < 10 then ## We cannot go higher than 10 add 1 to fld "entriesValueInventory" end if end scrollbarLineDec
Best
Klaus
Hello I have tried this but when I click on the little arrow there is no response. Is there a reason for that?
Re: Increase Little Arrows
Cann anyone too help, thank you very much. The on scrollbarLineDec and scrollbarLineInc
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Increase Little Arrows
Check out the built-in dictionary:scrollbarLineDec and scrollbarLineInc
-
Re: Increase Little Arrows
I had dragged a fresh "Little Arrows" icon from the TOOL palette onto a new card, added the script and a field to my test card and it worked as advertized!?
See attached test stack...
Re: Increase Little Arrows
Thank you soo much for the help. I am grateful.
Re: Increase Little Arrows
Hi everyone
I just wanted to point to a clarification post from Heather or the level of support provided in the Commercial forum.
https://forums.livecode.com/viewtopic.php?f=68&t=33522
Kind regards
Elanor
I just wanted to point to a clarification post from Heather or the level of support provided in the Commercial forum.
https://forums.livecode.com/viewtopic.php?f=68&t=33522
Kind regards
Elanor
Elanor Buchanan
Software Developer
LiveCode
Software Developer
LiveCode
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Increase Little Arrows
It would be great, Elanor, if you could copy that message anent level of support across here, so that those of us who do notHi everyone
currently have commercial licences could be aware of the advantages.