Page 1 of 1

Increase Little Arrows

Posted: Fri Jan 10, 2020 1:58 am
by ecann
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?

Re: Increase Little Arrows

Posted: Fri Jan 10, 2020 3:00 pm
by ecann
Hello please cann anyone help. Elanor cann you help?

Re: Increase Little Arrows

Posted: Fri Jan 10, 2020 3:16 pm
by Klaus
Hi ecann,

please show a bit more patience! 8)

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

Posted: Fri Jan 10, 2020 8:48 pm
by Klaus
OK, I had a little time...

"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
Replace the values with the ones you need!

Best

Klaus

Re: Increase Little Arrows

Posted: Sun Jan 12, 2020 6:28 pm
by ecann
Klaus wrote:
Fri Jan 10, 2020 3:16 pm
Hi ecann,

please show a bit more patience! 8)

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.
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.

Re: Increase Little Arrows

Posted: Sun Jan 12, 2020 7:05 pm
by richmond62
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.
Aiblins. 8)

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 8) ) via some sort of dedicated channel rather than an open forum?

Why do I feel that "engineering team" is somehow wrong in this context?
-
Screenshot 2020-01-12 at 20.04.35.png

Re: Increase Little Arrows

Posted: Sun Jan 12, 2020 7:15 pm
by Klaus
ecann wrote:
Sun Jan 12, 2020 6:28 pm
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.
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

Posted: Mon Jan 13, 2020 12:41 am
by ecann
Klaus wrote:
Fri Jan 10, 2020 8:48 pm
OK, I had a little time...

"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
Replace the values with the ones you need!

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

Posted: Mon Jan 13, 2020 12:44 am
by ecann
Cann anyone too help, thank you very much. The on scrollbarLineDec and scrollbarLineInc

Re: Increase Little Arrows

Posted: Mon Jan 13, 2020 9:32 am
by richmond62
scrollbarLineDec and scrollbarLineInc
Check out the built-in dictionary:
-
Screenshot 2020-01-13 at 11.13.09.png

Re: Increase Little Arrows

Posted: Mon Jan 13, 2020 11:27 am
by Klaus
ecann wrote:
Mon Jan 13, 2020 12:41 am
...Hello I have tried this but when I click on the little arrow there is no response. Is there a reason for that?
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...
littlearrowstest.livecode.zip
(1.07 KiB) Downloaded 9 times

Re: Increase Little Arrows

Posted: Mon Jan 13, 2020 12:22 pm
by ecann
Klaus wrote:
Mon Jan 13, 2020 11:27 am
ecann wrote:
Mon Jan 13, 2020 12:41 am
...Hello I have tried this but when I click on the little arrow there is no response. Is there a reason for that?
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...
littlearrowstest.livecode.zip
Thank you soo much for the help. I am grateful.

Re: Increase Little Arrows

Posted: Mon Jan 13, 2020 12:25 pm
by elanorb
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

Re: Increase Little Arrows

Posted: Mon Jan 13, 2020 3:55 pm
by richmond62
Hi everyone
It would be great, Elanor, if you could copy that message anent level of support across here, so that those of us who do not
currently have commercial licences could be aware of the advantages.