Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

0.6.6: SetFont() on os::Spinner doesn't change the text font

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed
View previous topic :: View next topic  
Author Message
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Tue Nov 04, 2008 12:37 pm    Post subject: 0.6.6: SetFont() on os::Spinner doesn't change the text font Reply with quote

Setting a new font via [url=http://development.syllable.org/documentation/API/LibSyllable/classos_1_1Spinner.html]Spinner[/url]::[url=http://development.syllable.org/documentation/API/LibSyllable/classos_1_1View.html#b0314b2271b66dfc8e562a5798b78dce]GetFont()[/url] [or eg Spinner::GetFont()->SetSize()] doesn't change the font of the spinner's textarea.
This is because Spinner internally uses a TextView to display the text, and SetFont() needs to be called on the internal TextView. A fix would be to implement Spinner::FontChanged() and have it pass the change on to the internal TextView.
Back to top
View user's profile Send private message Visit poster's website
cipri
Guest





PostPosted: Wed Nov 05, 2008 4:16 pm    Post subject: Reply with quote

For DropdownMenu it is the same.
GetFont()->SetSize() on DropdownMenu as the effect, that the input-field (or display-field) of the changes it's hight , but the size of the letters keep being the same size.
Back to top
Jonas



Joined: 18 Oct 2007
Posts: 55

PostPosted: Thu Nov 06, 2008 8:16 am    Post subject: Reply with quote

Why not simply override the Spinner->GetFont to return the internal TextView font and Spinner->SetFont would then set the internal TextView font?

That wont work if you have cast the Spinner to a view because the function is not virtual. On the other hand maybe it should be?
Back to top
View user's profile Send private message
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Sun Nov 30, 2008 5:30 am    Post subject: Reply with quote

Fixed in cvs.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group