FLTK native in 'D'. Would that be useful?
Carlos Santander
csantander619 at gmail.com
Sun Aug 13 06:20:51 PDT 2006
MatthiasM escribió:
>
> I had a little more time and managed to port pushhbuttons and keyboard
> handling. The "button" demo works pretty well now.
>
> I also ported the standard dialogs (messages, alerts, simple choices),
> and apart from the Fl_Input widget, the seem to work.
>
> Group resizing is now implemented as well.
>
> So, just in case you are writing a GUI app on Mac that only needs
> pushbuttons in a window, D-FLTK is usable for you ;-)
>
>
> Matthias
>
>
> PS: since I don't have the terminating 0 in "D" strings, you will
> sometimes see additional letters popping up in labels. This still
> requires fixing. The code is in "D/fl/draw.d", called fl_measure and
> fl_draw... .
>
> PPS: download is still only via svn from:
> http://svn.easysw.com/public/fltk/fltk/branches/branch-D-1.1
I still get a bus error when pressing Command-Q with rev 5297 (both hello and
button):
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x00023e1c in _D2fl3mac21QuitAppleEventHandlerFPvPviZi (appleEvt=0xbfffead0,
reply=0xbfffeae0, refcon=0) at fl/mac.d:1295
1295 if ( Fl_X.first == x ) {
(gdb) bt
#0 0x00023e1c in _D2fl3mac21QuitAppleEventHandlerFPvPviZi (appleEvt=0xbfffead0,
reply=0xbfffeae0, refcon=0) at fl/mac.d:1295
#1 0x914f9960 in aeDispatchAppleEvent ()
#2 0x91504fc0 in sendToSelf ()
#3 0x914fd8f8 in AESendMessage ()
#4 0x914fd3d4 in aeSend ()
#5 0x9329938c in AESend ()
#6 0x9334fcc4 in SendCoreAEToSelf ()
#7 0x932b5bf0 in HandleCommandEvent ()
#8 0x931e72b4 in HIApplication::EventHandler ()
#9 0x931ea554 in DispatchEventToHandlers ()
#10 0x931e9cac in SendEventToEventTargetInternal ()
#11 0x932298f8 in CallNextEventHandler ()
#12 0x0002389c in _D2fl3mac21carbonDispatchHandlerFPvPvPvZi
(nextHandler=0xbffff010, event=0x409490, userData=0x0) at fl/mac.d:1100
#13 0x931ea554 in DispatchEventToHandlers ()
#14 0x931e9cac in SendEventToEventTargetInternal ()
#15 0x931f0a60 in SendEventToEventTarget ()
#16 0x932692cc in SendHICommandEvent ()
#17 0x93299158 in SendMenuItemSelectedEvent ()
#18 0x932b49d0 in HandleKeyboardEvent ()
#19 0x931ea554 in DispatchEventToHandlers ()
#20 0x931e9cac in SendEventToEventTargetInternal ()
#21 0x931e9b28 in SendEventToEventTargetWithOptions ()
#22 0x932b3ce0 in HandleKeyboardEvent ()
#23 0x931f0ddc in ToolboxEventDispatcherHandler ()
#24 0x931ea7a4 in DispatchEventToHandlers ()
#25 0x931e9cac in SendEventToEventTargetInternal ()
#26 0x932298f8 in CallNextEventHandler ()
#27 0x0002389c in _D2fl3mac21carbonDispatchHandlerFPvPvPvZi
(nextHandler=0xbffff7e0, event=0x425ff0, userData=0x0) at fl/mac.d:1100
#28 0x931ea554 in DispatchEventToHandlers ()
#29 0x931e9cac in SendEventToEventTargetInternal ()
#30 0x931f0a60 in SendEventToEventTarget ()
#31 0x00023bdc in _D2fl3mac16do_queued_eventsFdZd (time=1e+20) at fl/mac.d:1245
#32 0x00023d60 in _D2fl3mac7fl_waitFdZi (time=1e+20) at fl/mac.d:1280
#33 0x00002960 in _D2fl2fl2Fl4waitFdZd (time_to_wait=1e+20) at fl/fl.d:167
#34 0x000029fc in _D2fl2fl2Fl3runFZi () at fl/fl.d:223
#35 0x0000275c in _Dmain (args={length = 1, ptr = 0x403610}) at test/button.d:55
#36 0x00031fac in _d_run_main2goFZv () at
../../../gcc-4.0.3/libphobos/internal/dgccmain2.d:83
#37 0x00032080 in _d_run_main (argc=1, argv=0x0, main_func=0x1800000) at
../../../gcc-4.0.3/libphobos/internal/dgccmain2.d:93
#38 0x00001e9c in _start (argc=1, argv=0xbffffb68, envp=0xbffffb70) at
/SourceCache/Csu/Csu-58/crt.c:272
#39 0x00001d44 in start ()
--
Carlos Santander Bernal
More information about the Digitalmars-d-dwt
mailing list