ToolButton Picture
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
ToolButton Picture
I do not know why this demo:
In ToolButton, does not change the picture , but caption of both buttons: yes...
has different behaviour when trying to change button picture... In ToolButton, does not change the picture , but caption of both buttons: yes...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
Pablo,
It must be a bug...
Serge
It must be a bug...
Serge
There's nothing you can do that can't be done...
-
- Posts: 190
- Joined: Wed Jan 06, 2010 5:39 pm
Re: ToolButton Picture
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?
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
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
ToolButton Picture
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.
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 190
- Joined: Wed Jan 06, 2010 5:39 pm
Re: ToolButton Picture
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?
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
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: ToolButton Picture
I Fixed.
Re: ToolButton Picture
Thank yousrvet_claudio wrote:I Fixed.
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
-
- Posts: 190
- Joined: Wed Jan 06, 2010 5:39 pm
Re: ToolButton Picture
Thanks Claudio for the bug fix.
How to have the new version?
How to have the new version?
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: ToolButton Picture
In next dayschrisjx2002 wrote:Thanks Claudio for the bug fix.
How to have the new version?