[haiku-3rdparty-dev] BtextControl divider

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: Haiku-3rd-Party-Dev <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Sun, 24 Jul 2016 15:34:38 -0700

I've been playing at fixing up FtpPositive a bit.  It basically works,
but some of the GUI isn't quite right.

In particular, the TextControl which should have the label "Remote Dir:"
just shows "Remote D...".  The code looks like it ought to be correct:

        fRemoteDirView = new BTextControl(rect, "RemoteDirView", "Remote Dir 
:", "",
                new BMessage(MSG_REMOTE_PATH_CHANGED), B_FOLLOW_LEFT_RIGHT | 
B_FOLLOW_TOP);
        fRemoteDirView->SetDivider(fRemoteDirView->StringWidth("Remote Dir :"));

(Actually this isn't new -- I've often had to pad a string to get it right.)
Why?

        -- Pete --

Other related posts:

  • » [haiku-3rdparty-dev] BtextControl divider - Pete Goodeve