Hello,
I'm wondering why this argument is missing, any idea?
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
I'm wondering why this argument is missing, any idea?
_Where_ is that argument missing ?
in properties dialog box there are settings we can handle with donecanvasdialog message where arguments can be set in this order:
xUnit yUnit GraphMe xFrom yFrom xTo yTo xSize ySize Xmargin Ymargin
as we see there is one argument missing which is called in the properties dialog 'hide object name and arguments'
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
On Sat, 19 Feb 2011, patko wrote:
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
I'm wondering why this argument is missing, any idea?
_Where_ is that argument missing ?
in properties dialog box there are settings we can handle with donecanvasdialog message where arguments can be set in this order: xUnit yUnit GraphMe xFrom yFrom xTo yTo xSize ySize Xmargin Ymargin as we see there is one argument missing which is called in the properties dialog 'hide object name and arguments'
It's part of GraphMe...
In canvas_setgraph, you can see that graphme is used for storing hidetext :
x->gl_hidetext = !(!(flag&2));
where flag is graphme being passed from canvas_donecanvasdialog.
But I warn you, the #X coords message doesn't even have it in the same format :
(t_float)((x->gl_hidetext)?2.:1.),
from g_readwrite.c.
No idea why such a difference would ever be useful for, but it's there.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
I'm wondering why this argument is missing, any idea?
_Where_ is that argument missing ?
in properties dialog box there are settings we can handle with
donecanvasdialog message where arguments can be set in this order:
xUnit yUnit GraphMe xFrom yFrom xTo yTo xSize ySize Xmargin Ymargin as we see there is one argument missing which is called in the
properties dialog 'hide object name and arguments'
It's part of GraphMe...
In canvas_setgraph, you can see that graphme is used for storing hidetext :
x->gl_hidetext = !(!(flag&2));
where flag is graphme being passed from canvas_donecanvasdialog.
But I warn you, the #X coords message doesn't even have it in the same
format :
(t_float)((x->gl_hidetext)?2.:1.),
from g_readwrite.c.
No idea why such a difference would ever be useful for, but it's there.
Allright I've understood, to make it clear, if graphme = 0 it doesn't graph on parent
if graphme is 1 it graph on parent but display name and arguments, and then,
if graphme is 2 or 3 it does graph on parent and hides name and argument
Thank you!!
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
On Sat, 19 Feb 2011, patko wrote:
Allright I've understood, to make it clear, if graphme = 0 it doesn't graph on parent
if graphme is 1 it graph on parent but display name and arguments, and then,
if graphme is 2 or 3 it does graph on parent and hides name and argument
Yeah, and for reasons beyond us (and probably beyond anyone else), the canvas properties dialogue window sends a 3 in a donecanvasdialog message, whereas the canvas writes a 2 in a #X coords message.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
There is another thing about this feature I'd like to flag, dunno if I have to create a new topic for this....
When the donecanvasdialog message has been sent to my subpatch in runtime, if I close the patch I have a message appearing for saving changes in the patch, like if I used the properties dialog box, that's a bit annoying because the patch isn't supposed to save changes.
I hope I've been clear enough with this problem.
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
Allright I've understood, to make it clear, if graphme = 0 it
doesn't
graph on parent
if graphme is 1 it graph on parent but display name and arguments,
and
then,
if graphme is 2 or 3 it does graph on parent and hides name and
argument
Yeah, and for reasons beyond us (and probably beyond anyone else), the
canvas properties dialogue window sends a 3 in a donecanvasdialog message, whereas the canvas writes a 2 in a #X coords message.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
On Sat, 19 Feb 2011, patko wrote:
When the donecanvasdialog message has been sent to my subpatch in runtime, if I close the patch I have a message appearing for saving changes in the patch, like if I used the properties dialog box, that's a bit annoying because the patch isn't supposed to save changes.
That might have been the reason why I used the "coords" method instead.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
If you send a [dirty 0( message after the [donecanvasdialog( one, you can prevent the save changes dialog from popping up.
.mmb
On Sat, Feb 19, 2011 at 2:23 PM, patko colet.patrice@free.fr wrote:
There is another thing about this feature I'd like to flag, dunno if I have to create a new topic for this....
When the donecanvasdialog message has been sent to my subpatch in runtime, if I close the patch I have a message appearing for saving changes in the patch, like if I used the properties dialog box, that's a bit annoying because the patch isn't supposed to save changes.
I hope I've been clear enough with this problem.
----- "Mathieu Bouchard" matju@artengine.ca a écrit :
On Sat, 19 Feb 2011, patko wrote:
Allright I've understood, to make it clear, if graphme = 0 it
doesn't
graph on parent
if graphme is 1 it graph on parent but display name and arguments,
and
then,
if graphme is 2 or 3 it does graph on parent and hides name and
argument
Yeah, and for reasons beyond us (and probably beyond anyone else), the
canvas properties dialogue window sends a 3 in a donecanvasdialog message, whereas the canvas writes a 2 in a #X coords message.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
-- Patrice Colet
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Sat, 19 Feb 2011, Mike Moser-Booth wrote:
If you send a [dirty 0( message after the [donecanvasdialog( one, you can prevent the save changes dialog from popping up.
You're also preventing it if it were supposed to pop up.
If you want to preserve the dirty-flag in its same state, you need either a way to read the flag, or a way to not modify it.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC