List separated by lines in a Scrolling List Field

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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

List separated by lines in a Scrolling List Field

Post by Mag » Fri Sep 13, 2013 9:20 pm

Someone know if is there a way to have the items in a list separated by lines in a Scrolling List Field? :oops:

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: List separated by lines in a Scrolling List Field

Post by magice » Fri Sep 13, 2013 9:50 pm

The simple way, would be to just change the font to underlined in the property inspector.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: List separated by lines in a Scrolling List Field

Post by Mag » Sat Sep 14, 2013 12:43 am

Hi magice,

thank you for your reply, unfortunately don't seems to fit my needs. What I would like to do is mimic this kind of list (see attachment, no need to scroll or put icons if necessary)
Attachments
abc.png

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: List separated by lines in a Scrolling List Field

Post by dunbarx » Sat Sep 14, 2013 2:26 am

Mag.

This is a job for a datagrid form. Ever used those?

Craig Newman

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

Re: List separated by lines in a Scrolling List Field

Post by Dixie » Sat Sep 14, 2013 3:05 am

Craig... Not necessarily a job for a datagrid...

Have a look at the attached...I have not included putting an icon in front of the text but you should see how it would be easy to add that when you look at the script and how the group is built in the application browser...
Attachments
magscroll.livecode.zip
(6.8 KiB) Downloaded 246 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: List separated by lines in a Scrolling List Field

Post by dunbarx » Sat Sep 14, 2013 4:53 am

Hey Dixie.

The OP wanted a scrolling field with visible lines and icons in sync. Seems to me that a DG does that out of the box.

Craig

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: List separated by lines in a Scrolling List Field

Post by Mag » Sat Sep 14, 2013 4:05 pm

Dixie wrote:Craig... Not necessarily a job for a datagrid...

Have a look at the attached...I have not included putting an icon in front of the text but you should see how it would be easy to add that when you look at the script and how the group is built in the application browser...
Hi Dixie, great stack indeed. Unfortunately I tend to avoid to use native controls when I can because they add complexity in the code.
dunbarx wrote:Mag.

This is a job for a datagrid form. Ever used those?
Thanks dunbarx. Not used yet, I know that I have to use them, my concern is the duty of the DG set in a complex way to manage your icons and behaviors. So for this project I would like to use something of simple and easy to learn quickly (it's for a quick tutorial).

I used a scrolling list field with large font size and set this properties:

Code: Select all

   set the textHeight of field "myField" to "86"
   set the leftMargin of field "myField" to "30" (this can be set also in Inspector)
   set the textShift of  word 1 to - 1 field "myField" to "-30"
Now would be great to mimic buncing but I know that it's almost impossible... :oops:

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: List separated by lines in a Scrolling List Field

Post by [-hh] » Sat Sep 14, 2013 10:51 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 12:13 pm, edited 1 time in total.
shiftLock happens

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: List separated by lines in a Scrolling List Field

Post by Mag » Sun Sep 15, 2013 1:10 pm

Thank you so much, really interesting stack.

I have a problem trying to center the image because it tend to go too high, actually stays of the baseline of the text so it's ok, but wanting to put a bigger picture would be better if you could turn it down a bit '. However, are just details...

Post Reply