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 »

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 »

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 »

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 »

Nakia...

Attached a stack that scrolls a liveCode textfld..

Dixie
Attachments
LCScroller copy 2.livecode.zip
(2.64 KiB) Downloaded 388 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 »

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 »

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 »

Understood, but I think perhaps he's doing something like this?
Attachments
LCScroller with listfield.livecode.zip
(2.8 KiB) Downloaded 389 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 »

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 390 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 »

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