Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#26 10-Oct-2014 15:59:14

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

arkeon wrote:

hehe you're welcome smile
I could just add the 3D buffer parent window in a global variable for editor, but you should restore the initial setup on plugIT stop.

in the deleteObj function?

Offline

#27 10-Oct-2014 16:17:42

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

hebdemnobad wrote:
/*
-----------------------------------------------------------------------------
This source file is part of OpenSpace3D
For the latest info, see http://www.openspace3d.com

Copyright (c) 2012 I-maginer

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt

-----------------------------------------------------------------------------
*/

You are not I-maginer ! You don't work to i-maginer.
Apply from the start your own copyright : your name and your mail. You are the author !

The mail allows any user/developer to contact you, for any reasons, about your work. Otherwise, give at least a link to this forum.
For example :

/*
-----------------------------------------------------------------------------
This source file is part of the plugIt < Name of this plugIt > for OpensSpace3D

For the latest info, see http://www.openspace3d.com (and to your url, if any !)

Copyright (c) 2014 Your Name < yourmail@domain.tld >

Your license, can be the same than os3d if you want

It's also important.

Offline

#28 10-Oct-2014 16:28:04

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

iri wrote:
hebdemnobad wrote:
/*
-----------------------------------------------------------------------------
This source file is part of OpenSpace3D
For the latest info, see http://www.openspace3d.com

Copyright (c) 2012 I-maginer

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt

-----------------------------------------------------------------------------
*/

You are not I-maginer ! You don't work to i-maginer.
Apply from the start your own copyright : your name and your mail. You are the author !

The mail allows any user/developer to contact you, for any reasons, about your work. Otherwise, give at least a link to this forum.
For example :

/*
-----------------------------------------------------------------------------
This source file is part of the plugIt < Name of this plugIt > for OpensSpace3D

For the latest info, see http://www.openspace3d.com (and to your url, if any !)

Copyright (c) 2014 Your Name < yourmail@domain.tld >

Your license, can be the same than os3d if you want

It's also important.

I will make corrections as instructed.

Offline

#29 12-Oct-2014 13:47:05

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

arkeon I made a destroy function to restore the size of the 3d buffer to the full width and size of DMSwin and to destroy the container:

declaration of destroy callback:

setPluginInstanceCbDel inst mkfun2 @deleteOb twodguicontainer;

destroy function:

fun deleteOb(inst, guicontainer)=
//get size of main window so we can resize 3d buffer
let _GETwindowPositionSize DMSwin -> [dmsx dmsy dmsw dmsh] in
  (
	 let V3DgetSessionView c3dXsession -> viewstr in
  			//restore v3dview to full width ane height
  			(
  				V3DresizeView viewstr 0 0 dmsw dmsh;
  			);
  	);
_DScontainer guicontainer; 
  0;;

I think I will make a new plugit since I've commented out most of the mainwindow code.

Last edited by hebdemnobad (12-Oct-2014 13:48:03)

Offline

#30 12-Oct-2014 14:25:55

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

One remark : if you are some 2d resources which no longer used, you should also destroy them (after _DScontainer guicontainer;).

Offline

#31 12-Oct-2014 17:20:46

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: not able to access parent window of 3d buffer for hybrid os3d/scol app

Yes it should be ok this way.

Offline

Board footer

Powered by FluxBB