%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2011-2016. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %% Unless required by applicable law or agreed to in writing, software %% distributed under the License is distributed on an "AS IS" BASIS, %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %% See the License for the specific language governing permissions 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>>