ZAP -- change page margins


Subject: ZAP -- change page margins
From: Bruce Pearson (BruceP@wn.com.au)
Date: Wed Mar 01 2000 - 18:00:03 CST


I'll give this a go.

Bruce.

> -----Original Message-----
> From: owner-abiword-dev@abisource.com
> [mailto:owner-abiword-dev@abisource.com]On Behalf Of Paul Rohr
> Sent: Thursday, 02 March, 2000 06:31
> To: abiword-dev@abisource.com
> Subject: POW -- change page margins
>
>
> It's time for another Project of the Week (POW)!
>
> If you're interested in using XP (cross-platform) code to do some
> snazzy GUI
> work, this week's project is for you.
>
> background
> ----------
> Currently, our rulers allow users to interactively adjust the following
> properties:
>
> paragraph -- margin-left, left-indent, margin-right, tabstops
> section -- column-gap
>
> In each case, the way this works is we hit-test mouse clicks and drags to
> see if they're "over" a ruler control. If so, we redraw the ruler on-the
> fly to reflect the updated position of that control, giving immediate
> feedback to the user. While dragging, we also draw an XOR guideline over
> the document, which helps line things up. Then, when the mouse
> is released,
> we check to see if the control moved from its original spot. If so, we
> change the appropriate properties for the current selection.
>
> Better yet, all of this logic happens in XP code, which means
> that once it's
> coded and tested on one platform, it Just Works on all the
> others. Pretty
> cool, huh? :-)
>
> scope
> -----
> Your mission, should you choose to accept it, is to do the same thing for
> page margins. They're currently already drawn properly on the
> rulers (that
> light gray stripe between the white body of the ruler and the dark gray
> margins).
> .........................................



This archive was generated by hypermail 2b25 : Wed Mar 01 2000 - 18:03:38 CST