diff options
author | Dan Gudmundsson <[email protected]> | 2016-09-28 13:08:10 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-09-28 13:08:10 +0200 |
commit | b271012d04897f788866760c1dea7d51b1b44a4d (patch) | |
tree | 28ae35fbd9d8d6ba7ef02b5a177fb5d9be8a09b7 /lib/wx/api_gen/wx_gen_cpp.erl | |
parent | ee80c779c3ae7900e183c98f2568d386e03e3b66 (diff) | |
download | otp-b271012d04897f788866760c1dea7d51b1b44a4d.tar.gz otp-b271012d04897f788866760c1dea7d51b1b44a4d.tar.bz2 otp-b271012d04897f788866760c1dea7d51b1b44a4d.zip |
wx: Add simple dropfiles support
Added wxDropFiles event
Diffstat (limited to 'lib/wx/api_gen/wx_gen_cpp.erl')
-rw-r--r-- | lib/wx/api_gen/wx_gen_cpp.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl index 84d3990786..0a0b1f9209 100644 --- a/lib/wx/api_gen/wx_gen_cpp.erl +++ b/lib/wx/api_gen/wx_gen_cpp.erl @@ -1079,6 +1079,13 @@ build_ret(Name,_,#type{base=string,single=true}) -> w(" rt.add(~s);~n",[Name]); build_ret(Name,_,#type{name="wxArrayString", single=array}) -> w(" rt.add(~s);~n", [Name]); +build_ret(Name,_,#type{name="wxString", single={list,Variable}}) -> + Obj = case Name of + "ev->" ++ _ -> "ev"; + _ -> "This" + end, + w(" wxArrayString tmpArrayStr(~s->~s, ~s);~n", [Obj,Variable,Name]), + w(" rt.add(tmpArrayStr);~n", []); build_ret(Name,In,T) -> ?error({nyi, Name,In, T}). |