Greetings,
I create a Popup,
Tell it how big to be,
Tell it what to say,
Would also like to tell it where to go (placement - relative or absolute - on the screen),
And it seems to take these instructions as suggestions.
How do you make it behave?
Here is some code: All parameters are valid data...
Point point = new Point(position.Lon, position.Lat);
Popup popup = new Popup(mapDisplay, popupInfo, popupTitle, point);
//Setting this helps to a degree, if I leave them off it is way too small
// but it only increases in size to a certain degree. What is particularly anoying is
// I cannot make it size to the point where the scroll bars do not show up.
popup.PopupHeight = 700;
popup.PopupWidth = 600;
popup.Activate();
Here you just see the size being set.
I have also been trying to display data that includes a table.
The table shows up with a table border and border on the cells (td tags)
So I tell the table border='0' and rules='none'
It still has borders.
I look at the source (right click the popup contents - then click view source)
and there are style settings prefixed to my content.
The style sets the table border and td border.
So I search for that style in the AGX install folder and find default.css
It has the styles just as in my popup source.
I edit the default.css file and remove these border settings.
Restart AGX.
And it still has borders.
Note: this would not be an optimal solution anyway because it would not be feasable to change the default.css file on all of our workstations (in the thousands)
However, I was just trying to get a handle on how to make it do what I want it to do.
Finally, being able to tell it where to display on the application would be nice. Such as "top left corner of the map display"). Is there any way to accomplish any of this?
Any help is greatly appreciated.
Thanks much!