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.
local iup = require("iuplua")

local dlg = iup.dialog{
    iup.hbox{
        NGAP = 8,
        iup.frame{
            TITLE = 'EDITBOX="NO"',
            iup.vbox{
                NORMALIZESIZE = "HORIZONTAL",
                NGAP = 4,
                iup.button{ TITLE = "TOP", action = function(this) 
print(this.TITLE) end, },
                iup.list{
                    DROPDOWN = "YES",
                    --EDITBOX = "YES",
                    --VISIBLE_ITEMS = 5,
                    VISIBLECOLUMNS = 10,
                    dropdown_cb = function(this, state)
                        print("DROPDOWN_CB", state)
                    end,
                },
                iup.button{ TITLE = "BOTTOM", action = function(this) 
print(this.TITLE) end, },
            },
        },
        iup.frame{
            TITLE = 'EDITBOX="YES"',
            iup.vbox{
                NORMALIZESIZE = "HORIZONTAL",
                NGAP = 4,
                iup.button{ TITLE = "TOP", action = function(this) 
print(this.TITLE) end, },
                iup.list{
                    DROPDOWN = "YES",
                    EDITBOX = "YES",
                    --VISIBLE_ITEMS = 5,
                    VISIBLECOLUMNS = 10,
                    dropdown_cb = function(this, state)
                        print("DROPDOWN_CB", state)
                    end,
                },
                iup.button{ TITLE = "BOTTOM", action = function(this) 
print(this.TITLE) end, },
            },
        },
    },
}

dlg:showxy(iup.CENTER, iup.CENTER)

iup.MainLoop()
------------------------------------------------------------------------------
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