0 registered members (),
744
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: LBGUI - RELEASE
[Re: Lukas]
#381344
08/26/11 18:45
08/26/11 18:45
|
Joined: Sep 2003
Posts: 303 Germany
Clemens
Senior Member
|
Senior Member
Joined: Sep 2003
Posts: 303
Germany
|
Sounds great! You've got post
Last edited by Clemens; 08/26/11 18:46.
|
|
|
Re: LBGUI - RELEASE
[Re: Lukas]
#392962
01/29/12 22:54
01/29/12 22:54
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
User
|
User
Joined: Oct 2008
Posts: 513
|
I am having a little problem with an option from the manuall: I have a working gui with this, and movable windows, but you can lose them if dragged outside the engine window. The GUI itself also has flags, which are stored in the global long LBG_flags. The following flags are available: LBGUI_RUNNING - The GUI is running (it has been opened). LBGUI_DISABLED - Disables the whole GUI. LBGUI_PROTECTMOUSE - If the mouse is outside the engine window, the GUI considers the mouse as at the border of the window. This prevents windows to be moved outside the window, where they would be lost. LBGUI_STOPACTION - Stops an action that is normally executed after certain events. This flag is enabled by LBG_stop_action.
I am not sure how to do this, I tried setting the flag several ways but couldn't get it to work:
LBGUI_PROTECTMOUSE=1;
set(LBG_flags,LBGUI_PROTECTMOUSE);
Any advice would be great to set this flag. P.S: How is that multiline textbox update going? Is it still being worked on?
Last edited by Carlos3DGS; 01/30/12 02:19.
|
|
|
Re: LBGUI - RELEASE
[Re: Espér]
#393001
01/30/12 13:28
01/30/12 13:28
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
User
|
User
Joined: Oct 2008
Posts: 513
|
I finally got it to work like this:
LBG_flags |= LBGUI_PROTECTMOUSE;
Could someone explain to me why that line works and this one dosn't?:
set(LBG_flags,LBGUI_PROTECTMOUSE);
I think I am not getting something about how LBGUI_PROTECTMOUSE and set() works.
|
|
|
Re: LBGUI - RELEASE
[Re: Carlos3DGS]
#393003
01/30/12 13:36
01/30/12 13:36
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You second code snippet is a macro, so that your code gets replaced to:
LBG_flags->flags |= (LBGUI_PROTECTMOUSE);
which is of course rubbish. Only use the "set" macro for entities.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|