Is it possible?.
I've got my drug database working well now, but need to be able to scroll to a
particular point as the product information is very large hence much of it
off the screen
I've inserted tags corresponding to each section
eg <a name='indications'></a>
I have a listbox on the right hand side of the window, containing a list of
all the sections pertaining to the drug, eg composition, indications, adverse
reactions, pregnancy, dosage etc.
I want to be able to click on the line in the listbox, and have the html
control scroll down to expose the the appropriate part of the text on the
hmtl box.
I've perused the wx docs, but they are pretty much double dutch to me (as you
will all remember I'm not very good at interpreting the doc's, and need
concrete examples to be able to understand).
Thanks in anticipation.
Richard
There’s:
self.ScrollToAnchor(“indications”)
Assuming you sub-classed wx.html.HtmlWindow. That’s what I’ve used.
–Josh
···
On 1/22/06, Richard Terry rterry@internode.on.net wrote:
Is it possible?.
I’ve got my drug database working well now, but need to be able to scroll to a
particular point as the product information is very large hence much of it
off the screen
I’ve inserted tags corresponding to each section
eg
I have a listbox on the right hand side of the window, containing a list of
all the sections pertaining to the drug, eg composition, indications, adverse
reactions, pregnancy, dosage etc.
I want to be able to click on the line in the listbox, and have the html
control scroll down to expose the the appropriate part of the text on the
hmtl box.
I’ve perused the wx docs, but they are pretty much double dutch to me (as you
will all remember I’m not very good at interpreting the doc’s, and need
concrete examples to be able to understand).
Thanks in anticipation.
Richard
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
–
Joshua Menke
NNML Lab
BYU CS
josh@cs.byu.edu
Next challenge - getting it to work completely.
It partly worked. Interestingly only two out of all the list items work when
clicked on, the rest come up saying anchor not found, despite (to my eye) the
code in the html looking the same:
I enclose the relevant routines/template to see if anyone can help. As you can
see from the enclosed text, it only jumps down to drug composition and
indication, but to no other tags.
Any help appreciated.
excerps_html_stuff.txt (3.71 KB)
···
On Tuesday 24 January 2006 11:22, Richard Terry wrote:
thanks heaps, I will try that and report back.
richard
On Tuesday 24 January 2006 00:34, Josh Menke wrote:
> There's:
>
> self.ScrollToAnchor("indications")
>
> Assuming you sub-classed wx.html.HtmlWindow. That's what I've used.
>
> --Josh
>
> On 1/22/06, Richard Terry <rterry@internode.on.net> wrote:
> > Is it possible?.
> >
> > I've got my drug database working well now, but need to be able to
> > scroll to a
> > particular point as the product information is very large hence much of
> > it off the screen
> >
> > I've inserted tags corresponding to each section
> >
> > eg <a name='indications'></a>
> >
> > I have a listbox on the right hand side of the window, containing a
> > list of
> > all the sections pertaining to the drug, eg composition, indications,
> > adverse
> > reactions, pregnancy, dosage etc.
> >
> > I want to be able to click on the line in the listbox, and have the
> > html control scroll down to expose the the appropriate part of the text
> > on the hmtl box.
> >
> > I've perused the wx docs, but they are pretty much double dutch to me
> > (as you
> > will all remember I'm not very good at interpreting the doc's, and need
> > concrete examples to be able to understand).
> >
> > Thanks in anticipation.
> >
> > Richard
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail:
> > wxPython-users-help@lists.wxwidgets.org
>
> --
> Joshua Menke
> NNML Lab
> BYU CS
> josh@cs.byu.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org