[fpc-pascal] Help translating C++ to Object Pascal

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Sep 14 11:50:31 CEST 2010


In a C++ method as shown below, does the '... return True;' immediately
exit the HandleClientMessage method, or will it still continue processing
the remainder of the method (just exiting the current code block)?

int OXMainFrame::HandleClientMessage(XClientMessageEvent *event) {

  if (_dndManager) {
    if (_dndManager->HandleClientMessage(event)) return True;

  if ((event->format == 32) && (event->data.l[0] == WM_DELETE_WINDOW)) {
    return True;

  return OXCompositeFrame::HandleClientMessage(event);


  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list