ToolButton Picture

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

ToolButton Picture

Post by Pablo César »

I do not know why this demo:
Teste94.rar
(822.64 KiB) Downloaded 972 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:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: ToolButton Picture

Post by serge_girard »

Pablo,

It must be a bug...


Serge
There's nothing you can do that can't be done...
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: ToolButton Picture

Post 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?
Attachments
Main.zip
(1.4 MiB) Downloaded 264 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

ToolButton Picture

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: ToolButton Picture

Post 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?
Attachments
Main.zip
(1.4 MiB) Downloaded 229 times
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: ToolButton Picture

Post by srvet_claudio »

I Fixed.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: ToolButton Picture

Post by bpd2000 »

srvet_claudio wrote:I Fixed.
Thank you
BPD
Convert Dream into Reality through HMG
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: ToolButton Picture

Post by chrisjx2002 »

Thanks Claudio for the bug fix.

How to have the new version?
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: ToolButton Picture

Post by srvet_claudio »

chrisjx2002 wrote:Thanks Claudio for the bug fix.

How to have the new version?
In next days
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply