Sign in to follow this  
Followers 0
martijn

A bigger chat message box

27 posts in this topic

EDIT : "or at least static size"

Sorry for language slip = I also prefer dynamic resize to static one.

Share this post


Link to post
Share on other sites

this can seem to be difficult at first sight, but it can be very easily achieved with the current code; look at this line in HubFrame.cpp's UpdateLayout(): int h = WinUtil::fontHeight + 4;

change it to something like int h = WinUtil::fontHeight * numberOfLines + 4; and call UpdateLayout() with a new numberOfLines any time the message box's content changes.

then, adding options for the min/max number of lines, and such stuff is just a matter of time, nothing to really think about there...

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0