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.
colleagues:
this may be a limitation of the vm as it exists at this point, or I could find a better way of doing this.
I want to create the player mainwindow as hidden, and become visible when os3d is fully initialized
this code manages to hide the window, while the user sees a screen that says "starting up 3d engine", however, when the window is created, it is visible to the user for a fraction of a second, enough to see the mainwindow flash before it's hidden
this is the code I have written so far, as you can see, I'm trying everything to hide the window before os3d is initialized:
set mainWindow = setEdWindowIcon (crEdMainWindow _channel nil ((sw / 2) - (iWinW / 2)) ((sh / 2) - (iWinH / 2)) iWinW iWinH nil strcatn "MediaOctopus3d Player : "::projname::nil) sWinPlayerMainIcon;
_SHOWwindow mainWindow.EDW_win WINDOW_HIDDEN;
_SETwindowStyle mainWindow.EDW_win WN_TOPMOST;
setEdWindowVisible mainWindow 0;
I tried calling the DMSwin variable to hide that before the code above
_SHOWwindow DMSwin WINDOW_HIDDEN;
set mainWindow = setEdWindowIcon (crEdMainWindow _channel nil ((sw / 2) - (iWinW / 2)) ((sh / 2) - (iWinH / 2)) iWinW iWinH nil strcatn "MediaOctopus3d Player : "::projname::nil) sWinPlayerMainIcon;
_SHOWwindow mainWindow.EDW_win WINDOW_HIDDEN;
_SETwindowStyle mainWindow.EDW_win WN_TOPMOST;
setEdWindowVisible mainWindow 0;
it doesn't make a difference.
this may be a vm limitation at the moment, or perhaps there is another way I could handle things?
thx for your input.
Offline
When you create the window, add it the WN_HIDDEN flag
http://www.scolring.org/files/doc_html/_crwindow.html
In using WINDOW_HIDDEN in _SHOWwindow the window has been already created. Without hidden flag, it is shown and the _SHOWwindow function is called after.
Offline
When you create the window, add it the WN_HIDDEN flag
http://www.scolring.org/files/doc_html/_crwindow.html
In using WINDOW_HIDDEN in _SHOWwindow the window has been already created. Without hidden flag, it is shown and the _SHOWwindow function is called after.
YES! That does it! Thx! Here is the code:
set mainWindow = setEdWindowIcon (crEdMainWindow _channel nil ((sw / 2) - (iWinW / 2)) ((sh / 2) - (iWinH / 2)) iWinW iWinH WINDOW_HIDDEN strcatn "MediaOctopus3d Player : "::projname::nil) sWinPlayerMainIcon;
Offline
unfortunately the behavior appears on my win 8.1 tablet....so it must be the tablets gpu, although i welcome any suggestions to work around the flashing window problem.
Offline
Strange this is the same windows it should not be different.
Alas, I can live with it.
Offline
thx, I'll try that
Offline