Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Nymphodora, AndrewAMD, TipmyPip, Quad, Imhotep), 847 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 9 of 17 1 2 7 8 9 10 11 16 17
Re: LBGUI - RELEASE [Re: Carlos3DGS] #393260
02/01/12 18:58
02/01/12 18:58
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
An Abitur is the final exams of the "Gymnasium", the highest branch of the three-branch school system in Germany.
http://en.wikipedia.org/wiki/Abitur


I'm pretty sure LBG_mouse_over_object works for all LBGUI objects, not just windows, because internal LBGUI functions also use that function for the same purpose.

But to make sure the mouse is really over that object and no other window is covering it, you should do it like this:


Code:
if(LBG_mouse_over_object(obj) && (obj->parent == LBG_mouse_window()) && LBG_window_mouse_over_content (obj->parent))
{...}



If it's a button with a Condition function, you should also include this: LBG_button_condition(but,but->Condition)

Re: LBGUI - RELEASE [Re: Lukas] #393277
02/01/12 20:36
02/01/12 20:36
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I'm not sure if I am not understanding you correclty or mabe I explained myself wrong before.

Let's say I have a lot of UI components (created with LBGUI) on the screen. And I also have a separate function that creates an entity in the 3d view when I left click.
What I want is for the entity not to be created when the click is on any of all the LBGUI objects. So if I am clicking on interface elements the 3d objects are not created, but if I click on the view (where there is no GUI element) then the object is created as it normally would.

What I'm looking for is some global variable that I can check if the mouse has a an LBGUI element under it or not.
something like the 3DGS mouse_panel, to do something like this:

Code:
if((mouse_left)&&(!mouse_panel))
{
   //create entity in 3d view
}



I have tried to search for a similar global variable in your manual for LBGUI but I can't seem to find an equivalent to mouse_panel.

In your previous example something did draw my attention:
"LBG_window_mouse_over_content"
But I searched for it in the manual and couln't find it, so I'm not quite sure how it works or what it does exactly. It might do what I am trying to achieve?

P.S: If I understood you correctly an Abitur would be something like "Selectividad" here. The last and toughest exam (series of exams) before entering university, that conditions what careers you can study and what universities you can go to? I wish you the best of luck on your Abitur!


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: LBGUI - RELEASE [Re: Carlos3DGS] #393280
02/01/12 20:55
02/01/12 20:55
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
Hmm, the only thing that comes close to such a global variable is LBG_mouse_window() which returns the window the mouse is currently over. If the mouse is over no window, it returns 0. Of course, this will only be helpful if the view you are talking about is not on a view.

If your view is on a window, I guess the solution would be going through all LBGUI objects using their linked lists, as described on the intro page of the LBGUI manual. Or, if most of your LBGUI objects are on windows you could cover those with LBG_mouse_window() and the rest manually.


Quote:
P.S: If I understood you correctly an Abitur would be something like "Selectividad" here. The last and toughest exam (series of exams) before entering university, that conditions what careers you can study and what universities you can go to?

I never heard of the Selectivdad, but what you description of it almost fits the Abitur, too. But if you pass the Abitur you can chose to study anything you like (if the university takes you), unless it's a "Fachabitur" which is more specialized.

Quote:
I wish you the best of luck on your Abitur!
Thanks! laugh

Re: LBGUI - RELEASE [Re: Lukas] #393281
02/01/12 21:27
02/01/12 21:27
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Thankyou very much, that looks exactly like what I needed!
And it's in the manual too, but when I first saw that function I discarded it because I thought it wouldn't work if it was over a button or some other elemnent of a window.

But I just did a test and it works perfectly no matter what element of the windows it is over. here is an example for anyone else that might run into this problem in the future:
Code:
if((mouse_left)&&(LBG_mouse_window()==0))
{
   //shoot,create,select,etc... whatever you want
}




"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: LBGUI - RELEASE [Re: Carlos3DGS] #393298
02/01/12 23:32
02/01/12 23:32
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sorry if anyone already asked this, is there anyway to change edit box size?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LBGUI - RELEASE [Re: 3run] #393307
02/02/12 01:27
02/02/12 01:27
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
editbox_pointer.size_x=number1;
editbox_pointer.size_y=number2;


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: LBGUI - RELEASE [Re: Carlos3DGS] #393319
02/02/12 09:04
02/02/12 09:04
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
couldn't get visual part to work properly, it still as it was before but text position is changed.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LBGUI - RELEASE [Re: 3run] #393333
02/02/12 14:07
02/02/12 14:07
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
after changing the size_x and size_y try running this:
LBG_update_editbox(editbox_pointer);


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: LBGUI - RELEASE [Re: Carlos3DGS] #393403
02/02/12 23:21
02/02/12 23:21
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Ok, that what i forgot about, but still i can't change it's height, but can change it's width properly now.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LBGUI - RELEASE [Re: 3run] #393418
02/03/12 05:19
02/03/12 05:19
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
the height changes by itself when you scale up the bitmaps for the editbox (don't forget to change font size).

Last edited by Espér; 02/03/12 05:20.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Page 9 of 17 1 2 7 8 9 10 11 16 17

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1