Whats the difference between sending a widget a (SEL_COMMAND, FXWindow::ID_SHOW) message and just calling its show() method directly?
It’s an efficiency issue, related to the layout algorithm. In most cases, when a window gets the FXWindow::ID_SHOW message, the default handler calls show() and then calls recalc() to mark the window’s layout as “dirty” (i.e. scheduled for a re-layout). But since show() and hide() are themselves used in layout() in many cases, calling recalc() inside the implementation of show() and hide() would cause yet another layout() to happen.
Related Questions
- Whats the difference between sending a widget a (SEL_COMMAND, FXWindow::ID_SHOW) message and just calling its show() method directly?
- Can I still submit a funding request directly to Ethicon Endo-Surgery via a method other than the online funding application?
- Can I send a text message to one of my contacts directly from the vufone web site?