|
1 registered members (AndrewAMD),
599
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: button in panel only works at pos(0,0)
[Re: krial057]
#398526
04/03/12 13:28
04/03/12 13:28
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
atlee, according to you profile you have version 7.05. Which edition do you use?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: button in panel only works at pos(0,0)
[Re: Uhrwerk]
#398554
04/03/12 21:27
04/03/12 21:27
|
Joined: Mar 2009
Posts: 20
atlee
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 20
|
|
|
|
Re: button in panel only works at pos(0,0)
[Re: atlee]
#398556
04/03/12 22:00
04/03/12 22:00
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
That's the version. Which edition do you use, i.e. extra, commercial or professional.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: button in panel only works at pos(0,0)
[Re: Uhrwerk]
#398557
04/03/12 22:15
04/03/12 22:15
|
Joined: Mar 2009
Posts: 20
atlee
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 20
|
|
|
|
Re: button in panel only works at pos(0,0)
[Re: sivan]
#398565
04/04/12 03:42
04/04/12 03:42
|
Joined: Mar 2009
Posts: 20
atlee
OP
Newbie
|
OP
Newbie
Joined: Mar 2009
Posts: 20
|
This is the code for the main bitmap that works, but only for one button. The manual implies that several buttons can be controlled from the main bitmap, but it doesn't work.
This code works:
PANEL* gpsfasetup_pan = { layer = 0; bmap = gpsfasetup_bmp; button(0,0,quitprogrambutt_bmp,NULL,NULL,quitprogram,NULL,NULL); flags = SHOW; }
If I try to add an additional button as follows: button(0,0,runanalysisbutt_bmp,NULL,NULL,runanalysis,NULL,NULL);
The second button when clicked calls the original function (quitprogram) ignoring the function assigned (runanalysis).
|
|
|
Re: button in panel only works at pos(0,0)
[Re: atlee]
#398578
04/04/12 10:07
04/04/12 10:07
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
You set both buttons to position 0,0? Then one button is over the other (same position) and you can click only one of them.
Last edited by Widi; 04/04/12 10:15.
|
|
|
|