rebol vid 面板和偏移 0x0 的问题
这不起作用,
panel1.layout: layout [
offset: 0x0
yuml-image: image img
]
panel2.layout: layout [
offset: 0x0
area (yuml-command0) yellow
]
panelbuttons.layout: layout [
button "Save" [request-save]
button "Refresh" [request-refresh]
button "Quit" [quit]
]
Main: layout [
panel1: box 640x300 white
return
panelbuttons: box 640x20
return
panel2: box 640x180 yellow
]
panel1/pane: panel1.layout
panel2/pane: panel2.layout
panelbuttons/pane: panelbuttons.layout
view/title/options center-face Main "askuml.com" [no-border]
我只是想要与此等效的内容:
Main: layout [
offset: 0x0
yuml-image: image img
return
across
button "Save" [request-save]
button "Refresh" [request-refresh]
button "Quit" [quit]
return
area (yuml-command0) yellow
]
另外,为什么我有边框,而我要求偏移 0x0 看到下面丑陋的灰色边框: 替代文本 http://askuml.com/files/2010/07/ uml-online-tool.gif
更新:现在我有这个丑陋的窗口 替代文本 http://askuml.com/files/2010/07/vid- ugly.gif
请参阅http://askuml.com/blog /yuml-use-case-desktop-client/
我现在更新了代码,我看不到(甚至是你的:))按钮:
This doesn't work
panel1.layout: layout [
offset: 0x0
yuml-image: image img
]
panel2.layout: layout [
offset: 0x0
area (yuml-command0) yellow
]
panelbuttons.layout: layout [
button "Save" [request-save]
button "Refresh" [request-refresh]
button "Quit" [quit]
]
Main: layout [
panel1: box 640x300 white
return
panelbuttons: box 640x20
return
panel2: box 640x180 yellow
]
panel1/pane: panel1.layout
panel2/pane: panel2.layout
panelbuttons/pane: panelbuttons.layout
view/title/options center-face Main "askuml.com" [no-border]
I just wanted the equivalent of this:
Main: layout [
offset: 0x0
yuml-image: image img
return
across
button "Save" [request-save]
button "Refresh" [request-refresh]
button "Quit" [quit]
return
area (yuml-command0) yellow
]
Also why do I have a border whereas I asked offset 0x0 see the ugly grey border below:
alt text http://askuml.com/files/2010/07/uml-online-tool.gif
Update: now I have this ugly window
alt text http://askuml.com/files/2010/07/vid-ugly.gif
see http://askuml.com/blog/yuml-use-case-desktop-client/
I updated the code now I can't see the (even your :)) buttons:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我想说你的第一直觉是正确的,但会这样修改它:
如果你真的需要分解面板,让“面板样式”完成繁重的工作:
I'd say your first instinct was correct, but would modify it thus:
If you really need to break up the panels, let the 'panel style do the heavy lifting:
您需要:
您还需要
space 0x0
和backcolor 238.234.221
来消除灰色。我也偏向于更改区域边缘 -区域边缘 [大小:1x1 效果:无]
其他一些选项:
布局/紧密 [...]
(空格和原点 0),布局/原点 [...]0x0
。view/options [no-border]
指操作系统窗口。布局方言中的任何set-word!
特指为后续样式分配一个单词。You need:
You also have
space 0x0
andbackcolor 238.234.221
to dispense with the grey. I'm partial to changing the area edge as well -area edge [size: 1x1 effect: none]
Some other options:
layout/tight [...]
(space and origin 0),layout/origin [...] 0x0
.view/options [no-border]
refers to the OS window. Anyset-word!
in the layout dialect specifically refers to assigning a word to the subsequent style.试试这个,
或者使用 insert 而不是append 将面放在其他面后面:
try this,
or use insert instead of append to put the face behind of others:
面板只是一个布局,没有别的。
您可以创建布局并将它们添加到另一个布局的窗格中,或者仅使用面板样式。
http://www.rebol.com/how-to/subpanels.html
Panel is just a layout, nothing else.
You can create layouts and adds them to another layout's pane, or just use panel style.
http://www.rebol.com/how-to/subpanels.html