[erlang-questions] wxErlang

Dan Gudmundsson <>
Mon Jan 7 10:28:12 CET 2008


The last one is fixed on sourceforce, and in the erlang parts so
you should be able to check it out and rebuild the beams.

It should be
wxFont:new(24, ?wxFONTFAMILY_SWISS, ?wxFONTSTYLE_NORMAL, 
?wxFONTWEIGHT_NORMAL).

But I messed up the guards and documentation sorry.
I also messed up colors badly which is also fixed in svn repos.

I'll have a look at the toggle button issue, I don't have a clue
about checkbox.

Thanks for the feedback guys, appreciated.

It should build on Mac i.e. it does for me, api generation
requires the GTK headers but it you download them and point
them out with it should work on the Mac.

cd api_gen
make WXGTK_DIR=/wxWidgets-2.8.5/include

/Dan

Bob Cowdery wrote:
> Hi John
> 
> Thanks. I've got around the issue for now by just emulating a toggle
> button.
> 
> I have a stopper issue at the moment if you or anyone else can help it
> would be much appreciated.
> 
> I can't get wxFont to work at all. If I use:
> 
> wxFont:new(24, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL,
> wxFONTWEIGHT_NORMAL).
> 
> it gives me 'no function clause defined' because weight is actually
> defined as an integer. If I give it 90 which I believe is
> wxFONTWEIGHT_NORMAL according to the defs.h I get 'invalid arg'. I get
> other errors with the other :new functions. None seem to work.
> 
> Any ideas?
> 
> Bob
> 
> 
> On Fri, 2008-01-04 at 16:11 +0900, John Webb wrote:
>> On Jan 4, 2008, at 9:43 AM, John Webb wrote:
>>
>>> Hi Bob,
>>>
>>> On Jan 3, 2008, at 8:19 AM, Bob Cowdery wrote:
>>>
>>>> I have a couple of small issues with wxErlang. In general it is
>>>> working
>>>> great so far.
>>>>
>>>> 1. I can't get any events to fire off a wxToggleButton. As far as I
>>>> remember this behaves like a check box but neither
>>>> command_button_clicked nor command_checkbox_clicked fire. Is there
>>>> some
>>>> other event I should be looking at.
>>> wxToggleButton generates a wxEVT_COMMAND_TOGGLEBUTTON_CLICKED event
>>> when clicked; I haven't looked at wxErlang but I am guessing that
>>> there is a command_togglebutton_clicked event somewhere...
>> Ah, guessed wrong again... for whatever reason the event is commented  
>> out in api_gen/wxapi.conf in the source distribution.
>>
>> Uncommenting the event and regenerating the API  might give you the  
>> event but I'm guessing again because so far I've not been able to  
>> build successfully on my MacBook :(
>>
>>>
>>>
>>>> 2. This is a bit obscure and I'm not sure if it's a wxWidgets issue.
>>>> If
>>>> I place a checkbox in the first cell of a wxGridSizer the click area
>>>> appears over the label and not the box, which also has a white band
>>>> underneath it.
>>> Sorry, No idea about this one.
>>>
>>> Regards,
>>> John
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list