[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [help] how to reference a control in iuplua's constructor.
- From: starwing <weasley.wx@...>
- Date: Tue, 21 Dec 2010 18:26:21 +0800
below code using iup, I write all control in dialog's constructor,
then, how can I reference the multiline control?
I don't want write multiline control out of table :-(
is it possible to work out it? thx everyone~
require 'iuplua'
local dialog = iup.dialog {
iup.vbox {
iup.multiline {
name = 'text',
expand = "YES",
};
iup.hbox {
iup.button { title = "Button1";
action = function(self)
-- XXX: set multiline's text, how can I get
multiline control here?
end;
};
iup.button { title = "Button2" };
}
},
title = "Simple Dialog",
size = "QUARTERxQUARTER",
}
dialog:show()
iup.MainLoop()