Hi Antonio,
       I was making a property display control like there is one in excel
VBA development environment where there are 2 tabs, one is alphabetic and
one is categorized so any property change in 1 should be synced to the
other. Having this limitation causes a little confusion if the user  starts
editing something in 1 tab and then switches to other hoping he is done and
then later edits the same property in the new tab. 1st he doesn't see the
change he made in the 1st tab to be there in the current tab which he may
or may not notice and 2nd if he changes the property and switches back to
the original tab the original tab edit end event will revert the property
to what he was editing before causing errors and mistakes.
      Although it is a rare scenario. The microsoft property box does not
suffer from this. If we can make edit_mode be independent of the visual
state of the matrix then we can fix it if we store that state in iupmatrix
as a property and update it when the edit_mode changes.
If we cannot fix it I am just wondering what is better, whether to force
end edit_mode and take the new value when a tab change shows
edit_mode="YES" or whether to end the edit mode and put the value that was
last seen in the previous tab.

Hi Karagy,
        I tried your sample program. I think if the control is visible then
it is fine to be still in the editing mode but if it gets hidden then
editing should end.For example take a look at the modification I made to
your code to put those in tabs. Here because of the dual click edit mode is
ended before the tab is changed. But in my case the text box in iupmatrix
does not end the editing when tab is changed.

Milind

On Thu, Dec 18, 2014 at 5:35 AM, Antonio Scuri <[email protected]>
wrote:
>
>   Milind,
>
>   The tab change occurs before the matrix have the opportunity to end the
> edit mode. Unfortunately I have no idea how to fix this since the matrix
> element does not receives any event during a tab change. The matrix is not
> notified that its visible state was changed because it is done by the tab
> native container.
>
>   The edit mode is simply controlled by/informs the visible state of the
> IupText inside IupMatrix. And since both are invisible after a tab
> change edit mode returns NO, and it is also useless to force it to NO.
>
>   Well, what you can do is during the tab change, when the tab is made
> visible, to check if the matrix has edit mode Yes, then force it to NO.
>
> Best,
> Scuri
>
>
>
> On Thu, Dec 18, 2014 at 7:36 AM, Karagy <[email protected]> wrote:
>
>> Hi, Antonio.
>> Hi, Milind.
>>
>> 12/17/2014 19:35, Antonio Scuri пишет:
>>
>>>   Amazing.. I haven't notice that effect. Indeed the edition should have
>>> end
>>> when the user clicks on another control.
>>>
>>
>> Not always.
>> In some of cases, user can be confused by visible behaviour.
>> For example, editable empty dropdown list after pressing list's drop
>> button.
>>
>> For attached example, press dropdown button, then press buttons around.
>> Left list demonstrate understandable behaviour.
>>
>> But for list at right size - not. After pressing it's DD button you can't
>> press "BOTTOM" button at all. It blocked by hidden list's selection area.
>> Other buttons and controls can receive focus only after two clicks.
>>
>> But this combination (dropdown + empty + editable) is rare.
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>
>

Attachment: test.wlua
Description: Binary data

------------------------------------------------------------------------------
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