Button in Data Field and Column

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Rafael Kuzminski

Button in Data Field and Column

Post by Rafael Kuzminski » 27 Jun 2006, 14:34

 Posted by:  Rafael Kuzminski 

Hi!

Iäm trying to create a custom ComboBox / Dropdown Column. Is it possible to
create a button inside a Data Field and Column when they are focused in a
nice way? Tested the M!Table library and it worked for the Column part. I
need something liek that (MTblDefineButtonColumn) for the Data Fiels as
well. Also, making this using standard CTD (1.5.1) code would be nicer, not
including dll's like mtbl15.dll.

Regards

/R

Ingo Pohl

Re: Button in Data Field and Column

Post by Ingo Pohl » 28 Jun 2006, 10:33

 Posted by:  Ingo Pohl 

Here is a good example for Datafield with button...
For your Purpose you have to call the Function _CreateButton, when the DF
gets the focus also it has to be destroyed if you leave the Focus...

HTH
Ingo

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

Rafael Kuzminski

Re: Button in Data Field and Column

Post by Rafael Kuzminski » 30 Jun 2006, 14:25

 Posted by:  Rafael Kuzminski 

Thanks! The only problem I found here (using TD 1.5.1) is that the button is
not always repainted when supposed to. Leaving the field will result in a
button frame and sometimes, the button is not painted when the field is
focused. Any chance having that work as well?

Regards

/R

Ingo Pohl

Re: Button in Data Field and Column

Post by Ingo Pohl » 03 Jul 2006, 10:10

 Posted by:  Ingo Pohl 


Try to find out in which Situations that happen exactly and call the
functions _destroyButton and _createButton

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests