steve3d Posted November 17, 2011 Posted November 17, 2011 I'm trying to create a fullscreen ime in unigine, it makes unigine to draw the candidate/composition window. as I requested before, frustum has added getScreenPosition for Widget class, but this function/algorithm is not always correct, in most simple cases they are correct: correct position, of course, I modified WidgetEditText and WidgetEditLine to expose the cursor's pixel position in widget, this case the composition window and candidate window are correctly positioned In this case, I just want to set the object's name to Chinese, then you see the ime windows are positioned at wrong position. so using this algorithm is not always correct.
frustum Posted November 17, 2011 Posted November 17, 2011 I was made a mistake with getScreenPosition() functions. They should look like: int Widget::getScreenPositionX() const { return gui->getMouseX() - mouse_x; } int Widget::getScreenPositionY() const { return gui->getMouseY() - mouse_y; }
Recommended Posts