From a23445344370a5fb448a93bbc4a32c4e4fd65d81 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 3 Dec 2024 11:59:09 +0100 Subject: Clarify use of Fl_Tabs::clieant_area() --- src/Fl_Tabs.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 89394ac05..1fc025210 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -1117,6 +1117,10 @@ Fl_Tabs::~Fl_Tabs() { \note Children should always use the same positions and sizes. + \note This function requires access to the display drivers to determine the + selected font height. If `client_area` is invoked before the first window is + displayed, ensure that `fl_open_display()` is called beforehand. + \p tabh can be one of \li 0: calculate label size, tabs on top \li -1: calculate label size, tabs on bottom -- cgit v1.2.3