Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I place a fixed-size FXCanvas inside an FXScrollWindow?

fixed-size fxscrollwindow
0
Posted

Why can I place a fixed-size FXCanvas inside an FXScrollWindow?

0

The FXScrollWindow widget provides a very easy way to make any kind of window scrollable, but for some kinds of content it takes a little extra work. The difficulty has to do with FXScrollWindow’s implementation of the layout() member function, which calls getContentWidth() and getContentHeight() to determine the width and height of the FXScrollWindow’s single child window (its “content”). These calls to FXScrollWindow’s getContentWidth() and getContentHeight() member functions are in turn delegated to the content window’s getDefaultWidth() and getDefaultHeight() member functions. The purpose of the getDefaultWidth() and getDefaultHeight() member functions is to return the minimum width and height for a window, given its current state. For example, an FXLabel’s default width and height are based on its text string, icon, internal padding and frame style. For many widgets, however, there is no sensible value for the minimum width or height, and for those widgets the getDefaultWidth() an

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123