Ticket #14840 (closed enhancement: fixed)

Opened 7 months ago

Last modified 7 months ago

GetSizeFromTextSize() part_4

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

Description

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

Attachments

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

Change History

Changed 7 months ago by mmarsan

Changed 7 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.

Changed 7 months ago by VZ

  • status changed from new to closed
  • resolution set to fixed

(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.