Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Origin point in a guiwindowctrl (https://forums.graalonline.com/forums/showthread.php?t=82940)

DustyPorViva 11-29-2008 04:34 AM

Origin point in a guiwindowctrl
 
I think the origin point(0,0) in a guiwindowctrl should be the position the background starts drawing, not the position of the window itself. There really is no reason the contents of a window should be drawn outside the background and it only adds complications when you're trying to construct a GUI. You have to make sure the content is added below the top of the window and to the side of border, then you have to adjust the width to fit the size of minus the borders on the opposite sides... If you have custom GUI's for the windows that change dynamically, you will never be able to appropriately adjust the content for the graphics of the window.

Also, your scrollbar shouldn't stop scrolling just because your mouse tends to leave 20 or so pixels away from the bar. That's really annoying.

Crow 11-29-2008 11:38 AM

If you set
PHP Code:

clientrelative true

in the GuiWindowCtrl, the origin starts at the background of the window.

Edit: Wiki info:
PHP Code:

clientrelative boolean by default false; if enabled then sub-controls are positioned automatically to not overlap the header or the borders; use clientwidth and clientheight to get the available space for sub-controls 


DustyPorViva 11-29-2008 06:10 PM

Wow, I've never seen that, thanks!

Scrollbars still pretty important, though.

cbk1994 12-01-2008 03:53 AM

I agree with you, Dusty, but it would break a lot of current scripts.

DustyPorViva 12-01-2008 05:14 AM

Quote:

Originally Posted by cbk1994 (Post 1445858)
I agree with you, Dusty, but it would break a lot of current scripts.

The scrollbar thing, how?

cbk1994 12-01-2008 05:23 AM

Quote:

Originally Posted by DustyPorViva (Post 1445875)
The scrollbar thing, how?

Not so much the scroll bar, more the window.

DustyPorViva 12-01-2008 05:39 AM

Quote:

Originally Posted by cbk1994 (Post 1445878)
Not so much the scroll bar, more the window.

Oh, well that's resolved with Crow's post. I'm not concerned with that anymore.


All times are GMT +2. The time now is 05:59 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.