%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2011-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% <> <> <onGetItemText = onGetItemText; Result->onGetItemAttr = onGetItemAttr; Result->onGetItemColumnImage = onGetItemColumnImage; Result->port = Ecmd.port; newPtr((void *) Result, 0, memenv); rt.addRef(getRef((void *)Result,memenv), "wxListCtrl"); break; } wxListCtrl_new_2>> <Create(parent,winid,pos,size,style,*validator); This->onGetItemText = onGetItemText; This->onGetItemAttr = onGetItemAttr; This->onGetItemColumnImage = onGetItemColumnImage; This->port = Ecmd.port; rt.addBool(Result); break; } Create>> <port = Ecmd.port; cb->callbackID = sortCallback; bool Result = This->SortItems(wxEListCtrlCompare, (wxeIntPtr)cb); delete cb; /* Destroy the callback, see wxEPrintout::clear_cb */ wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false); // NOTE: Remove this later when changing from funs to gen_server cbrt.addAtom("wx_delete_cb"); cbrt.addInt(sortCallback); cbrt.addTupleCount(2); cbrt.send(); rt.addBool(Result); break; } SortItems>>