I have an HTML window with a table. There are 7 columns and a variable
number of rows. I want to attach method calls to a table cell in
column 6 of the table depending on the value. I have overridden the
OnCellClicked method of html.HtmlWindow and can get the value of a
table cell in column 6. However, I also need the value of the table
cell in column 1 of the same table row. This value will be used as
input to the dialog called in the method (as determined from the value
of column 6). I hope that makes sense. I basically need to determine
the contents of an offset to the cell I am clicking on. Can what I
want be done?
I have an HTML window with a table. There are 7 columns and a variable
number of rows. I want to attach method calls to a table cell in
column 6 of the table depending on the value. I have overridden the
OnCellClicked method of html.HtmlWindow and can get the value of a
table cell in column 6. However, I also need the value of the table
cell in column 1 of the same table row. This value will be used as
input to the dialog called in the method (as determined from the value
of column 6). I hope that makes sense. I basically need to determine
the contents of an offset to the cell I am clicking on. Can what I
want be done?
Maybe. I have no idea how the cells are structured and related to each other, or how an HTML table gets converted to cells, but you can navigate from the cell you have to its parent cell (GetParent), and from there to the first child (GetFirstChild) and from there to the chain of cells that is the child's siblings (GetNext). So from that it may be possible to somehow find the first table cell on the row, but I don't know the details.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!