Changes

Jump to: navigation, search

Project R0.1 20131- OOP344

302 bytes added, 03:38, 3 February 2013
Help
! Question!! Comments
|-
|If IsTextEditor is true and the value of<u> *strOffset is changed at any time,</u> then terminate the edit function immediately and return 0; CAN SOMEONE explain what it means.. please : (||here is "if IsTextEditor is true, test if *strOffset is changed, then teminate the program;" <br/> At frist, you need store the original value of *strOffset, then everytime you press key, test if *strOffset is different from the original value, if it is then exit function and return 0;--hqiao3<br/>
|-
|Can someone help me uderstand these two underlined requirements. Thanks a lot for your help!! -Chun <br/> Your function does not allow the cursor to move before the start of the field or past the end of the field. <u>If the field ends at the right edge of the screen, your function does not allow the cursor to the right of that edge</u>. || I think this means that: if the last position of the field is at getCols(), you cannot allow the cursor position to go beyond that. Remember xMOVER? how it console.alarm()'s when you try to go past getCols()? Its basically saying that, the cursor MUST stay within the field. -fjzhou
<hr />
Thanks for the input. Turns out my problem had nothing to do with this. it was due to: '''delete [] variable''' being in the wrong place
 
<hr/>
I saw your code, I think there might be not correct in line 9. 'maxStrLength' is not Length of *Str (len of '"abc\0' " is 4, but the size of str may be 10. when display the *str, the cursor will stay on the worny position. --hqiao3
|}
1
edit

Navigation menu