Hi all.
Andrea,
1: In Customtreectrl with Windows vista theme when you change font with dialog font does not appear correct new selection on current item as shown in the screenshot. It seems that in this case do not update the new size of the selection.
2: Also when you change font even the tip about items no longer seems to work .
3: If I have a tree with a number of items to change the font of all the items just do:
self.tree CT.CustomTreeCtrl = (… etc.
…
self.tree.SetFont (NewFont)
Right?
But doing so only changes font the current item not all!

···
–
Fabio Spadaro
Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:
www.sqliteroot.com
For point 3 just to Refresh but there are still other points to be clarified.
···
–
Fabio Spadaro
Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:
www.sqliteroot.com
Hi,
Hi all.
Andrea,
1: In Customtreectrl with Windows vista theme when you change font with
dialog font does not appear correct new selection on current item as shown
in the screenshot. It seems that in this case do not update the new size of
the selection.
2: Also when you change font even the tip about items no longer seems to
work .
3: If I have a tree with a number of items to change the font of all the
items just do:
self.tree CT.CustomTreeCtrl = (... etc.
..
self.tree.SetFont (NewFont)
Right?
But doing so only changes font the current item not all!
Try adding these 3 lines after your SetFont calls:
self.CalculatePositions()
self.Refresh()
self.AdjustMyScrollbars()
If it works I will modify the source code and upload a new version to
SVN this evening.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 15 March 2012 10:58, Fabio Spadaro wrote:
Hi,
Hi.
Il giorno 15 marzo 2012 11:28, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:
Try adding these 3 lines after your SetFont calls:
self.CalculatePositions()
self.Refresh()
self.AdjustMyScrollbars()
If it works I will modify the source code and upload a new version to
SVN this evening.
I just tried put only self.CalculatePositions() and self.Refresh() ; it's
work.
Thanks for testing, I'll take a look at the code tomorrow and commit
the changes.
What would be self.AdjustMyScrollbars () ?
It's needed when anything modifies the items height, as without this
call the scrollbar range will not be enough (or too big) to scroll
through the entire window.
- I also saw that the SetForegroundColour not work with Windows Vista theme
while works in other cases.
This may be a bug. I'll fix it tomorrow.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 19 March 2012 10:44, Fabio Spadaro wrote:
Both issues should now be fixed in SVN, could you please check if the
modifications I made work for you?
Thank you.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On 19 March 2012 21:14, Andrea Gavana wrote:
Hi,
On 19 March 2012 10:44, Fabio Spadaro wrote:
Hi.
Il giorno 15 marzo 2012 11:28, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:
Try adding these 3 lines after your SetFont calls:
self.CalculatePositions()
self.Refresh()
self.AdjustMyScrollbars()
If it works I will modify the source code and upload a new version to
SVN this evening.
I just tried put only self.CalculatePositions() and self.Refresh() ; it's
work.
Thanks for testing, I'll take a look at the code tomorrow and commit
the changes.
What would be self.AdjustMyScrollbars () ?
It's needed when anything modifies the items height, as without this
call the scrollbar range will not be enough (or too big) to scroll
through the entire window.
- I also saw that the SetForegroundColour not work with Windows Vista theme
while works in other cases.
This may be a bug. I'll fix it tomorrow.