Thread: Few questions
View Single Post
  #3  
Old 07-20-2008, 08:53 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by cbk1994 View Post
First: I'm not certain that onAction() is called for a GuiMLTextCtrl ... I recommend simply a GuiTextCtrl, there's no reason you need a multi-line one anyway.
From the graal wiki:
"onAction() - is invoked when a button control is pressed, you press the enter-key in a text edit control, or move a slider control"
I think it would look a little strange to have an instant messaging window that when you sent a message it just put it as text on the window itself instead of displaying it in a text box. Not sure o:

Quote:
Originally Posted by cbk1994 View Post
Second: Text list columns work like this:
PHP Code:
new GuiScrollCtrl"blah" )
{
  
// stuff here
  
new GuiTextListCtrl"blahblah" )
  {
    
columns = { 050100120 }; // Where (the x value) at where the new column starts
    
addRow0"Hi \t Yo \t ;o \t sup ); // You don't need the spaces, that's just to show.
  }

This is perfect, thanks!

Quote:
Originally Posted by cbk1994 View Post
Third: How are you using saveLines?
PHP Code:
array.saveLines"path/to/file"false ); // The second paramater is to append; false to overwrite, true to append 
PHP Code:
    case "SaveProfile":
    
temp.params[2];
    
temp.params[1];
    echo(
temp.a);
    echo(
temp.b);
    
temp.a.saveLines("profiles/profile_" params[1] @".txt",0);
    break; 
Echo from temp.a:
"Hello","these","are","test","lines"

Echo from temp.b:
"The_Kez"

Like I said, no change is being made to the file at all.
Reply With Quote