Hi, 
 
var FDoorList: TList;
begin
FDoorList:= TList.Create;
for i := 1 to 11 do
begin
  aPlayer := TPlayer.Create
  aPlayer.Picture.Bitmap:= myPlayerBitMap; // player picture
  aPlayer.PopupMenu:= PlayerPopupMenu; 
  aPlayer.Top:= myvalue;    // myvalue is assigned base on the position 
  aPlayer.Left:= myvalue2;  // myvalue2 is assigned base on the position
  aPlayer.JerseyNumb := i // player jersey numb
  FPlayer.Add(aPlayer)
end;
 
The statement above use to create the player list, then position them on the 
form base on the position they play (example: defender player has different 
position as the attacker player).
Now when the users right click at any player, the system will pop up the 
PlayerPopupMenu (P/S: PlayerPopupMenu has the 'GET JERSEY NUMBER' Item) . When 
the user click at the Get Jersey Number item, i want the system to show that 
particular player's jersey number. How am i going to do so ?? I mean how the 
PlayerPopupMenu identified which player i'm currently click at, cos all players 
are actually link to the same PopupMenu. Thanks in advance.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to