Increase Little Arrows

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Increase Little Arrows

Post by ecann » Fri Jan 10, 2020 1:58 am

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?
Attachments
entries.PNG
entries.PNG (1.42 KiB) Viewed 580 times

ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Re: Increase Little Arrows

Post by ecann » Fri Jan 10, 2020 3:00 pm

Hello please cann anyone help. Elanor cann you help?

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

Re: Increase Little Arrows

Post by Klaus » 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.

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

Re: Increase Little Arrows

Post by Klaus » 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

ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Re: Increase Little Arrows

Post by ecann » Sun Jan 12, 2020 6:28 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4006
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Increase Little Arrows

Post by richmond62 » Sun Jan 12, 2020 7:05 pm

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

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

Re: Increase Little Arrows

Post by Klaus » Sun Jan 12, 2020 7:15 pm

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.

ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Re: Increase Little Arrows

Post by ecann » Mon Jan 13, 2020 12:41 am

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?

ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Re: Increase Little Arrows

Post by ecann » Mon Jan 13, 2020 12:44 am

Cann anyone too help, thank you very much. The on scrollbarLineDec and scrollbarLineInc

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4006
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Increase Little Arrows

Post by richmond62 » Mon Jan 13, 2020 9:32 am

scrollbarLineDec and scrollbarLineInc
Check out the built-in dictionary:
-
Screenshot 2020-01-13 at 11.13.09.png

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

Re: Increase Little Arrows

Post by Klaus » 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
(1.07 KiB) Downloaded 8 times

ecann
Posts: 96
Joined: Wed Oct 26, 2016 12:26 pm

Re: Increase Little Arrows

Post by ecann » Mon Jan 13, 2020 12:22 pm

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.

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 312
Joined: Fri Feb 24, 2006 9:45 am

Re: Increase Little Arrows

Post by elanorb » Mon Jan 13, 2020 12:25 pm

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
Elanor Buchanan
Software Developer
LiveCode

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4006
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Increase Little Arrows

Post by richmond62 » Mon Jan 13, 2020 3:55 pm

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”