阿斯特拉as3面板布局
我正在尝试创建一个与 提要阅读器示例。
我遇到的问题是我发现文档不清楚。有很多不同类型的布局,我不知道什么时候该使用哪一种。
在示例中,右侧有几个水平面板:
- [feedToolbar(HboxPane)]
- [feedItemsGrid(Datagrid)]
- [filterToolbar(HBox)]
这不包括详细信息面板和调整大小手柄。
我想用我的自定义内容交换 DataGrid,它基本上是一个精灵。我遇到的问题是我不能只包含一个精灵,因为它会进行一些时髦的大小调整。我希望滚动条在内容太高时出现,并且背景皮肤与 DataGrid 相同。
I'm trying to create a layout not too different from the feed reader sample.
The problem I'm having is that I'm finding the documentation unclear. There are so many different types of layouts that I don't know which one to use when.
In the example, on the right side there are a few horizontal panels:
- [feedToolbar(HboxPane)]
- [feedItemsGrid(Datagrid)]
- [filterToolbar(HBox)]
this does not include the details panel and the resize handle.
I would like to swap the DataGrid with my custom content which is basically a sprite. The problem I have is that I cannot just include a sprite, because it does some funky resizing. I would like the scroll bar to appear when the content is too tall, and have have the same skin for the background as the DataGrid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发布后不久...
我尝试过
BaseScrollPane
,这是一个 DataGrid 扩展的类,但我无法使用 addChild。我遇到了
FlowPane
,似乎它成功了。shortly after posting...
I've tried
BaseScrollPane
, a class that DataGrid extends, but I couldn't use addChild.I came across
FlowPane
, seems like it did the trick.