Hi: Make good progress in understanding Fxruby. I am using FXTable in my application. I don''t see a standard function to sort colums based on double clicking on the header. I was looking for something in the line of |TABLE_SORTABLE| as a creation option and non application level sort of column value base on user click on header. Am I correct to understand this is not a function of FXTable within ruby? Thanks Ice -------------- next part -------------- A non-text attachment was scrubbed... Name: ernst.vcf Type: text/x-vcard Size: 264 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20080125/80f5bff2/attachment.vcf
fxruby-users-bounces at rubyforge.org wrote:> Hi: Make good progress in understanding Fxruby. > > I am using FXTable in my application. > I don''t see a standard function to sort colums based on double > clicking on the header. > > I was looking for something in the line of >> TABLE_SORTABLE| as a creation option > > and non application level sort of column value base on user click on > header. > > Am I correct to understand this is not a function of FXTable within > ruby?Hi, There is unfortunately no such thing in the FXRuby library. You''ll have to write this logic at the application level yourself. It is not that hard, and by the way, I think you can find a few examples on Internet. Philippe
On Friday 25 January 2008, Ernst J. Tanaka wrote:> Hi: Make good progress in understanding Fxruby. > > I am using FXTable in my application. > I don''t see a standard function to sort colums based on double clicking > on the header. > > I was looking for something in the line of > |TABLE_SORTABLE| as a creation option > > and non application level sort of column value base on user click on header. > > Am I correct to understand this is not a function of FXTable within ruby?Yes, that is correct. A click on a row [column] header just selects the row [column]. However, the good news is that it should be quite easy to intercept the messages from these header controls. FXTable api''s getColumnHeader() and getRowHeader() return the header controls for the columns and rows, respectively. After this, its a simple matter of reassigning the message and target emitted by these controls to a piece of code which does the sorting. Hope this helps, - Jeroen