GUI resource to support User selection of fon size

Oct 13, 2023 at 3:11am
How does one incorporate a GUI interface in a W32 app to select font and font size similar to that supported by MS Word?
Oct 13, 2023 at 8:25am
https://learn.microsoft.com/en-us/windows/win32/dlgbox/font-dialog-box

You create and display a Font dialog box by initializing a CHOOSEFONT structure and passing the structure to the ChooseFont function.

That is if you use "native" Win32 GUI.

If you use a GUI framework, such as Qt or wxWidgets, it should provide a portable solution, e.g.:
https://doc.qt.io/qt-6/qfontdialog.html#details
https://docs.wxwidgets.org/3.0/classwx_font_dialog.html
Last edited on Oct 13, 2023 at 8:30am
Oct 13, 2023 at 8:44pm
Thanks for your info, which I am currently digesting.
Topic archived. No new replies allowed.