Sample: properties editor style table (using M!Table) - works but needs refining

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
James McCall

Sample: properties editor style table (using M!Table) - works but needs refining

Post by James McCall » 22 Feb 2008, 06:43

 Posted by:  James McCall 

I was trying to get to grips with the tree features of M!Table so set myself
a real-world task. Attached is the result, source saved as CTD2000 text.

The aim was to create a child table class that looks & feels more-or-less
like a Microsoft (et al) development environment's properties editor.

Anyone else out there done something like this (and done a bettter job)?

Happy to see improvements posted here. In particular there's an issue with
hiding the table's column header (see question I posted in
forum.td.development).

Enjoy!

James McCall

You do not have the required permissions to view the files attached to this post.

Thomas Lauzi

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by Thomas Lauzi » 22 Feb 2008, 19:05

 Posted by:  Thomas Lauzi 

Hi James,
really nice piece of work!

I have an idea for improvement...
To be real property grid, lookup input values (color, fonts,....) are
missing.
So a parameter "Lookupfunction" could be introduced to every entry.
For lookup values, a button could be created with Mtable and a
callbackfunction could be called with SalCompileandEvaluate.
In this function everybody could do his custom lookup.

Regards,
Thomas L.

You do not have the required permissions to view the files attached to this post.

dezomer

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by dezomer » 23 Feb 2008, 14:27

 Posted by:  dezomer 

Hello

the picture looks interesting but i can't extract the app from the zip !?

i tried it on 3 different cumputers

regards

Francois

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by Jeff Luther » 23 Feb 2008, 20:26

 Posted by:  Jeff Luther 

I saved the files again, this tims without the leading '~' char. in the
file names. (I updated the apt so it can read the bmps.) Maybe that's
the issue?

I also enclosed a v4.2 in text format, and back-converted a copy to TD
v2.1, the version James originally had submitted.

See if this works for you. If not, let me know if you can work with
another archive format, like .gz or .tar - I also have BitZipper:
http://www.bitzipper.com/
and could archive the files in another of its supported formats.

- Jeff

You do not have the required permissions to view the files attached to this post.

fd

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by fd » 25 Feb 2008, 09:52

 Posted by:  fd 

Don't know if it makes a difference but I zipped the original with IZarc.

Those tilda characters might make a difference (I just use them in my tryout
code so it stands out from code that is supposed to be production quality).

James McCall

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by James McCall » 25 Feb 2008, 10:13

 Posted by:  James McCall 

I'll post it unzipped in the reply to this message
(and by the way the other response from "fd" was also from me, I am
borrowing a colleague's computer and forgot to change the identity on his
newsreader before posting)

James McCall

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by James McCall » 25 Feb 2008, 10:15

 Posted by:  James McCall 


You do not have the required permissions to view the files attached to this post.

dezomer

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by dezomer » 25 Feb 2008, 10:46

 Posted by:  dezomer 

thank you !

Francois

dezomer

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by dezomer » 25 Feb 2008, 11:04

 Posted by:  dezomer 

Thank you,

but the problem is the "Tilde" letter i think

is the a plan to enhance it by your side ?

from my view it's a very good idea to spolve "Property-Settings" by this way
(even you always have less place on the screen)
(see the improvement ideas from Thomas Lauzi)

by the way - ther is no funktion to switch the "Coulumn-Style" to DropDown
List or Checkbox by Code ? this would be great if it would be aplyable to a
single cell !

Regards

Francois

dezomer

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by dezomer » 28 Feb 2008, 00:11

 Posted by:  dezomer 

hi

i was working a little on the Ideas of Thomas Lauzi

i implemented
ColorProperty (HEX)
ColorProperty (RGB)
FontProperty
and OptionSelection ( i solved it with menus because Combobox does not work
for a single cell in of a column )

"Titel" is now different from the " PropertyName" (i.e. for multilanguage
purpose )

comments and ideas are welcome

what's about to make it "Database-Driven" ?

Francois


You do not have the required permissions to view the files attached to this post.

James McCall

Re: Sample: properties editor style table (using M!Table) - works but needs refining

Post by James McCall » 04 Mar 2008, 22:17

 Posted by:  James McCall 

I have a comment:
Nice work! Thanks for the improvements.

James

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests