of course they will be added to the next IrrExtensions release, but as far as there are only a few additions I post it here now...
in "include\IGUIEditBox.h" add to the public part:
Code: Select all
//! Sets the position of the cursor.
//! \param pos New cursor position.
virtual void setCursorPos(int pos)=0;
//! Returns the curent position of the cursor.
virtual int getCursorPos()=0;Code: Select all
virtual void setCursorPos(int pos);
virtual int getCursorPos();and finaly in "CGUIEditBox.cpp" add:
Code: Select all
void CGUIEditBox::setCursorPos(int pos){
CursorPos = pos;
if(CursorPos < 0) CursorPos = 0;
if((u32)CursorPos > Text.size()) CursorPos = Text.size();
BlinkStartTime = os::Timer::getTime();
}
int CGUIEditBox::getCursorPos(){
return CursorPos;
}