nakijun / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

TJvHTComboBox instead of TComboBox #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Just a question?
Is it possible to change Tcombobox with an other one like TJvHTComboBox?
What will  TComboFormControlObj.Draw be in htmlsbs1? 
Is something more needed?

Original issue reported on code.google.com by dkou...@gmail.com on 6 Feb 2013 at 8:23

GoogleCodeExporter commented 9 years ago
Just modify the type definition of ThtCombobox in unit HtmlGlobals.
All replacements for TComboBox should work. 

Original comment by OrphanCat on 6 Feb 2013 at 5:41

GoogleCodeExporter commented 9 years ago
I did it but it needs to change the canva draw in order to have the bold/fonts 
effects in the items.

Original comment by dkou...@gmail.com on 6 Feb 2013 at 8:12

GoogleCodeExporter commented 9 years ago
Where do you get the bold/fonts infos from? 
While reading the options all tags are skipped.

Original comment by OrphanCat on 10 Feb 2013 at 11:50

GoogleCodeExporter commented 9 years ago
I apologize for the delay. 
In TJvHTComboBox, each item (option in the combobox) can be defined with html 
code. That means that each item can be rendered with bold/italics/etc 
characters and images.
Changing the definition of ThtCombobox renders the item as simple text. So an 
event could possible provide a different rendering or TComboFormControlObj.Draw 
must be changed to use TJvhtcombox's draw routine.

Original comment by dkou...@gmail.com on 18 Feb 2013 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by OrphanCat on 29 Mar 2013 at 10:53

GoogleCodeExporter commented 9 years ago
dkounal,

TComboFormControlObj uses a control of type ThtComboBox, which is located in 
HtmlGlobals and derived from TComboBox or TTntComboBox. 

You might want to try to derive ThtComboBox from TJvHTComboBox instead. Please 
let me know, if that works.

Thank you.

Original comment by OrphanCat on 4 Oct 2013 at 11:58