Results 1 to 6 of 6

Thread: Three ClanGUI window questions

  1. #1

    Default Three ClanGUI window questions

    Is there a way to create a window without minimize, maximize, and close buttons?

    Is there a way to disable (grey out) or relocate the minimize, maximize, and close buttons?

    Is there a way to create a modal dialog/window?

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    I guess that you are using the system GUI window manager

    When you contruct the root window, the constructor can take GUITopLevelDescription as a parameter. This is a typedef to DisplayWindowDescription ( http://clanlib.org/documentation/3.0...scription.html )

    I don't know about model/dialog windows in clanGUI ... it might be possible, but since i've not encoutered it, it's unlikely.

  3. #3

    Default

    I am using GUITexture. I tried using GUITopLevelDescription, but "show_minimize()" and "show_maximize()" don't seem to affect the window. Perhaps GUITexture has different functionality from GUISystem.

    As far as the modal dialog, ClanLib does have a, "message_box" component. I'll give that a try.

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    GUI System Window Manager : Draws directly onto the window when a component requires redrawing. This is event driven. It responds to the operating system "paint" messages. Only clanGUI controls this window.
    GUI Texture Window Manager : Draws the GUI onto a texture. The texture is only written to when a component changes. The texture is then drawn onto the window (either manually or automatically)
    GUI Direct Window Manager: Draws the GUI directly to a window. This entire GUI is drawn on every paint call (even if the component does not change)

    So with the Texture Window Manager, use DisplayWindowDescription when creating the DisplayWindow (as a parameter), before GUIWindowManagerTexture is constructed

    (As far as I know, I don't use clanGUI)

  5. #5

    Default

    I think that we might be thinking about different things, perhaps I did a poor job of communicating it before.

    I want to create windows within my main application window. (I'm not concerned with the functionality of the main window itself) I am curious if ClanLib supports minimize/maximize functionality on windows inside of the main window, and if I can enable/disable the minimize, maximize, and close icons of those windows.

    If not, for my purposes, I will probably have to create a frame element with pushbuttons for min/max/close and handle that functionality myself.

  6. #6
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Ah sorry.

    No clanGUI currently does not support that.

    If you WANT minimise/maximise, you would have to copy the clanGUI's clan::Window code, and create your own component containing the minimise/maximise functionality.

    If you don't want minimise/maximise/close, there are various options:
    1) Change the clan::Window CSS, removing the close button
    2) Copy the clan::Window code, removing the close button code
    3) Don't use clan::Window, if the window is not draggable, instead use clan::GUIComponent
    4) Don't use clan::Window, if the window is draggable without a caption bar, use clan::DragBox

Similar Threads

  1. Help me with ClanGUI
    By Kubik in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-02-2012, 07:58 PM
  2. ClanGUI - DirectRender (I don't get it)
    By Tuisto in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-31-2011, 12:44 PM
  3. How to : Delete/Close a Window and Center a Window ?
    By Fr3DBr in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-24-2009, 02:55 AM
  4. About ClanGUI
    By IanBorn in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 06-15-2009, 05:15 PM
  5. New theme in ClanGUI
    By sphair in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-21-2009, 08:12 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •