how to add Columns and Rows in Table Widget / Columnar List Box

101 views
Skip to first unread message

Vilas Suvarnakar

unread,
Jul 29, 2019, 9:01:02 AM7/29/19
to VA Smalltalk
hello Everyone,

I'm trying to implement Table Widget / Columnar List Box in my application.
but not able to add columns and rows dynamically.

Request for help on the same.

Regards,
Vilas

Joachim Tuchel

unread,
Jul 29, 2019, 10:20:45 AM7/29/19
to VA Smalltalk
Vilas,


you didn't mention what exact GUI tool/framework you are using. Is it some Abt Visual Part, a WindowBuilder Application or some hand written Cw/EwWidgets code you try to extend?


Joachim

Vilas Suvarnakar

unread,
Jul 30, 2019, 12:55:33 AM7/30/19
to VA Smalltalk
hi Joachim,

Good morning.

I'm using VASmalltalk ( installed 9.1 and Widget) and want to implement Table Widget / Columnar List Box in my Windows based application.

Thank you for your reply.

Regards,
Vilas

Joachim Tuchel

unread,
Aug 3, 2019, 2:34:30 AM8/3/19
to VA Smalltalk
Vilas,

your info is not enough. VA ST comes with at least 3 layers of GUI code, and you can possibly also use WindowBuilder, which is an add-on from Instantiations. Each of them offers more or less comfortable ways of doing what you want. Are your using the Composition Editor to visually construct your GUIs?

Which Widget are you using or planning to use? Or is this part of your question?

I guess once you specify, we can find a way of adding columns to a widget.

Joachim

Seth Berman

unread,
Aug 3, 2019, 2:37:01 PM8/3/19
to VA Smalltalk
Greetings,

Thank you Vilas for your question to our Instantiations support channel earlier this week concerning WidgetKit Pro.
I know one of our engineers had a few correspondents with you and got you official examples to get started.
If you require additional or custom technical support/training from us, you can send an email to sa...@instantiations.com and
we can get an engineer dedicated to helping you out.

Kind Regards,

- Seth

Vilas Suvarnakar

unread,
Aug 4, 2019, 12:41:05 AM8/4/19
to VA Smalltalk
hi Joachim,

Good morning.

Yes, I'm using Composition Editor to visually construct GUI. I've added the Table Widget Control on my main UI Window. Please find the attached screenshot of the same.

MainUI.png

Please tell me the way how can we add columns and rows.

Thank you.

Regards,
Vilas

Vilas Suvarnakar

unread,
Aug 4, 2019, 12:42:49 AM8/4/19
to VA Smalltalk
hi Seth,

Thank you for your mail.
I got the support for WidgetKit Pro and I've successfully added this into my application.

Regards,
Vilas

Vilas Suvarnakar

unread,
Aug 8, 2019, 12:11:23 AM8/8/19
to VA Smalltalk
hi Joachim,

Good morning.

Could you please guide me on this.

How can I create a application that has Table Widget Control with rows and columns in VASmalltalk.

Thank you for your support and cooperation.

Regards,
Vilas

Louis LaBrunda

unread,
Aug 8, 2019, 10:22:33 AM8/8/19
to VA Smalltalk
Hi Vilas,

I'm guessing but I think you asked the question in a way that confused many of us.  Don't feel bad, we do it all the time.  From the image you posted (which for some reason I can no-longer view) it looks like you are in the development environment and that you chose a table widget icon from a column on the left and put it in the window.  If you look in that same column of widget icons you should find column widget icons, choose one of those, click on it and then click inside the table that is inside the window you are defining.  That should place a column in the table.  You can then click on the column change its settings.  Pay attention to the #width (the width of the column displayed) and #attributeName (the name of the method of the object used for the rows whose answer should be displayed in the column).

If I have guessed right, this should get you started and from there you can ask more questions.

Good luck.

Lou

VilaS

unread,
Aug 9, 2019, 12:55:41 AM8/9/19
to va-sma...@googlegroups.com
hi Lou,

Good morning.

I'm really sorry for confusing as I'm novice in this so may caused confusion.

I heartily thank you for your guidance. I am able to add columns successfully.
Now, I want to add rows and value to each cell, request you to guide me on this.

Have a great day and week ahead.

Regards,
Vilas

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/c3478587-ccb9-4d2d-b4a3-32586d8034fb%40googlegroups.com.

Louis LaBrunda

unread,
Aug 9, 2019, 9:39:19 AM8/9/19
to VA Smalltalk
Hi Vilas,


On Friday, August 9, 2019 at 12:55:41 AM UTC-4, VilaS wrote:
hi Lou,

Good morning.

I'm really sorry for confusing as I'm novice in this so may caused confusion.

No problem and no need to apologize, we all have the same problem from time to time.  I only mentioned as a way of explaining why it took so long for someone to help you.  There are many people on this forum both willing and able to help, they were just confused, as was I.

I heartily thank you for your guidance. I am able to add columns successfully.
Now, I want to add rows and value to each cell, request you to guide me on this.

Forgive me if I aim too low with my explanation as to what to do next.  Each row will be an instance of an object (probably a class you have defined) with the values you want to display in the columns.  Each value you want to display needs to have a corresponding instance method in the class.  You specify the name of that instance method in the #attributeName setting field of the column you want it displayed.  Most of the time that is enough for the table/column to display the value.  If it isn't, you will need to set a converter for the column.  There are lots of converters, they do things like format values for display, things like commas, digits to the right of the decimal, as such.

You will probably have a bunch of these objects that you want to display.  They should be in one of the collection classes like ans #Array or #OrderedCollection.  I would lean toward an #OrderedCollection as it is more powerful and easy to use.  You will then need to put the items in the collection in the table.  This happens at run time, something like this:

container := self subpartNamed: 'Vilas Table Widget'.
container items: collectionOfRowObjects.


This should get you started.  There is also probably a VA Smalltalk document that may help with this but I don't recall a name, maybe someone else will remember and post it.

Lou


To unsubscribe from this group and stop receiving emails from it, send an email to va-sma...@googlegroups.com.

VilaS

unread,
Aug 10, 2019, 1:53:51 AM8/10/19
to va-sma...@googlegroups.com
hi  Lou,

Thank you for your reply.
I'll try it and update you the status.

Regards,
Vilas

To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/e59651fc-7e42-4df5-b3a1-b4ae88813094%40googlegroups.com.

VilaS

unread,
Aug 13, 2019, 3:44:52 AM8/13/19
to va-sma...@googlegroups.com
hi Lou,

I request you to kindly guide me on how to add code.
I tried to add the code in Edit part ( right click on control ) but not able to succeed.

thank you for your support and cooperation.

Regards,
Vilas

Louis LaBrunda

unread,
Aug 13, 2019, 9:11:07 AM8/13/19
to VA Smalltalk
Hi Vilas,

This User Guide should help you get started.

If you look in the lower right hand corner of your composition editor window you should see three circles inside three squares, click on the middle one.  That will bring you to an area where you can add instance variables and methods.

Sorry, that is all the time I have at the moment.  Good luck.

Lou



On Tuesday, August 13, 2019 at 3:44:52 AM UTC-4, VilaS wrote:
hi Lou,

I request you to kindly guide me on how to add code.
I tried to add the code in Edit part ( right click on control ) but not able to succeed.

thank you for your support and cooperation.

Regards,
Vilas

Mariano Martinez Peck

unread,
Aug 13, 2019, 9:31:29 AM8/13/19
to VA Smalltalk

To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/8201a7a2-59ee-4468-afa0-ec0fe8078470%40googlegroups.com.


--
Mariano Martinez Peck
Software Engineer, Instantiations Inc.
Reply all
Reply to author
Forward
0 new messages