xboxscene.org forums

Pages: 1 2 3 [4]

Author Topic: Some Stuff About The System Ui  (Read 138 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Some Stuff About The System Ui
« Reply #45 on: February 15, 2004, 01:51:00 PM »

CODE
CASE 11
'Save
XMLGetValue EntryMakerDLG IsChecked1 !.Control:1.Selected
XMLGetValue EntryMakerDLG IsChecked2 !.Control:2.Selected
XMLGetValue EntryMakerDLG IsChecked3 !.Control:3.Selected
XMLGetValue EntryMakerDLG IsChecked4 !.Control:4.Selected
XMLGetValue EntryMakerDLG IsChecked5 !.Control:5.Selected
XMLGetValue EntryMakerDLG IsChecked6 !.Control:6.Selected
XMLGetValue EntryMakerDLG IsChecked7 !.Control:7.Selected
XMLCreate EntryXML Config
XMLSetValue EntryXML !.CheckBoxes.Title %IsChecked1%
XMLSetValue EntryXML !.CheckBoxes.Description %IsChecked2%
XMLSetValue EntryXML !.CheckBoxes.Media %IsChecked3%
XMLSetValue EntryXML !.CheckBoxes.Thumbnail %IsChecked4%
XMLSetValue EntryXML !.CheckBoxes.Cover %IsChecked5%
XMLSetValue EntryXML !.CheckBoxes.XBE %IsChecked6%
XMLSetValue EntryXML !.CheckBoxes.Passcode %IsChecked7%
XMLSave EntryXML Z:\EnMaTest.xml
XMLClose
ENDCASE


This is the results when nothing checked
CODE








True



This is the results with everything checked
CODE


true
true
true
true
true
true
True



And the results with everyother one checked
CODE


true

true
false
true
false
True




The 7th checkbox is alway coming up true with a capital T. Any other true values are lowercase. And as you can see there seems to be an issue when the checkbox is false cause sometimes the value is false and others it blank.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Some Stuff About The System Ui
« Reply #46 on: February 15, 2004, 02:30:00 PM »

QUOTE (flattspott @ Feb 15 2004, 06:51 PM)
Got another problem for you BJ.

This one is about checkbox value

In my dialog I have 7 CheckBox control.
I also have a save button control.

This is the code in the XAS file for the save button
CODE
CASE 11
'Save
XMLGetValue EntryMakerDLG IsChecked1 !.Control:1.Selected
XMLGetValue EntryMakerDLG IsChecked2 !.Control:2.Selected
XMLGetValue EntryMakerDLG IsChecked3 !.Control:3.Selected
XMLGetValue EntryMakerDLG IsChecked4 !.Control:4.Selected
XMLGetValue EntryMakerDLG IsChecked5 !.Control:5.Selected
XMLGetValue EntryMakerDLG IsChecked6 !.Control:6.Selected
XMLGetValue EntryMakerDLG IsChecked7 !.Control:7.Selected
XMLCreate EntryXML Config
XMLSetValue EntryXML !.CheckBoxes.Title %IsChecked1%
XMLSetValue EntryXML !.CheckBoxes.Description %IsChecked2%
XMLSetValue EntryXML !.CheckBoxes.Media %IsChecked3%
XMLSetValue EntryXML !.CheckBoxes.Thumbnail %IsChecked4%
XMLSetValue EntryXML !.CheckBoxes.Cover %IsChecked5%
XMLSetValue EntryXML !.CheckBoxes.XBE %IsChecked6%
XMLSetValue EntryXML !.CheckBoxes.Passcode %IsChecked7%
XMLSave EntryXML Z:\EnMaTest.xml
XMLClose
ENDCASE


This is the results when nothing checked
CODE








True



This is the results with everything checked
CODE


true
true
true
true
true
true
True



And the results with everyother one checked
CODE


true

true
false
true
false
True




The 7th checkbox is alway coming up true with a capital T. Any other true values are lowercase. And as you can see there seems to be an issue when the checkbox is false cause sometimes the value is false and others it blank.

What does your Dialog XML look like?
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Some Stuff About The System Ui
« Reply #47 on: February 15, 2004, 04:50:00 PM »

CODE

 

 
     
     Title
 

 
     
     Description
 

 
     
     Media
 

 
     
     Thumbnail
 

 
     
     Cover
 

 
     
     XBE file
 

 
     
     Passcode
 


 
     
     Text
     True
     1
 

 
     
     MD5
     1
 


 
     
     Help
     False
     False
 

 
     
     Save
 

 
     
      Make
 

 
     
     Exit
     1
 


 
     
     
 

 
     
     
 

 
     
     
 

 
     
     
 

 
     
     
 

 
     
     
 

 
     
     
 


 
     
     Entry Maker
 





Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Some Stuff About The System Ui
« Reply #48 on: February 15, 2004, 05:00:00 PM »

biggrin.gif

Remember, identically named nodes in XML are "numbered" from 0, not 1.

The control you THINK is at 7 is actually the 8th control in the dialog XML. Start your controls at 0 and go through 6.


If you want to ID your controls in a manner that makes it easy to remember, start the numbering at 100, then your node index will be the CtrlID-100
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Some Stuff About The System Ui
« Reply #49 on: February 15, 2004, 05:30:00 PM »

Damn, I can't believe I didn't catch that one myself. Sorry for complaining
Logged
Pages: 1 2 3 [4]