View Single Post
  #1  
Old 03-04-2011, 07:27 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by devilsknite1 View Post
SO is there really no way to display line breaks in the GUI even though it's in the file itself?
Try loading lines, since the GuiMLTextControl's lines can be set with object.setlines()

Save the string, since that worked before.

Could work...
PHP Code:
// Load lines, save strings
function onActionServerSide(afisvar1svar2) { 
  switch (
afi) { 
    case 
"callTextTypeFile"
      
temp.text_type_file.loadLines(svar1); 
      
triggerClient("gui"name"displayTextTypeFile"temp.text_type_file); 
    break; 
    case 
"editTextTypeFile"
      
temp.text_type_file.saveString(svar20); 
    break; 
  } 


//#CLIENTSIDE 

// Receive the lines and display on gui
function onActionClientside(cmdparam) { 
  switch (
cmd) { 
    case 
"displayTextTypeFile"
      
MyGuiMultiLineTextControl.setlines(param);  
    break; 
  } 


// Send a string rather than lines 
function sendStringToServer() { 
  
temp.mytext MyGuiMultiLineTextControl.text
  
triggerServer("gui"name"editTextTypeFile"temp.mytext"MyFile.txt"); 

__________________
Reply With Quote