起初,我猜测这是可以模拟只绘制文本两次到屏幕边界,但在不同的尺寸。
At first, I presumed it was possible to simulate a border by only drawing the text twice to the screen, but in different sizes.
请注意,超出屏幕边界(size定义的边界外)画线并非不允许,只是被忽略了而已。
Note that drawing off screen (outside of the bounds defined by size) is not illegal, but simply ignored.
微软甚至还为屏幕阅读设计了几款字体,比如Georgia和Verdana,这些都是以像素边界为准则,它们在屏幕上看起来很美,但印出来则没什么性格。
Indeed Microsoft actually designed font faces for on-screen reading, like Georgia and Verdana, around the pixel boundaries; these are beautiful on screen but don't have much character in print.
当使用putConstraint() 时,应首先确信指定了未知组件的位置,并将其连接到某样可以计算的或者固定的东西上,比如屏幕的边界。
When you use putConstraint(), be sure to specify the unknown component position first and connect it to something that can be calculated or is fixed, like the edge of the screen.
例如,在顶级窗口完全移动到屏幕之外或者某个子对象移动到容器视区边界外部的时候。
For example, when a top-level window is moved completely off-screen or a child object is moved outside the boundaries of the container's viewport.
例如,在顶级窗口完全移动到屏幕之外或者某个子对象移动到容器视区边界外部的时候。
For example, when a top-level window is moved completely off-screen or a child object is moved outside the boundaries of the container's viewport.
应用推荐