KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

ListBox

 
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic
View previous topic :: View next topic  
Author Message
kelp7
KiXforms Dabbler
KiXforms Dabbler


Joined: 16 Jun 2008
Posts: 9

PostPosted: Wed Jul 09, 2008 7:27 pm    Post subject: ListBox Reply with quote

Hi (again!)

I've set up a ListBox on a form which displays strings in an array via this statement:

$ListBox.List = $questions

(where $questions is a string array set up earlier in the script)

This is great and displays each individual element of the $questions array in a list.

How can I access individual elements of this List now to set properties on them? I literally just want to change the FontBold property of particular elements of this list...

any help very much appreciated Wink

Ben
Back to top
View user's profile Send private message
kelp7
KiXforms Dabbler
KiXforms Dabbler


Joined: 16 Jun 2008
Posts: 9

PostPosted: Wed Jul 09, 2008 9:48 pm    Post subject: Reply with quote

Bit of poking around and experimenting and i've solved it. Can just use $ListBox.List(0) or $ListBox.List(1) or $ListBox.List(2) etc I was using square brackets (thinking on the array lines), normal parenthesis have done the trick.
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Jul 10, 2008 6:09 am    Post subject: Reply with quote

This is interesting. Care to post a sample script ?
_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
kelp7
KiXforms Dabbler
KiXforms Dabbler


Joined: 16 Jun 2008
Posts: 9

PostPosted: Thu Jul 10, 2008 10:02 am    Post subject: Reply with quote

Hey, no problem. I'll post something up a bit later on, just got to finishing writing this app today Smile
Back to top
View user's profile Send private message
kelp7
KiXforms Dabbler
KiXforms Dabbler


Joined: 16 Jun 2008
Posts: 9

PostPosted: Thu Jul 10, 2008 10:04 am    Post subject: Reply with quote

Actually, just realised I mentioned about setting FontBold on individual elements of the ListBox, that's something I haven't managed to do actually. The main thing I solved was actually being able to access individual elements of the ListBox and make changes to the text stored in them. Not sure if it's so interesting now Smile
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Jul 14, 2008 6:20 am    Post subject: Reply with quote

not really ... I was keen to see the Individual Item font settings Wink
But hey, post a sample anyway. It's not only me, aye?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group