Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-10

kind TStringsTableWidget demo code explanation plea

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

I have deeply analysed TStringsTableWidget demo and I have no chance to find out, where resides excellent code. Which is being responsible for showing little table above long table with countryes and codes. I AM meaning table which shows
RowCount
CustomColumns
And The code which dynamically react on The changed number of RowCount. Because it was exactly my desire, have so dynamic process available. Does The code resides on some css template, inside html file or inside some Pascal source? I have browsed all demo files but I had no luck to find this magical code.
And if I would like to use The approach which is being used in TStringsTableWidget. Will I have big chance, that my table will be seen by sighted users even on various Android devices with various screen syzes? If yes, I will make The questions and answer based on this approach. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20201014/d070b349/attachment.htm>

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote 6 lines
I have deeply analysed TStringsTableWidget demo and I have no chance to find out, where resides excellent code. Which is being responsible for showing little table above long table with countryes and codes. I AM meaning table which shows RowCount CustomColumns

You mean the table at the right of the screen ?

This is the minimalistic object inspector: tpropertygridwidget. It is far from finished. I have uncommitted changes to improve it, but this is a work in progress.

Show quoted text 5 lines
And The code which dynamically react on The changed number of RowCount. Because it was exactly my desire, have so dynamic process available. Does The code resides on some css template, inside html file or inside some Pascal source? I have browsed all demo files but I had no luck to find this magical code.

The unit is propertygridwidget.pp

And if I would like to use The approach which is being used in TStringsTableWidget. Will I have big chance, that my table will be seen by sighted users even on various Android devices with various screen syzes?

It should, but I have not tried this. You can make the table responsive, but you will need to add some classes for that, I would need to look in the bootstrap documentation to see which ones.

Michael.

Reply by email