Search found 4 matches

by tirbison
Thu Sep 16, 2010 07:33
Forum: Official Announcements, Works in Progress, and Future Directions
Topic: CEGUI 0.7.2 is Released!
Replies: 12
Views: 13769

Re: CEGUI 0.7.2 is Released!

static linking doesn't work properly due to missing library: winmm.lib (timegettime function)
simply add winmm.lib to ceguibase project.
by tirbison
Fri Sep 03, 2010 14:07
Forum: Help
Topic: Problem getting a window's screen(absolute) position
Replies: 3
Views: 769

Re: Problem getting a window's screen(absolute) position

ok I managed to get a windows screen position, here is the code float get_screen_x_of_window(Window* p_wnd) { float screen_x =0; while (p_wnd->getParent()) { float parent_w = p_wnd->getParentPixelWidth(); const UDim& posX = p_wnd->getXPosition(); screen_x += parent_w * posX.d_scale + posX.d_offs...
by tirbison
Fri Sep 03, 2010 11:31
Forum: Help
Topic: Problem getting a window's screen(absolute) position
Replies: 3
Views: 769

Problem getting a window's screen(absolute) position

Hi I am trying to create my own slider class which contains cegui::slider as a class member. when the user clicks on the slider, I want the slider thumbnail to be set to the clicked point. To do that I need the absolute X position of the slider window and the absolute mouse click position. here is t...

Go to advanced search