Thanks,
             I was able to solve the problem. Here is what I did:

1. In edition_cb I check if the cell goes into editing and it is a text box
then I record the row and column where the editing is happening
2. If a tabchange_cb event happens then I check whether I have an open text
box in the old tab. If yes I copy the contents of the text box into the
matrix cells of the linked matrices.
3. In the tabchange_cb event I also check whether the current tab had any
editing open, if yes then I place the cell's current contents into the open
text box and then do edit_mode = "NO"

To read and write to the text box I discovered that iup.GetChild(matrix,0)
always points to the text control

The control is working good now.

Milind



On Fri, Dec 19, 2014 at 9:57 AM, Karagy <[email protected]> wrote:
>
>
> Yep.
> See "on_leave" callback for second tab in attached example.
> When you leave tab, it print value of edited text field.
>
>
> 12/19/2014 11:02, Milind пишет:
>
>  Is it possible to read the current value in the editing text box? If I
>> can read that then I can track the edition and read the current value and
>> finalize it. Is it possible yo access the text box?
>>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to