I just want to add a dropdown list into the RichTextCtrl toolbar which
contains some predefined format such as "Normal Text", "Heading 1",
just like the thing in Word.
But I found no way to change or access the RichTextCtrl toolbar. Can I
do this kind of customization on RichTextCtrl?
I just want to add a dropdown list into the RichTextCtrl toolbar which
contains some predefined format such as "Normal Text", "Heading 1",
just like the thing in Word.
But I found no way to change or access the RichTextCtrl toolbar. Can I
do this kind of customization on RichTextCtrl?
The RichTextCtrl doesn't have it's own toolbar, so there is nothing there to access or modify. If there is a toolbar then you must be creating it somewhere in your code. For example, in the RichTextCtrl sample in the demo there is the MakeToolBar method.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!