X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21156596eb503b5883088ce240ba894df86fa332..872f1044c8f086bc983bf7fbb1fb5a467365039d:/contrib/src/stc/PlatWX.cpp diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index 2bb9ba84eb..63b363ec0e 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -458,6 +458,25 @@ void ListBox::Create(Window &parent, int ctrlID) { 0, NULL, wxLB_SINGLE | wxLB_SORT); } +PRectangle ListBox::GetDesiredRect() { + wxSize sz = ((wxListBox*)id)->GetBestSize(); + PRectangle rc; + rc.top = 0; + rc.left = 0; + rc.right = sz.x; + rc.bottom = sz.y; + + return rc; +} + +void ListBox::SetAverageCharWidth(int width) { + aveCharWidth = width; +} + +void ListBox::SetFont(Font &font) { + Window::SetFont(font); +} + void ListBox::Clear() { ((wxListBox*)id)->Clear(); }