No. Only iup.matrix.

Scuri
Em 06/11/2014 23:23, "Milind Gupta" <[email protected]> escreveu:

> The problem was that L should be lower case in iup.List
>
> Can the list control have multiple columns of data? Or do we have to use
> the matrix control for that?
>
> Thanks,
> Milind
>
>
> On Thu, Nov 6, 2014 at 4:53 PM, Milind Gupta <[email protected]>
> wrote:
>
>> Hi,
>>         When I run the following code:
>>
>> require("iuplua")
>>
>>
>> GUI = {}
>> GUI.topList = iup.List{"2",visiblecolumns = 2}
>> print(GUI.topList)
>> GUI.botList = iup.List{"1",visiblecolumns = 2}
>> print(GUI.botList)
>> GUI.vertSplit = iup.split{GUI.topList,GUI.botList;orientation =
>> "HORIZONTAL",minmax="200:800", value="500"}
>>
>> GUI.mainDlg = iup.dialog{GUI.vertSplit,shrink="YES", size="HALFxHALF"}
>>
>>
>> GUI.mainDlg:show()
>>
>> -- Main IUP events loop
>> if (iup.MainLoopLevel()==0) then
>>   iup.MainLoop()
>> end
>>
>>
>>
>> I get the following output:
>>
>> userdata: 00A3F5C0
>> userdata: 00A3F638
>> F:/lua/lua52.exe: [string "elem/split.lua"]:13: bad argument #2 to
>> 'Split' (iup handle expected)
>> stack traceback:
>>     [C]: in function 'Split'
>>     [string "elem/split.lua"]:13: in function 'createElement'
>>     [string "iuplua.lua"]:220: in function <[string "iuplua.lua"]:219>
>>     (...tail calls...)
>>     ...\src\GUI.lua:13: in main chunk
>>     [C]: in ?
>>
>> isn't the userdata returned by iup.List a iup handle?
>>
>> What am I doing wrong?
>>
>> Thanks,
>> Milind
>>
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to