Vielleicht klappt es ja auf deutsch besser. ;-)

Es existiert ein vorher definiertes und leeres PANEL Objekt. In diesem erstelle ich dann nach und nach mit pan_setbuttons mehrere neue Buttons.

Wichtig ist, dass diese Radio-Buttons werden. Erstellt werden sie. Funktionieren tun sie auch, nur verhalten sie sich nicht wie Radio-Buttons.
D.h.: Klicke ich die Buttons durch, geht der vorher aktiverte nicht aus (es werden die falschen Bitmaps angezeigt).

Jetzt meine Frage:
Ist es noch eine Art Bug oder habe ich einfach die BMAPS in pan_setbutton falsch zugeordnet?

Benutze ich den button_state 2, passiert auch nix anderes als bei button_state 3.

Vielleicht hat jemand von euch ein kleines Beispiel, aus einem aktuellen Projekt, damit ich das mit meinem vergleichen kann.

Noch kurz die Struktur:

Code:
void CreateButtons()
{
     pan_setbutton(ThePanel,0,3, (...));
}
void SetButtons()
{
     for(x=0;x<5;x++)
     {
          CreateButtons();
     }
}


--------------------------------------------------------

Hey !!

In consideration of this two things:

Thread: pan_setbutton and button_state and
Bug Report from Version 7.73.0 -> pan_setbutton

I've a question.

Has anybody use the pan_setbutton function with button_state 3?
So, if I use them, and create new radio buttons it works not correctly. I can click on the new buttons but the other buttons are not switching off.

In fact: If I use a normal definition of the buttons in a panel, without pan_setbutton command, it works fine.

Here are my two definitions:

Code:
pan_setbutton(pNETWORK_CardButtons,0,3,sCardPosX,sCardPosY,g_bmapNETWORK_CardBlogOver,NULL,g_bmapNETWORK_CardBlogOver,NULL,fMENU_CardBlogClicked,NULL,NULL);



or

Code:
button_radio(0,0,g_bmapNETWORK_CardBlogOver,NULL,g_bmapNETWORK_CardBlogOver,fMENU_CardBlogClicked,NULL,NULL);



OK. Either I have an wrong syntax in my allocation of bmaps or there is something other false.

Can anybody reconstruct this and tell me, what's wrong?

THX a lot.

EDIT:

I have modified the allocation of the bmaps:

Code:
pan_setbutton(pNETWORK_CardButtons,0,3,sCardPosX,sCardPosY,g_bmapNETWORK_CardBlogOver,g_bmapNETWORK_CardBlogOut,g_bmapNETWORK_CardBlogOver,g_bmapNETWORK_CardBlogOver,fMENU_CardBlogClicked,NULL,NULL);



Last edited by CHaP; 07/25/09 13:34. Reason: deutsch