Search

Spring Cleaning

I took this afternoon to do a bit of clean-up on my project. There were a few things that had been bothering me, but I had not taken the time to adjust until now.


The progress I made today on my project was:


ADJUSTING THE FOCUS OF EVERY BUTTON IN MY APPLICATION

  • This adjustment was extremely important if I want to use a hotkey, such as the space bar for the user to select things on the screen. The buttons, if clicked, would automatically stay on Focus, so I had to adjust this. Since you cannot remove the focus from a control, I instead had to redirect the focus. I found it most beneficial to redirect the Focus to a pictureBox because nothing would happen. If I directed it to the text box, it would highlight the text and I did not like that.

ADDING INSTRUCTIONS FOR FIRST TIME USERS

  • I added a button that leads to a new form with instructions for first time users. This is a simple form, but necessary if I anticipate other people using this application.

RESEARCH / ADJUSTMENTS OF DIALOGIC READING

REUSABILITY OF CODE

  • Making my code more reusable is something I really focused on this week. I was having a hard time with the length of the book because I have multiple 2D arrays that are dynamically allocated, and it is difficult to get the length from those. I then created a variable called "pages", and if a book was selected, it had it's own special page number variable, which I then set equal to "pages". This works very well for me instead of hardcoding the number of pages, as now I can have books of varying lengths.



What's Left?

  • As presentation days are getting extremely close, I am very pleased to say that my project appears to be almost presentation-ready. I have an out-standing question regarding how the book should be read, as I am going back and forth between having the user click each word, or having the sentence read back to them. Other than that, I am just going to add a few more books to the story, and continue to use the application to find any ways I can clean it up / make it more efficient.

0 views0 comments