#14840 closed enhancement (fixed)

GetSizeFromTextSize() part_4

Reported by: mmarsan Owned by:
Priority: normal Milestone:
Component: GUI-all Version: stable-latest
Keywords: GetSizeFromTextSize GetBestSize Cc:
Blocked By: Blocking:
Patch: yes

Description

This patch adds GetSizeFromTextSize() to wxSpinCtrl for wxMSW, wxGTK, and generic.

Attachments (1)

GetSizeFromTextSize_part_4.patch download (6.7 KB) - added by mmarsan 22 months ago.

Download all attachments as: .zip

Change History (3)

Changed 22 months ago by mmarsan

comment:1 Changed 22 months ago by vadz

Is there really no way to get the size of the buttons from GTK? I'm afraid that hardcoding them is a bad idea because their size almost certainly depends on the theme.

I'll still commit this for now but it would be great if it could be improved to use the real button sizes.

comment:2 Changed 22 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [72995]) Implement GetSizeFromTextSize() for wxSpinCtrl.

Implement it for the native MSW and GTK versions and the generic one used in
the other ports and also for wxSpinCtrlDouble under MSW.

Also test this function in the spin page of the widgets sample.

Closes #14840.

Note: See TracTickets for help on using tickets.