如何制作可扩展的复合材料,同时拖动我们自定义的新向导
提前致谢。
我正在新向导上创建一个 GUI,默认情况下在 Eclipse 中可用,在向导页面中,我在 createControl 方法中创建 GUI,现在为此我正在创建一个复合材料,它是父级的子级,因为我必须从左侧创建两个复合材料向右,其中左侧一个应该仅水平扩展,右侧一个应该在水平和垂直两个方向上扩展
现在在左侧合成中,我必须显示位于 C 驱动器位置的图像,当用户单击左侧合成中显示的图像时,在右侧合成中特定图像将加载。
现在我已经使用 rcp 完成了功能,对复合和滚动复合使用了填充布局,对显示带有标签的图像的内部复合使用了行布局,现在我在向导页面中实现了相同的逻辑,但 GUI 是不可扩展的......糟透了......我尝试了每种布局,但我不知道我在哪里落后......因为我是 GUI 中的新手......:(
我的问题是如何在向导页面中显示两个复合材料,其中第一个是只能垂直扩展,另一种可以双向扩展,并且显示位于我的 c 驱动器中的这些合成图像中的图像........
Thanks in advance.
I am creating one GUI on new wizard, that is available in eclipse by default, in wizard page i m creating GUI in createControl method , now for that i am creating one composite that is child of parent in that i have to create two composite from left to right in which left one should only expand horizantally and right one should expand in both directions horizantally and vertically
Now in left composite i have to display images located in c drive location and when user clicks on images displayed in left composite , in right composite specific images will load .
Now functionality i have completed using rcp , used fill layout for both composite and scrolled composite and row layout for inner composites that displays images with label , now the same logic i am implementing in wizard page but GUI is nonexpandable ......it sucks.......i tried every layout but i don't know where i m lagging ....as i m newbee in GUI ...:(
My problem is how to display two composite in wizard page , where first is only vertically expandable , and other one is expandable in both directions, and display images in these composites , that are located in my c drive ........
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
父复合布局应该是网格布局。对于左子复合材料,将其布局数据设置为垂直展开。至于正确的组合,将其设置为填充两者。
希望这有帮助。
The parent composite layout shoud be grid layout. For the left child composite, set it layoutdata to be vertical expand. As for the right composite, set it to fill both.
Hope this help.