Changes between Version 2 and Version 3 of TEXT_FRAME_NON_FLOW_R0


Ignore:
Timestamp:
01/27/09 03:30:07 (16 years ago)
Author:
sriggins
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_FRAME_NON_FLOW_R0

    v2 v3  
    44 
    55= Analysis = 
    6 ^(Give as much as possible of the needed information for designing and implementing the task in the following sections.)^ 
    76 
    87== Overview == 
    9 ^(Provide a brief overview of the whole task in its first revision. Stick to the current revision of the task, but keep an eye to the whole task progress, and stay alert for possible smells.)^ 
     8 
     9A non-flow text frame is a frame that displays a text content.  I personally feel that a non-flow and a flow text frame should be the same; the only difference being that a "non-flow" frame doesn't have a connection for it's overflow text to flow into.  However, because text is still being figured out, I'll talk about a "non-flow" frame in this task description. 
     10 
     11As mentioned above, the difference between a non-flow frame and a flow frame is how the overflow text is handled.  Effective this is a user interface issue; When the user creates a "non-flow" frame they are telling Sophie that they don't want the frame to flow its text into a another frame (be it on the same page or a different page)  This could end up being just a default setting for the frame. 
     12 
     13A text frame in either case has a frame style.   This style is likely going to be defined by properties defined in: 
     14 
     15 * [wiki:FRAME_INSETS_R0] 
     16 * [wiki:FRAME_MARGINS_R0] 
     17 * [wiki:RAME_PADDING_R0] 
     18 * [wiki:FRAME_BORDERS_R0] 
     19 
     20The text rendering needs to honor these properties.  In theory, the frame content size won't even know these properties exist and will just render inside the rectangle it is told to render inside, but I can't find where else this is defined, so I am writing about it here. 
     21 
     22The frame should have an option in the Frame Options HUD to use scrollbars.  This option should be off by default.  The scrolls bars would only show if the text would not fit inside of the content area of the frame, in which case the text would be re-flowed due to the narrower width of the new content area. 
     23 
     24If the scrollbar option is off, the overflow text is simply not rendered.  A user can click in the field and use any of the four arrow keys to scroll through the text, but there is no visual feedback as to how much, if at all the text is scrolled. 
     25 
    1026 
    1127== Task requirements == 
    12 ^(List the necessary requirements that the task must fulfill.)^ 
     28 
     29 * Render text inside of a frame 
     30 * Add a scrollbar option to the text frame HUD 
     31 * Support scrolling with the arrow keys as well 
     32 * Honor the frame style properties 
    1333 
    1434== Task result == 
    15 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 
     35 
     36The result of this task is code. 
    1637 
    1738== Implementation idea == 
    18 ^(Provide some rough implementation idea(s).)^ 
     39 
     40 * Consider designing this with flow text in mind 
     41 * When the user clicks in the field, maybe the field can hilite to let them know they have changed focus 
     42 * Talk with milo about who is doing text pagination and rendering, because that same engine should be used to render the text in this frame 
     43 * Make sure the general frame system is giving you enough information to render your content so that you don't have to figure it out yourself, because images and movies will need to follow the same rules 
    1944 
    2045== Related == 
    21 ^(Add links to related tasks that could be useful or helpful.)^ 
     46 
     47 * [wiki:FRAME_INSETS_R0] 
     48 * [wiki:FRAME_MARGINS_R0] 
     49 * [wiki:RAME_PADDING_R0] 
     50 * [wiki:FRAME_BORDERS_R0] 
    2251 
    2352== How to demo == 
    24 ^(Provide instructions for demonstration of the task.)^ 
     53 
     54Show the text frame with text that fits within the frame, with too much text to fit inside the frame, scrolling with and without scrollbars.  Show how the frame properties render around the text frame, such as borders and shadows. 
    2555 
    2656= Design =