[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog: Inputbox default window

From: Thomas Dickey
Subject: Re: Dialog: Inputbox default window
Date: Sun, 31 Jan 2016 11:19:45 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Jan 28, 2016 at 06:31:29PM +0100, Tyler Joseph Huffman wrote:
> Hello!
> I'm developing a small tool to read in barcode scans on a keyboardless
> computer, and I've been using the dialog tool as a library for a C++
> application.
> In the bash example, running:
> $> dialog --inputbox "Hello, world!" 0 0
> Has the cursor default to the input box. However, calling the function:
> dialog_inputbox("", "Hello, world!", 0, 0, 0, 0);
> Should functionally produce the same result, though in this case, the
> default cursor is on the "Ok" button. Is this a bug? And if not,
> perhaps I am misunderstanding a key detail for the default cursor
> placement?

That is done by setting the dialog_vars structure.  In the widget,
it makes this check:

        state = dialog_vars.default_button >= 0 ? dlg_default_button() : sTEXT;

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]