Computer Science Canada GUI implementation |
Author: | Geminias [ Fri Jan 06, 2006 4:02 am ] | ||
Post subject: | GUI implementation | ||
need some help from you turing experts. its not really as much as it seems and its well organized take a look:
|
Author: | Geminias [ Fri Jan 06, 2006 4:07 am ] |
Post subject: | |
now the questions: first of all that won't compile unless you fix the type casting i did in the searchProc. I need to know the turing sytnax for type casting. i used "(string) some_integer" which is the c++ syntax. Now the big question: Does anyone know an easy way to get the canvas to attach itself to the scroll bar? I intend to do it the hard way if not. I'm going to tell the scroll bar to redraw the widget along with all the lines. (hence the global array that i just put in there) it will store all the lines, then i'll have the widget redraw itself with all the lines based on the position of the scroll bar. That is a lot of retarded work but... its the only possible way i know of so pipe up if you know an easier way. |
Author: | Cervantes [ Fri Jan 06, 2006 8:43 am ] | ||
Post subject: | |||
Turing Walkthrough -> String Manipulation tutorial Also, having variables 'y' and 'Y' is generally a bad idea. Variable names should be descriptive, and not so similar to other variable names. |
Author: | Geminias [ Fri Jan 06, 2006 10:50 pm ] |
Post subject: | |
lol, thanks Cervantes. Quote: Variable names should be descriptive, and not so similar to other variable names. I think I know that. The Y is symbolic to me and is not going to be included in the final source. It was for debugging purposes only, so that i could see the y value. Quote: Now the big question: Does anyone know an easy way to get the canvas to attach itself to the scroll bar? this is the real reason I posted. The type casting was just a thing i figured I'd add in. |