Page 1 of 1

[Solved]RenderQueue problem

Posted: Wed Jul 28, 2010 10:00
by kili
Hi,

I want to create a permanent on top window(AlwaysOnTop is not what i need),
and this is the getRenderingContext_impl code:

Code: Select all

Window* sheet = System::getSingleton().getGUISheet();

      ctx.surface = sheet ? &sheet->getTargetRenderingSurface() :
         &System::getSingleton().getRenderer()->getDefaultRenderingRoot();
      ctx.owner = 0;
      ctx.offset = Vector2(0, 0);
      ctx.queue = RQ_USER_5;


Scheme:

Code: Select all

<FalagardMapping WindowType="MIP/TopWindow" TargetType="TopWindow" Renderer="Falagard/Default" LookNFeel="MIP/TopWindow" />


but when i click other window, they still move to front.
please correct me if I'm wrong, thx.

=========================================

Log:

+-+-+-+
06/05/2010 15:22:23 (Std) + Crazy Eddie's GUI System - Event log +
06/05/2010 15:22:23 (Std) + (http://www.cegui.org.uk/) +
06/05/2010 15:22:23 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

06/05/2010 15:22:23 (Std) CEGUI::Logger singleton created. (00BA7AC0)
06/05/2010 15:22:23 (Std)
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) * Important: *
06/05/2010 15:22:23 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
06/05/2010 15:22:23 (Std) * of this log file indicated below. Failure to do this will result in no *
06/05/2010 15:22:23 (Std) * support being given; please do not waste our time. *
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) ---- Version 0.7.9999 (Build: May 5 2010 Microsoft Windows MSVC++ 8.0 32 bit) ----
06/05/2010 15:22:23 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
06/05/2010 15:22:23 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
06/05/2010 15:22:23 (Std) ---- Image Codec module is: FreeImageCodec - FreeImage based image codec ----
06/05/2010 15:22:23 (Std) ---- Scripting module is: None ----

Re: RenderQueue problem

Posted: Wed Jul 28, 2010 19:55
by Jamarr
I want to create a permanent on top window(AlwaysOnTop is not what i need)

You need to elaborate on "permanent on top window". This is a very vague description, and you should not assume we are all mind readers. If "AlwaysOnTop" is not what you are looking for, are you wanting to give a single window exclusive rights to the input; eg only allowing the user to interact with a single window? or is it something else?

Re: RenderQueue problem

Posted: Thu Jul 29, 2010 02:00
by kili
umm, this is my requirement:

I have 2 windows belongs to different parents(A.B):
A/A1
B/B1

A1 and B1 would overlay each other, but I hope A1 always on top when
I click B1(B1's RiseOnClick attribute is True because it could be in front
of other window exclude A1).
I've tried all Window attribute related this but no use.

thx for reply.

//--------------------
I've solved this for the TargetType should be TopWindow. :hammer: