RE: [V2d-discuss] First cut applications chapter complete!
Status: Planning
Brought to you by:
glennmaughan
From: Glenn M. <gle...@op...> - 2002-06-19 12:10:23
|
Hi Peter, > Frequently, there are a number of occasions when a few lines > of code are needed. I am thinking of examples like the following: > > feature > screen: EV_SCREEN > message: EV_INFORMATION_DIALOG > initialize is > do > create screen > create message.make_with_text("Width = " + > screen.width.out + "; height = > " + screen.height.out) > message.show > end > > > This is to demonstrate how to identify screen width and > height and illustrates the use of these quantities. > > It would be nice if we had a convention to paste this code > into the default ev_application main_window. It immediately > answers the question "How do I identify the screen width and > height?" without clutter and illustrates the use of these parameters. I'm not sure I know what you mean. Are you saying you just want to show these lines. If so I have been using the InlineEiffelCode style to show a "snippet" of code without writing a full example around it. Thanks. Glenn. |