You are not logged in.
I use oneye 0.8.0 (1.10.0.1). How can I make a window widget always on top of other windows on eyeos?
Offline
When creating the window, set "noZindex" to true and afterwards you need to set the style.zindex value to something wuite high using JavaScript. Something like the following:
global $myPid;
$myWindow = new Window(array(
'test' => 'myApp_myWindow',
'noZindex' => true
));
$myWindow->show();
eyex('rawjs', array('js' => 'xZIndex("' . $myPid . '_' . $myWindow->name . '", 999999);'));
EDITED: Fixed.
Best regards,
Lars Knickrehm
The oneye project.
Offline
Thanks for the response. However, the below code help me to keep the window always in background I also tried the negative value (-999999), but it didn't help. Do you think I am doing somwthing wrong?
function theapp_run($params=null) {
$myWindow = new Window(array(
'name'=>'wnd1',
'title'=>'theapp',
'father'=>'eyeApps',
'style' =>TITLE+LISTED+CLOSE+MIN,
'width'=>800,
'height'=>455,
'cent'=>1,
'savePosition'=>1,
'noZindex' => true
));
$myWindow->show();
eyex('runjs', array('js' => 'xZindex("' . $myPid . '_' . $myWindow->name . '",999999);'));
$homepage = '[url]https://www.domain.com/[/url]';
$myFrame = new Iframe(array(
'name'=>'##H3OTITLE#',
'father'=>'wnd1_Content',
'x'=>10,
'y'=>1,
'height'=>$myWindow->height-40,
'width'=>$myWindow->width-20,
'url'=>$homepage
));
$myFrame->show();
}
Offline
I'm sorry, it's not "xZindex", but "xZIndex" and please, don't forget to initialize the global var $myPid!
function theapp_run($params = null) {
global $myPid;
$myWindow = new Window(array(
'name'=>'wnd1',
'title'=>'theapp',
'father'=>'eyeApps',
'style' =>TITLE+LISTED+CLOSE+MIN,
'width'=>800,
'height'=>455,
'cent'=>1,
'savePosition'=>1,
'noZindex' => true
));
$myWindow->show();
eyex('rawjs', array('js' => 'xZIndex("' . $myPid . '_' . $myWindow->name . '", 999999);'));
$homepage = '[url]https://www.domain.com/[/url]';
$myFrame = new Iframe(array(
'name'=>'##H3OTITLE#',
'father'=>'wnd1_Content',
'x'=>10,
'y'=>1,
'height'=>$myWindow->height-40,
'width'=>$myWindow->width-20,
'url'=>$homepage
));
$myFrame->show();
}
Best regards,
Lars Knickrehm
The oneye project.
Offline