PDA

View Full Version : Display the properties of the selected object


Sunny13
07-11-2005, 06:17 AM
I have made a component to set the properties of a selected text box. But while calling the JSFL file, using xml based dialog box, it is ready to set the new values to the text box , but does not display the current properties of the text box. Can we display the propertoes of the selected object in the dialog box in JSFL? .. Please help!!

hangalot
07-11-2005, 11:08 AM
if you mean in the dialogue from you xml file it will be possible via FLFile, but i don't know of anyt other way

Sunny13
08-04-2005, 08:37 AM
hi hangalot... I read this post after a long time... I need the method you are talking about..................:)

hangalot
08-04-2005, 10:04 AM
its not a method specificaly, using FLFile you can change file level stuff, so just parsing the xml file would do the trick

Sunny13
08-04-2005, 11:40 AM
confused...!!!!!... not able to understand what you want to say... I need to pass the current parameters in the dialog box...

hangalot
08-04-2005, 11:42 AM
yes. i understand that. do you know what FLFile is? if not read up about it.
xul is just a file containing text, meaning it can be parsed, and with flfile you can change the actual text data in the file in order to adapt it to your needs

Sunny13
08-04-2005, 11:54 AM
Yeah..i have used the FLfile .... but still not able to get it...?

hangalot
08-04-2005, 11:59 AM
lets say your xml file looks like this
<dialog buttons="accept, cancel" title="Embed ranges of text">
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row>
<label value="Ranges" />
<textbox id="range" value=""/>
</row>
etc

then you load this into a flFile stream
use string functions to split it
var arr = str.split(" id=\"range\" value=\"")
and then go str+="id=\"range\" value=\"" + myValue + ...

you get the idea now?

Sunny13
08-04-2005, 12:05 PM
Hope I am not irritating you...plz let me understand with an example...plz do post one whenever you have time.....tnx a lot ..... :)

hangalot
08-04-2005, 02:12 PM
i take from the thank you on the other msg my lat post helped you enough?