Page 1 of 1

ToolButton Picture

Posted: Wed Sep 18, 2013 2:15 pm
by Pablo César
I do not know why this demo:
Teste94.rar
(822.64 KiB) Downloaded 982 times
has different behaviour when trying to change button picture...


In ToolButton, does not change the picture :cry:, but caption of both buttons: yes... :roll:

Re: ToolButton Picture

Posted: Wed Sep 18, 2013 2:28 pm
by serge_girard
Pablo,

It must be a bug...


Serge

Re: ToolButton Picture

Posted: Fri Jul 10, 2015 8:58 pm
by chrisjx2002
Re up of this problem of picture in button.

I test the Teste94 (Main) program with the last HMG version. There is always the problem with the toolbar picture that does not change.

More strange I delete the clause picture in the define button Button_1. When I click nothing happens but when I click a second time the caption and the picture change. I have added the msginfo to be sure that I have clicked.

Any idea?

ToolButton Picture

Posted: Mon Jul 13, 2015 2:56 pm
by Pablo César
IMHO as is in TOOLBUTTON at SETTOOLBUTTONCAPTION function C for captions we also will need one special C function to change images in TOOLBUTTONs by the TBIF_IMAGE (TB_SETBUTTONINFO).

Most probably Dr. Claudio could helps in that.

Re: ToolButton Picture

Posted: Sat Jul 18, 2015 5:06 pm
by chrisjx2002
I have made some more tests for the button picture.

If I delete the picture of the button (picture ="") then I have to assign two times the picture value "button5.bmp" to the button of the form (line 46 and 47). If I do the same thing for the caption there is no problem.

It seems to be a bug. Perhaps Dr. Caudio can do something?

Re: ToolButton Picture

Posted: Sat Mar 19, 2016 6:27 pm
by srvet_claudio
I Fixed.

Re: ToolButton Picture

Posted: Sun Mar 20, 2016 3:57 am
by bpd2000
srvet_claudio wrote:I Fixed.
Thank you

Re: ToolButton Picture

Posted: Sun Mar 20, 2016 4:12 pm
by chrisjx2002
Thanks Claudio for the bug fix.

How to have the new version?

Re: ToolButton Picture

Posted: Sun Mar 20, 2016 4:29 pm
by srvet_claudio
chrisjx2002 wrote:Thanks Claudio for the bug fix.

How to have the new version?
In next days