Thanks, that will be helpful. For now what I did was use the leavewindow_cb
and then check the size of one of the elements in the split to decide
whether the size changed. I will wait for the next release to switch to
valuechanged_cb
Milind
On Thu, Nov 13, 2014 at 5:13 PM, Antonio Scuri <[email protected]>
wrote:
> Yes, because it is implemented internally by the split.
>
> In C you can get the old callback and set the new one, but call the old
> one from the new one. In Lua this is not possible.
>
> What I did was to add the VALUECHANGED_CB callback to be called after the
> value is changed. This will be called also when the dialog is resized and
> the split reajust its size.
>
> Just commit to the SVN.
>
> Best,
> Scuri
>
>
>
>
> On Thu, Nov 13, 2014 at 10:44 PM, Milind Gupta <[email protected]>
> wrote:
>
>> I tried to do the following: (splitter is the split box)
>>
>> local barHandle = iup.GetChild(splitter,0)
>> print(barHandle)
>> function barHandle:button_cb(button,pressed,x,y,status)
>> print("I am here")
>> return iup.DEFAULT
>> end
>>
>> So now whenever I click on the handle I get the callback but it messes up
>> the resizing ability for the split control.
>>
>> Milind
>>
>> On Thu, Nov 13, 2014 at 3:59 PM, Milind Gupta <[email protected]>
>> wrote:
>>
>>> Hi,
>>> Is there any way I can get a call back when the splitter is
>>> adjusted?
>>>
>>> Thanks,
>>> Milind
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users