View Single Post
Old Jul 7th, 2006, 4:16 PM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
And what do you define as "straight windows programming"?? Boa Constructor, which I used, is an IDE. You won't be able to use it to modify the widgets/window of my code, because I hand edited the controls class.

@ Andro: I should have used more time for the text boxes, modularized and regularized their use and interaction with the sliders, but I didn't. I pick up on the event for each change and enforce limits on the fly, instead of throwing out the last character and just boomping at the user. My initial thought was to allow more granularity through the boxes than one gets from the slider. I just didn't take time to really follow through. I don't even bother to keep the cursor in a reasonable place. I also didn't take time to allow for a greater number of samples per revolution. Larger patterns will approach a sparseness that results in a very dim output.

Incidentally, the gear and marker size numbers represent a percentage of the track gear radius. The zoom percentage relates the track gear radius to the panel width and is applied to all components simultaneously, upon adjustment and prior to the spin.

The other dirty thing is the blocking nature of the plot. I should have used a timer and messages. Oh well. No guarantees, it might smoke your system. Although there isn't an antifreeze variable, if your dog eats it, he may die.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers

Last edited by DaWei; Jul 7th, 2006 at 4:27 PM.
DaWei is offline   Reply With Quote