Re: [code] [textadept] ui.dialogs

From: Richard Philips <richard.philips.att.gmail.com>
Date: Tue, 21 Jan 2014 09:47:10 +0100

Hi Mitchell,

No problem!

I mentioned it because, afterwards, you often want to build a table with
the key a value from 'informative_text'
and as value the corresponding value from 'text'.

But I can certainly manage the +1 :-)

Richard

On 01/21/2014 05:13 AM, Mitchell wrote:
> Hi Richard,
>
> On Mon, 20 Jan 2014, Richard Philips wrote:
>
>> Hello Mitchell,
>>
>>
>> just to tell you that ui.dialogs.inputbox with tables works perfectly!
>>
>> There is one minor remark - and I suspect that you considered it as
>> well -
>>
>> it is a pity that the 'informative_text' and 'text' keys do not match.
>
> Why is that? I figured an offset of 1 is easily taken care of. (e.g.
> `table.insert()`)
>
>> This could be solved by putting the main message text in
>> informative_text[0]
>
> This would break the current implementation of Textadept's gtdialog
> interface because it depends on Lua's 1-based table indexes. Patching
> in a test for a zero index feels too messy.
>
> Cheers,
> Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 21 Jan 2014 - 03:47:10 EST

This archive was generated by hypermail 2.2.0 : Tue 21 Jan 2014 - 06:33:11 EST