#120 Remove restriction on number of buttons in macro dialogs

closed-accepted
nobody
Program (79)
5
2005-02-11
2004-07-15
Tony Balinski
No

This patch removes the restriction on the number of
buttons available for NEdit macro dialogs. Since the 10
argument limit has been removed, there is no reason for
not allowing more buttons (other than the practical
limit of screen geometry!). However, the dialog
built-ins did not allow for more than a total of ten
arguments because they preallocated a set number of
buffers for integer to string argument conversions.
This patch only uses one such buffer, using it for all
integer to string conversions, and overwriting it each
time. These conversions are performed twice: once
during argument validation (arguments can only be
string or integer), and again when generating the
buttons themselves.

Discussion

  • Tony Balinski
    Tony Balinski
    2004-07-15

     
    Attachments
  • Tony Balinski
    Tony Balinski
    2005-02-11

    • status: open --> closed-accepted
     
  • Tony Balinski
    Tony Balinski
    2005-02-11

    Logged In: YES
    user_id=618141

    Added to CVS.