[Lazarus] Questionnaire GUI component

Sandro Cumerlato sandro.cumerlato at gmail.com
Fri Jun 30 22:46:17 CEST 2017


Thank you Adrian for your reply,
I can create a good layout with Frames, but it looks like I cannot create
multiple frames on the same form... Duplicate name: A component named
"Frame1" already exists.

I tried to create an array of Frames at runtime:

Question 1? (Option A) (Option B)
Question 2? (Option A) (Option B)
Question 3? (Option A) (Option B)
Question 4? (Option A) (Option B)
...
Question 200? (Option A) (Option B)


var
  MyFrames: array[1..200] of TFrame1;


Where am I wrong?

Thank you for your help.

Sandro Cumerlato


[image: Inline images 1]

[image: Inline images 2]

On 30 June 2017 at 21:10, Adrian De Armas <adearmas at gmail.com> wrote:

> Why don't you try with Frames?
> I think It can implement what u need quickly. Just make the special layout
> you need and then just copy the frames.
>
> http://wiki.freepascal.org/Frames
>
>
>
> 2017-06-30 15:33 GMT-03:00 Sandro Cumerlato via Lazarus <
> lazarus at lists.lazarus-ide.org>:
>
>> Hello,
>> I need a GUI component to implement a Questionnaire (label + combo boxes
>> right aligned), all in a line like this:
>>
>>  Question 1? (Option A) (Option B)
>>
>> Is it already available or can you please suggest me a way to implement
>> it quickly? (TComboBox is not what I am looking for)
>>
>> Thank You in advance.
>>
>> Sandro Cumerlato
>>
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus-ide.org
>> http://lists.lazarus-ide.org/listinfo/lazarus
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170630/0fbae60b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error.png
Type: image/png
Size: 5125 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170630/0fbae60b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Frame1.png
Type: image/png
Size: 2543 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170630/0fbae60b/attachment-0003.png>


More information about the Lazarus mailing list