X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21156596eb503b5883088ce240ba894df86fa332..bbda1088f7995eec084f450141d1071052473106:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 2bb9ba84eb..63b363ec0e 100644 --- a/src/stc/PlatWX.cpp +++ b/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(); }