Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread Mathieu Bouchard

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
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread patko
 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 ma...@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


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread Mathieu Bouchard

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
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread patko

- Mathieu Bouchard ma...@artengine.ca a écrit :

 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.
 


where this method is documented?
  
 ___
 | 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


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread Mathieu Bouchard

On Sat, 19 Feb 2011, patko wrote:

- Mathieu Bouchard ma...@artengine.ca a écrit :

That might have been the reason why I used the coords method
instead.


where this method is documented?


In the source code.

 ___
| Mathieu Bouchard  tél: +1.514.383.3801  Villeray, Montréal, QC
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread patko
Allright I've got it from canvas_coords() in g_canvas.c and arguments are 
appearing in this order:

[coords xFrom yFrom xTo yTo xWidth yHeigth GraphMe Xmargin Ymargin(
|
[s mysubpatch]

It's far better than  donecanvasdialog method !


- Mathieu Bouchard ma...@artengine.ca a écrit :

 On Sat, 19 Feb 2011, patko wrote:
  - Mathieu Bouchard ma...@artengine.ca a écrit :
  That might have been the reason why I used the coords method
  instead.
 
  where this method is documented?
 
 In the source code.
 
  
 ___
 | 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


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread Mike Moser-Booth
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.patr...@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 ma...@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




-- 
Mike Moser-Booth
mmoserbo...@gmail.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-19 Thread Mathieu Bouchard

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
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-18 Thread Mathieu Bouchard

On Sat, 19 Feb 2011, patko wrote:


I'm wondering why this argument is missing, any idea?


_Where_ is that argument missing ?

 ___
| Mathieu Bouchard  tél: +1.514.383.3801  Villeray, Montréal, QC
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-18 Thread patko

- Mathieu Bouchard ma...@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

-- 
Patrice Colet 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-18 Thread Mathieu Bouchard

On Sat, 19 Feb 2011, patko wrote:

- Mathieu Bouchard ma...@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 = !(!(flag2));

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
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-18 Thread Jonathan Wilkes
It has been assimilated into GraphMe.  Possible values are:

0 - no gop
1 - gop
2 - gop + hide object name and args

-Jonathan


  ___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] donecanvasdialog missing argument (hidetext)

2011-02-18 Thread patko

- Mathieu Bouchard ma...@artengine.ca a écrit :

 On Sat, 19 Feb 2011, patko wrote:
  - Mathieu Bouchard ma...@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 = !(!(flag2));
 
 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

-- 
Patrice Colet 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list