Re: PROP_STD_TEXT_ALIGNMENT



On Thu, 17 Apr 2003, Cyrille Chepelov wrote:
Le Thu, Apr 17, 2003, Ã 02:25:57PM -0400, ashalper cox net a Ãcrit:
I have some text in an object that I would always like to be ALIGN_LEFT.
I don't want the text alignment to be configurable in the object's
property dialog, but I do want the other text properties such as
PROP_STD_TEXT_FONT, PROP_STD_TEXT_HEIGHT, and PROP_STD_TEXT_COLOUR to be
configurable in the object's property dialog.  How would I do that?

you would define a property just like PROP_STD_ALIGN, except that you'd
flag it as non-visible (see the definition of PROP_STD_ALIGN).

You'll have to rename the property if you don't want people to circumvent
the invisibility of the property through grouping, though.

Or you could define the individual parts of the text:

static PropOffset textobj_offsets[] = {
  OBJECT_COMMON_PROPERTIES_OFFSETS,
  PROP_STD_TEXT,
  PROP_STD_TEXT_FONT,
  PROP_STD_TEXT_HEIGHT,
  PROP_STD_TEXT_COLOUR,
  NULL
};

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]