On Sat, 31 Dec 2005 20:15:47 +0200
Markku Niskanen <[EMAIL PROTECTED]> wrote:

> Has anyone idea/time to have a look at the SpeedButton Glyph
> loading problem in Designer which is a real showstopper now. I am not 
> yet familiar enough with the internal workings of the IDE, I can only
> provide a bactrace. This happens when you assign a glyph to a
> speedbutton (select image and press ok).

I just tried with a .bmp. It works.
What lazarus version are you using?
What fpc version?
What OS?
Can you send a small example image, that does not work?


Mattias


> 
> I tried to investigate the cause but I have very little clue as to what
> to look for and where. Loading glyphs at runtime is an alternative,
> of course and I have used that. Anyhow, the backtrace is :
> 
> 
> #0  $baadf00d in ?? ()
> #1  $004b21b5 in TBITMAPCANVAS__FREEDC (this=$22c42d4) at
> bitmapcanvas.inc:114
> #2  $004b1faa in TBITMAPCANVAS__CREATEHANDLE (this=$22c4014) at
> bitmapcanvas.inc:49
> #3  $004b8260 in TCANVAS__REQUIREDSTATE
> (REQSTATE=[CSHANDLEVALID..CSBRUSHVALID], this=$22c4014) at canvas.inc:1403
> #4  $004b80fa in TCANVAS__GETHANDLE (this=$22c4014) at canvas.inc:1315
> #5  $0048f4dc in TBUTTONGLYPH__DRAW (CANVAS=$e553c, CLIENT=
>         {LEFT = 0, TOP = 0, RIGHT = 23, BOTTOM = 22, TOPLEFT = {X = 0, Y =
> 0}, BOTTOMRIGHT = {X = 23, Y = 22}},
>     OFFSET={X = 0, Y = 0}, STATE=BSUP, TRANSPARENT=true, BIDIFLAGS=0,
> this=$1fddc9c, result=
>         {LEFT = 0, TOP = 0, RIGHT = 23, BOTTOM = 22, TOPLEFT = {X = 0, Y =
> 0}, BOTTOMRIGHT = {X = 23, Y = 22}})
>     at buttonglyph.inc:127
> #6  $00490443 in TCUSTOMSPEEDBUTTON__PAINT (this=$22814f0) at
> speedbutton.inc:496
> #7  $0048aff6 in TGRAPHICCONTROL__WMPAINT (MESSAGE={MSG = 1056, DC =
> 3724621780, PAINTSTRUCT = $0, RESULT = 0},
>     this=$22814f0) at graphiccontrol.inc:64
> #8  $007bfd1b in SYSTEM_TOBJECT_$__DISPATCH$formal ()
> #9  $00567082 in TDESIGNER__PAINTCONTROL (SENDER=$22814f0, THEMESSAGE=
>       {MSG = 1056, DC = 3724621780, PAINTSTRUCT = $0, RESULT = 0},
> this=$22c80ec) at Designer.pp:1028
> #10 $00568b42 in TDESIGNER__ISDESIGNMSG (SENDER=$22814f0, THEMESSAGE=
>       {MSG = 1056, WPARAM = -570345516, LPARAM = 0, RESULT = 0, WPARAMLO =
> 14292, WPARAMHI = 56833, LPARAMLO = 0, LPARAM
> HI = 0, RESULTLO = 0, RESULTHI = 0}, this=$22c80ec) at Designer.pp:1796
> #11 $0048637d in TCONTROL__WNDPROC (THEMESSAGE=
>       {MSG = 1056, WPARAM = -570345516, LPARAM = 0, RESULT = 0, WPARAMLO =
> 14292, WPARAMHI = 56833, LPARAMLO = 0, LPARAM
> HI = 0, RESULTLO = 0, RESULTHI = 0}, this=$22814f0) at control.inc:1445
> #12 $004855e4 in TCONTROL__PERFORM (MSG=1056, WPARAM=-570345516, LPARAM=0,
> this=$22814f0) at control.inc:1006
> #13 $0047d920 in TWINCONTROL__PAINTCONTROLS (DC=3724621780, FIRST=$0,
> this=$2280ca0) at wincontrol.inc:2680
> #14 $0047d707 in TWINCONTROL__PAINTHANDLER (THEMESSAGE=
>       {MSG = 1056, DC = 3724621780, PAINTSTRUCT = $6facc, RESULT =
>       457432},
> this=$2280ca0) at wincontrol.inc:2619
> #15 $00480607 in TWINCONTROL__WMPAINT (MSG={MSG = 1056, DC = 3724621780,
> PAINTSTRUCT = $6facc, RESULT = 457432},
>     this=$2280ca0) at wincontrol.inc:4318
> #16 $0048b302 in TCUSTOMCONTROL__WMPAINT (MESSAGE=
>       {MSG = 1056, DC = 3724621780, PAINTSTRUCT = $6facc, RESULT =
>       457432},
> this=$2280ca0) at customcontrol.inc:100
> #17 $007bfd1b in SYSTEM_TOBJECT_$__DISPATCH$formal ()
> #18 $00567082 in TDESIGNER__PAINTCONTROL (SENDER=$2280ca0, THEMESSAGE=
>       {MSG = 1056, DC = 3724621780, PAINTSTRUCT = $6facc, RESULT =
>       457432},
> this=$22c80ec) at Designer.pp:1028
> #19 $00568b42 in TDESIGNER__ISDESIGNMSG (SENDER=$2280ca0, THEMESSAGE=
>       {MSG = 1056, WPARAM = -570345516, LPARAM = 457420, RESULT = 457432,
> WPARAMLO = 14292, WPARAMHI = 56833, LPARAMLO =
>  64204, LPARAMHI = 6, RESULTLO = 64216, RESULTHI = 6}, this=$22c80ec) at
> Designer.pp:1796
> #20 $0048637d in TCONTROL__WNDPROC (THEMESSAGE=
>       {MSG = 1056, WPARAM = -570345516, LPARAM = 457420, RESULT = 457432,
> WPARAMLO = 14292, WPARAMHI = 56833, LPARAMLO =
>  64204, LPARAMHI = 6, RESULTLO = 64216, RESULTHI = 6}, this=$2280ca0) at
> control.inc:1445
> #21 $0047e425 in TWINCONTROL__WNDPROC (MESSAGE=
>       {MSG = 1056, WPARAM = -570345516, LPARAM = 457420, RESULT = 457432,
> WPARAMLO = 14292, WPARAMHI = 56833, LPARAMLO =
>  64204, LPARAMHI = 6, RESULTLO = 64216, RESULTHI = 6}, this=$2280ca0) at
> wincontrol.inc:3046
> #22 $004de7a7 in DELIVERMESSAGE (TARGET=$2280ca0, MESSAGE=void) at
> Win32Proc.pp:541
> #23 $00457ce1 in SENDPAINTMESSAGE (parentfp=$6fccc) at
> win32callback.inc:435
> 

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to