Thread: Prepopulating a stringcontrol
-
August 20th, 2006, 19:10 #1
- Join Date
- May 2006
- Posts
- 77
Prepopulating a stringcontrol
Hey all, have a feeling the answer to this is somewhere but alas I can't find it.
What I want to do is set up a stringcontrol on a character sheet that comes filled in with a default value, so that rather than being blank when the character is created it is set to a certain value (say "This is a string" for example). I know how to do this with a numbercontrol but just can't figure it out with a string. Anyone clue me in?
-
August 20th, 2006, 21:18 #2Code:
<stringcontrol> <bounds rect="150,74,10,10" /> <static value="value here" /> </stringcontrol>
Should do it. Best of luck
-
August 21st, 2006, 18:22 #3Originally Posted by Azrael Nightstar
-
August 21st, 2006, 21:57 #4
Well that or take the value from a pre-defined data-set?
-
August 21st, 2006, 23:00 #5
couldn't you just set up an empty value line?
e.g.
<stringcontrol name="name">
<bounds rect="45,10,-15,20" />
<empty value="« New Item »" />
</stringcontrol>
Regards
Uni
-
August 22nd, 2006, 03:20 #6
- Join Date
- May 2006
- Posts
- 77
That's perfect Unimatrix, thanks Take that Ged!
-
August 22nd, 2006, 07:20 #7
This si the sign of GOOD software, not even the developers knows what it's true limits are anymore.
-
August 22nd, 2006, 11:59 #8
- Join Date
- Jun 2006
- Location
- San Diego, CA
- Posts
- 45
It's also a sign that there's a lack of internal documentation...
-
April 3rd, 2007, 23:16 #9
This will sound silly but I can't figure out exactly what the stringcontrol does. For example this is the class that makes the list on the right side of the reference window.
Code:<windowclass name="classsmall"> <datasource name="class" /> <defaultsize width="250" height="27" /> <sheetdata> <windowopencontrol name="open"> <icon normal="button_openwindow2" pressed="button_openwindow2down" /> <bounds rect="0,0,24,24" /> <class name="class" /> <description field="name" /> </windowopencontrol> <stringcontrol name="name"> <bounds rect="30,2,150,20" /> <link handler="open" underlineoffset="-2" /> </stringcontrol> </sheetdata> </windowclass>
If the stringcontrol is the control that makes the list then how do the windowopencontrol and the stringcontrol line up since they both are in a list?
-
April 4th, 2007, 17:42 #10
- Join Date
- Mar 2007
- Location
- South Africa
- Posts
- 103
The classsmall windowclass represents ONE line.
The <windowlist class="classsmall"> in the 'referenceroot' windowclass is the tag that turns it into a list.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks