[haiku-bugs] Re: [Haiku] #3637: [preferences/FileTypes] menuField text is clipped(easy)

  • From: "pprahul" <trac@xxxxxxxxxxxx>
  • Date: Fri, 11 Dec 2009 07:31:15 -0000

#3637: [preferences/FileTypes] menuField text is clipped(easy)
-----------------------------------+----------------------------------------
 Reporter:  chico                  |       Owner:  axeld         
     Type:  bug                    |      Status:  new           
 Priority:  normal                 |   Milestone:  R1            
Component:  Preferences/FileTypes  |     Version:  R1/Development
 Keywords:                         |   Blockedby:                
 Platform:  All                    |    Blocking:                
-----------------------------------+----------------------------------------

Comment(by pprahul):

 So, I am a bit confused on what to be done with this bug. [[BR]]

 From what I have seen from the code, these are my conclusions. Please
 point out where I've gone wrong, so that we can improve the code. [[BR]]

 1. The BMenuField should automatically truncate the text (which is a
 common property, and nothing related to this bug). But it doesn't do the
 same function (truncate) here (WRT PreferredAppMenu). [[BR]]

 If that is the case, then : I can't find any explicit call to
 TruncateString() , neither from BMenuField, nor from
 PreferredAppMenu.cpp.[[BR]]Could this be the cause of this problem ?[[BR]]

 2. Or else, the BMenuField is working properly (and truncates too), but
 WRT PreferredAppMenu it is not truncated properly. [[BR]]

 If that is the case, then we will need to make a specific change, only for
 PreferredAppMenu, which I don't think is the best way out. [[BR]]

 What is your take on this ?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/3637#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: