AutoWidth / AutoSize ListBox ???
Posted: Mon Jan 14, 2008 11:40 pm
hello everybody!
first of all, i do not know if this is the right forum, but i'll try, as i havent found anything about my problem in other forums or inside the documentation... if i am wrong in here, please move this thread into the right forum!
the problem
i am starting my first steps with base and i want to accomplish the following:
i created a writer.document and inserted a ListBox element inside a text,
linked this element to the small DB i created with base, in order to be able to select
names of customers from this DB to be inserted inside this document (which happens to be an invoice),
exporting it as a PDF and sending it to them. SO FAR IT ALL WORKS GREAT!
...but!
yeah, there is always a "but"...
i have set the size of this ListBox to lets say 5 cm, "but" selecting a name with only a smal size of lets say 3 cm leaves a big gap after the name on the exported PDF, which is kind of "ugly"... (see attached file)
the question
is it possible to AutoSize the width of this ListBox after selecting a name, so its size is adjusted according to the length of this name?
maybe some kind of macro initiated on the "Changed" Event?
or maybe there is another, much simpler solution to this, i havent come accorss yet...
any help will be appreciated!!!
many thanks in advance!
deeno
first of all, i do not know if this is the right forum, but i'll try, as i havent found anything about my problem in other forums or inside the documentation... if i am wrong in here, please move this thread into the right forum!
the problem
i am starting my first steps with base and i want to accomplish the following:
i created a writer.document and inserted a ListBox element inside a text,
linked this element to the small DB i created with base, in order to be able to select
names of customers from this DB to be inserted inside this document (which happens to be an invoice),
exporting it as a PDF and sending it to them. SO FAR IT ALL WORKS GREAT!
...but!
yeah, there is always a "but"...
i have set the size of this ListBox to lets say 5 cm, "but" selecting a name with only a smal size of lets say 3 cm leaves a big gap after the name on the exported PDF, which is kind of "ugly"... (see attached file)
the question
is it possible to AutoSize the width of this ListBox after selecting a name, so its size is adjusted according to the length of this name?
maybe some kind of macro initiated on the "Changed" Event?
or maybe there is another, much simpler solution to this, i havent come accorss yet...
any help will be appreciated!!!
many thanks in advance!
deeno