Questions tagged [wxerlang]

wxErlang is a Erlang wrapper for wxWidgets, a cross-platform C++ GUI framework.

wxErlang is a Erlang wrapper for wxWidgets, a cross-platform C++ GUI framework.

22 questions
4
votes
1 answer

Erlang Wx : how to add new widgets

Erlang comes with a very nice binding of Wx library. I would like to know if someone has ever tried to add new widgets (on linux or windows) to the wx library originally installed with Erlang (v. R15) ? I explain: It would be nice if, using an…
B. Lamine
  • 41
  • 2
4
votes
3 answers

wxErlang error message

I cannot get wxErlang to work at all. Do i need to include a module. Can't find any basic information relating to it. Please help. I am look for a very basic example of a module. the error I am getting is undefined function wx:start/0
Damian
  • 1,543
  • 15
  • 22
3
votes
3 answers

Is it necessary to invent IDs for wxErlang widgets?

I've been poking around with Erlang's wx module and this tutorial. I haven't used wxwidgets before, so maybe this is just how it's done, but this code seems really terrible to me: %% create widgets T1001 = wxTextCtrl:new(Panel, 1001,[]), …
nmichaels
  • 49,466
  • 12
  • 107
  • 135
3
votes
2 answers

Listening for key input in wxErlang

I'm trying to make a small game in Erlang, using wxErlang. My main function is a loop and I need to check if a specific key has been pressed at the start of the loop (up, down, left, right...). Most of the solutions I've found online use a global…
Muibadorei
  • 41
  • 2
3
votes
1 answer

wxErlang fails loading driver

After several attempts I finally managed to compile and install both wxWidgets 2.8.11 and Erlang R13B04 with wxErlang on my Mac OS X, Version 10.4.11. However, testing wxErlang fails immediately: 1> wx:new(). = ERROR REPORT====…
2
votes
1 answer

Errror in running wx Erlang code

Using the sample code provided by wx:demo()I am getting various errors and exception and as im quite new to the erlang language im struggling to find a solution wx_grid:start(). ** exception exit: {wxe,unknown_port} in function …
love4code
  • 31
  • 2
1
vote
0 answers

Erlang: how to kill the wxe_master/wxe_server gen_server

I'm trying to implement an application with wxWidgets in Erlang/OTP. For the sake of this question, I'll show the simple example: I create a new wx server with wx:new(). in the terminal. Then using i(). I display the ETS tables on the terminal. I…
StickySli
  • 81
  • 8
1
vote
2 answers

ERLANG wx widget load png

I tried to build a GUI that includes a PNG photo. The code of the PNG loading works fine when loads on to an empty frame, but on this code i cannot see the photo. I tried to change options of the wxBoxSizers and the location {0,0} on the panel, but…
adi solo
  • 55
  • 4
1
vote
1 answer

process enter key using wx_erlang (erlang port wxwidgets)

I am building a simple browser in erlang, using wx. This simple browser has a text box for entering a url. I want to execute a callback when the user presses the enter key while in the text box. I can see several potential ways of doing this,…
tony wallace
  • 135
  • 6
1
vote
1 answer

wxErlang Method for getting screen dimensions

I am starting to play with wxErlang on XP, and am looking for a method of getting the screens dimension, so that I can cause my app to be drawn on the lower right hand corner of the screen. The wxErlang documentation seems to have an undue number…
EvilTeach
  • 28,120
  • 21
  • 85
  • 141
1
vote
1 answer

Config emacs + erlang for wxErlang usage

Hello Erlang requires -smp for using wxErlang. As I edit and compile with emacs, I modified the erlang.el file like this: (defvar inferior-erlang-machine-options '("-smp") But this has no effect when I run the program: WX ERROR: SMP emulator…
Bertaud
  • 2,888
  • 5
  • 35
  • 48
1
vote
1 answer

wx_ref and custom wx_object's

I am developing MDI application with help of wxErlang. I have a parent frame, implemented as wx_object: -module(main_frame). -export([new/0, init/1, handle_call/3, handle_event/2, terminate/2]). -behaviour(wx_object). .... And I have a child…
Ilya S
  • 33
  • 6
1
vote
1 answer

wxSplitterWindow.splitVertically not accepting windows in Elixir/Erlang

I'm trying to get split windows working using WxErlang in Elixir. I'm basically doing the exact same thing as the splitterWindow example from :wx.demo, but the :wxSplitterWindow.splitVertically function is returning false (not working) and I don't…
seadynamic8
  • 177
  • 7
1
vote
1 answer

how to animate picture without making it flicker using wxWidgets in erlang?

I am trying to make images seems like moving. I clear the screen and put the images back on it, but the screen is flickering a lot. Is there a way to make it seems like moving without flicker that much? the "draw_asteroids" is called every 100 ms…
user1617940
  • 31
  • 1
  • 4
1
vote
2 answers

Can anyone explain this Erlang Crash dump?

I got this error report when running my Erlang application. Crash dump was written to: erl_crash.dump eheap_alloc: Cannot allocate 18446744071692551144 bytes of memory (of type "heap"). It's a simple program ran on a simple PC. How is it possible…
Willy G
  • 1,172
  • 1
  • 12
  • 26
1
2