[erlang-questions] wxErlang

Bob Cowdery bob@REDACTED
Mon Jan 7 21:08:44 CET 2008


Dan

Thank you so much for fixing that. I now have good fonts and colours so
I can push on some more.

The checkbox issue seems to be that there is some kind of translucent
rectangle in the first cell that interferes with any widget placed
there. I don't see how it could be anything to do with the bindings.

Bob

On Mon, 2008-01-07 at 10:28 +0100, Dan Gudmundsson wrote:
> 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
> >>> erlang-questions@REDACTED
> >>> http://www.erlang.org/mailman/listinfo/erlang-questions
> > 
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> > 




More information about the erlang-questions mailing list