PDA

View Full Version : pushpin balloons



Manuel
11-30-2002, 12:09 PM
How could i do non-editable puspin balloons?

John Meyer
12-02-2002, 11:48 AM
I don't think there is a real stright forward way of doing it. Depending on how your map is used you would need to come up with a way to determine if the puishpin(s) were changed and either change them back or reload the saved map??

yelmaci
12-04-2002, 06:55 PM
i hope this helps. this is in delphi6.

after creating the pushpin, i set the state of the baloon to 1. this makes the note invisible. but the title is visible. title is not editable. but the info is not more that 1 column. this is not good if you need more than 2.

procedure TForm1.BitBtn1Click(Sender: TObject);
var
p:Pushpin;
o:olevariant;
begin
o:=1;
p:=map11.AddPushpin(map11.GetLocation(54,4,0),'thi s is non editable str i think!');
p.Set_BalloonState(o);
end;