Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread TFileInputElementExtended Multiple File Upload component
Mon, Oct 31 2022 8:26 AMPermanent Link

Allen Hunt

This is incomplete work as I learn how to create components.  Basically,

1) I copied the TFileInputElement from WebUI.wbs and TFileComboBox from WebEdits.wbs.

2) Renamed them.

3) Added Result.setAttribute('multiple','');  to TFileInputElementExtended.CreateDOMElement: THTMLElement

4) Added InterfaceManager.RegisterElementClass( TFileInputElementExtended, HTML_TAG_INPUT ); to TFileComboBox.InitializeProperties;  (I don't know if this is right or not.  I'm still trying to figure it out)

5) Put everything in one source file.

6) I probably didn't do the IFDEF declared TFileComboBoxExtended if the compiler is not in DESIGN mode but this seems to work until I figure it out.

I haven't done a callback to show the files selected or the number of files.  And I have made a property so that Multiple may be toggled.  I did send Tim an email requesting this.

I hope it helps you.  If you have any explanations or better suggestions please let me know.  Thank you!

Best regards,
Allen



Attachments: tfilecomboboxextended.zip
Mon, Oct 31 2022 1:42 PMPermanent Link

Walter Matte

Tactical Business Corporation

Thanks Allen - It will help me learn more too, and will pass on anything I might learn!

Walter
Wed, Nov 2 2022 5:22 AMPermanent Link

Allen Hunt

Walter Matte wrote:

> Thanks Allen - It will help me learn more too, and will pass on anything I might learn!

Your welcome and Thank you!  Tim did reply to my email and said he would add multiple file support to TFileComboBox in the next build.  

Best regards,
Allen
Wed, Nov 2 2022 6:12 PMPermanent Link

erickengelke

Avatar

Allen Hunt wrote:
> ...


Very cool.  Well done.

>  Tim did reply to my email and said he would add multiple file support to TFileComboBox in the next build.  

That will be appreciated too.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image