PDA

View Full Version : AnchorData example



eugenparaschiv
21 Aug 2008, 6:23 AM
Ok, I've tried to use the AnchorData example in the help center and it doesn't work (the code is deprecated); First, it would be great if the examples were updated, but until that happens:
panel.setData(new AnchorData("50% 60px") ); is deprecated and it has to be replaced by:
panel1.setData("key", new AnchorData("50% 60px") );
my question is, what do I use for the key String?

gslender
21 Aug 2008, 1:12 PM
without posted example I can't say for sure, but if you got that example from explorer then your assumption could be wrong - a lot of the examples store layout data in the setData method so that the calling part of explorer knows how to set the layout for the container example page

the api docs kinda self explain how to use anchorlayout and anchordata - what part are you having problems with?