Re: Re: Custom shape similar to Resizable - Grid



That require to modify the source code, right? It would be better if I can
write a ".shape" file or python script, etc, as long as I don't have to
touch the source code.


YaoYuan


----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
At 08.05.2013 14:15, YaoYuan wrote:
Hello,

I am new to Dia. I want to define a shape similar to "Resizable - Grid" so
that I can create it with some paramete. Is there a way to do this?

I'm not aware of any object "Resizable - Grid" in standard Dia, but assume
you are refering to the object from the Misc sheet with the type name
"Misc - Grid".
The object behavior is defined with C in the file
https://git.gnome.org/browse/dia/tree/objects/Misc/grid_object.c

There is a mechanism to pass one creation paramter from the sheet to
programmed objects. It is up to the object implementation to interpret
that creation parameter, so the change you intend almost certainly
involves writing some code.

HTH,
          Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert


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