Hi Alexander and folks, The main slot (app.slot) is flow not stack. If you add `:width => 45` into Seth's sample snippet. It'll work as same as your code.
See this: - http://help.shoooes.net/Slots.html You can find the following line: - Last thing: The Shoes window itself is a flow. If you add no styles, the width will be 100%. 100% means the object fills its parent slot. Regards, ashbb On Tue, Mar 17, 2009 at 11:40 PM, Alexander Rakoczy <[email protected] > wrote: > Firstly, I believe the main slot (app.slot) is a stack. I could be > wrong here, though. Secondly, for some reason you have to stop the > inner flow from being the full width of the app: > > Shoes.app do > flow do > para "you have " > flow :width => 45 do #stop from taking over the world > background red..green > para "GOT", :stroke => white > end > para " to be kidding me" > end > end > > > I'm not sure why, either. > > On Tue, Mar 17, 2009 at 09:25, Seth Thomas Rasmussen > <[email protected]> wrote: > > On Tue, Mar 17, 2009 at 1:10 AM, Daniel Worthington > > <[email protected]> wrote: > >> So, I am a web developer and basically I am trying to style text as if > it > >> were an "inline block." > >> > >> I'm sure this can be done somehow, but I was wondering what y'all think > is > >> the simplest way > >> > >> What I really want to do is have text, say a single word in a paragraph, > and > >> give it a border and rounded corners and even a gradient background (or > >> anything else you can do with a background in Shoes) but just on an em, > or a > >> code. All I can seem to do is change the :fill on these elements, which > is > >> pretty much what you get in HTML, but I am greedy and want to make > things > >> beautiful. Backgrounds seem to only work on stacks and flows. Help? > > > > Hmm. I was thinking that you might be able to hack it with a lot of > > flow/para jiggery pokery, but perhaps not.. > > > > Shoes.app do > > para "you have " > > flow do > > background red..green > > para "GOT", :stroke => white > > end > > para " to be kidding me" > > end > > > > Each para in that example is on its own line, despite everything being > > in flows. I'm not sure why, perhaps somebody else knows more about > > layout to come up with a solution here.. > > > > I think that maybe the new flow produces a newline effect, despite it > > being rendered inside a flow.. not sure if that's correct behavior or > > not. > > > > -- > > Seth Thomas Rasmussen > > http://greatseth.com > > > > > > -- > alexander rakoczy > http://arakoczy.com >
