IOS Scroller MultiLine Fld

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

IOS Scroller MultiLine Fld

Post by Nakia » Sun Dec 09, 2012 10:45 am

Hi,

I have an IOS Scroller that I need to scroll a multiline text fld.
I have got the scroller creating successfully but it doesn't seem to be passing the scrolling messages to the
text fld. It appears to be more like moving the entire text fld?

I have a feeling I have had this issue before but I just cant remember how I got past it.

The text fld and group have locked locations..

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: IOS Scroller MultiLine Fld

Post by CALL-151 » Sun Dec 09, 2012 2:05 pm

Nakia,

I believe the issue you're referring to has been accepted as a bug. If you have access to the QCC see bug #10555 "iOS native multiline text fields do no send scroll messages"

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: IOS Scroller MultiLine Fld

Post by Nakia » Tue Dec 11, 2012 11:22 am

I'm not sure its the same issue as I have a Scroller working on another stack built and running on the same version of LC.

When I get a spare minute I will strip the stack down and post the stack in hope someone can take a look at it.
But, basically it is a standard IOS Scoller that is sitting over a LC Text Field (Multiline) but it just doesn't seem to pass the
scrolling message to the IOS Text Field.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: IOS Scroller MultiLine Fld

Post by Dixie » Tue Dec 11, 2012 1:45 pm

Nakia...

Attached a stack that scrolls a liveCode textfld..

Dixie
Attachments
LCScroller copy 2.livecode.zip
(2.64 KiB) Downloaded 272 times

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: IOS Scroller MultiLine Fld

Post by CALL-151 » Tue Dec 11, 2012 3:22 pm

OK, so instead of creating a native multiline with mobileControlCreate "multiline" you're using mobileControlCreate "scroller", and then adding a LC multiline text field to that scroller? If so, wouldn't you expect the scroller to scroll the entire object just as if you'd added an image to the scroller?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: IOS Scroller MultiLine Fld

Post by Dixie » Tue Dec 11, 2012 3:30 pm

CALL-151..

No, the liveCodeField is 'grouped'... so the field scrolls within the group.

be well

Dixie

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: IOS Scroller MultiLine Fld

Post by CALL-151 » Tue Dec 11, 2012 4:00 pm

Understood, but I think perhaps he's doing something like this?
Attachments
LCScroller with listfield.livecode.zip
(2.8 KiB) Downloaded 271 times

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: IOS Scroller MultiLine Fld

Post by Dixie » Tue Dec 11, 2012 4:39 pm

CALL-151...

The field you added is stationary, it now takes the text of the 'scrolling' field while at the same time allowing the 'scrolling' field to still scroll.

be well

Dixie
Attachments
LCScroller with listfield 2.livecode.zip
(2.87 KiB) Downloaded 270 times

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: IOS Scroller MultiLine Fld

Post by CALL-151 » Tue Dec 11, 2012 5:37 pm

Right, the stationary field scrolls within the scroller rather than it's contents. Nakia, is this what you mean when you say "It appears to be more like moving the entire text fld?"

Post Reply