I haven't looked at it yet. I'm on vacation. Be back tomorrow.
Best,
Scuri
Em 26/07/2017 11:02, "Milind Gupta" <milind.gu...@gmail.com> escreveu:
> Hi Antonio,
> Any suggestions why defining the action call back is causing an
> error?
>
> Milind
>
> On Tue, Jul 25, 2017 at 8:42 AM, Milind Gupta <milind.gu...@gmail.com>
> wrote:
>
>> Hi Antonio,
>> Please see the attached example. When I run this I get this
>> error:
>>
>> lua: [string "iuplua.lua"]:139: bad argument #3 to 'SetCallback' (Invalid
>> functi
>> on when set callback.)
>> stack traceback:
>> [C]: in function 'iuplua.SetCallback'
>> [string "iuplua.lua"]:139: in metamethod '__newindex'
>> glcanvasbox2.lua:13: in main chunk
>> [C]: in ?
>>
>>
>> Please can you help me fix it.
>>
>> Thanks,
>> Milind
>>
>>
>> On Tue, Jul 25, 2017 at 6:56 AM, Antonio Scuri <antonio.sc...@gmail.com>
>> wrote:
>>
>>> The IupGLCanvasBox was designed to be a background drawing while the
>>> controls are drawn on the foreground. So I think that one possible approach
>>> is to use this glsubcanvas with zorder=top.
>>>
>>> In the error it seems that you are trying to set a non function as a
>>> callback. You should check that.
>>>
>>> Best,
>>> Scuri
>>>
>>> Em 24/07/2017 19:31, "Milind Gupta" <milind.gu...@gmail.com> escreveu:
>>>
>>> I tried placing a glsubcanvas over the whole canvas box and tried to do
>>> all the drawing in the action callback of the subcanvas but I get this
>>> error then:
>>>
>>> [string "iuplua.lua"]:139: bad argument #3 to 'SetCallback' (Invalid
>>> function when set callback.)
>>> stack traceback:
>>> [C]: in function 'iuplua.SetCallback'
>>> [string "iuplua.lua"]:139: in metamethod '__newindex'
>>>
>>> In my program it points to the link where the action callback function
>>> starts.
>>>
>>> On Mon, Jul 24, 2017 at 3:16 PM, Milind Gupta <milind.gu...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I notice that if I draw anything on the glcanvasbox it is always
>>>> behind the glcontrols like gllabel, etc. Is there a way for me to draw and
>>>> be on top of those controls?
>>>>
>>>> Thanks,
>>>> Milind
>>>>
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>
>>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users