View previous topic :: View next topic |
Author |
Message |
kelp7 KiXforms Dabbler

Joined: 16 Jun 2008 Posts: 9
|
Posted: Wed Jul 09, 2008 7:27 pm Post subject: ListBox |
|
|
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
Ben |
|
Back to top |
|
 |
kelp7 KiXforms Dabbler

Joined: 16 Jun 2008 Posts: 9
|
Posted: Wed Jul 09, 2008 9:48 pm Post subject: |
|
|
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 |
|
 |
Jochen KiXforms Devotee


Joined: 05 Mar 2003 Posts: 1204 Location: Stuttgart, Germany
|
Posted: Thu Jul 10, 2008 6:09 am Post subject: |
|
|
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 |
|
 |
kelp7 KiXforms Dabbler

Joined: 16 Jun 2008 Posts: 9
|
Posted: Thu Jul 10, 2008 10:02 am Post subject: |
|
|
Hey, no problem. I'll post something up a bit later on, just got to finishing writing this app today  |
|
Back to top |
|
 |
kelp7 KiXforms Dabbler

Joined: 16 Jun 2008 Posts: 9
|
Posted: Thu Jul 10, 2008 10:04 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
Jochen KiXforms Devotee


Joined: 05 Mar 2003 Posts: 1204 Location: Stuttgart, Germany
|
Posted: Mon Jul 14, 2008 6:20 am Post subject: |
|
|
not really ... I was keen to see the Individual Item font settings
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 |
|
 |
|