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.

#1 21-Oct-2014 20:20:32

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

example of creating a borderless scol window

where would i find the code for creating a borderless window, like the one that appears on os3d editor startup....I've been searching through the os3deditor .pkg files but haven't found it

thx!
-h

Offline

#2 21-Oct-2014 20:22:51

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

Re: example of creating a borderless scol window

See flags in _CRwindow : WN_NOBORDER
http://www.scolring.org/files/doc_html/_crwindow.html

Offline

#3 21-Oct-2014 20:29:45

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

Re: example of creating a borderless scol window

iri wrote:

See flags in _CRwindow : WN_NOBORDER
http://www.scolring.org/files/doc_html/_crwindow.html

thx, but I've used it and it doesn't appear to work...

//code
  let _CRwindow _channel nil 0 450 800 150 WN_NOBORDER "Loading window" -> log_window in
//code

does the flag fail if the window does not have a parent? It is created before the player mainwindow is created, so I don't know what would be its parent.

Offline

#4 21-Oct-2014 20:33:41

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

Re: example of creating a borderless scol window

You should add other flags, like WN_NORMAL for example

let _CRwindow _channel nil 0 450 800 150 WN_NOBORDER|WN_NORMAL "Loading window" -> log_window in

Without another flag, the window is already borderless

Offline

#5 21-Oct-2014 20:37:50

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

Re: example of creating a borderless scol window

iri wrote:

You should add other flags, like WN_NORMAL for example

let _CRwindow _channel nil 0 450 800 150 WN_NOBORDER|WN_NORMAL "Loading window" -> log_window in

Without another flag, the window is already borderless


I just tried this, still not working....respond at your leisure.


-h

Offline

#6 21-Oct-2014 21:20:29

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

Re: example of creating a borderless scol window

ooops ! sorry.

If no parent, you can not set WN_NOBORDER, it is no effect.
You must set a parent.

Offline

#7 21-Oct-2014 21:33:41

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

Re: example of creating a borderless scol window

I will try creating a hidden parent window and see if that works

Last edited by hebdemnobad (21-Oct-2014 21:34:26)

Offline

#8 21-Oct-2014 21:48:45

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

Re: example of creating a borderless scol window

yes you can create a windows without borders even if there is no parent (a hidden parent won't work, this will hide the child windows too)

let _CRwindow _channel nil 0 450 800 150 WN_NOBORDER|WN_NOCAPTION "Loading window" -> log_window in

but you will loose all other windows buttons and title

Offline

#9 21-Oct-2014 22:16:54

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

Re: example of creating a borderless scol window

arkeon wrote:

yes you can create a windows without borders even if there is no parent (a hidden parent won't work, this will hide the child windows too)

let _CRwindow _channel nil 0 450 800 150 WN_NOBORDER|WN_NOCAPTION "Loading window" -> log_window in

but you will loose all other windows buttons and title


Thx I'll try that

Offline

#10 21-Oct-2014 22:49:39

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

Re: example of creating a borderless scol window

I think i had not understand the question ! I'll go to sleep.

Offline

#11 21-Oct-2014 23:39:15

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

Re: example of creating a borderless scol window

thx arkeon that works. for when i forget, "how to make a borderless window"

Offline

Board footer

Powered by FluxBB