I have just purchased a Whistler WS 1040 Digital Scanner, also purchased 4 NiMH high cap batteries for it, can I charge those in the unit and for how long do they need to charge, how long do they usually last off charger as well?
You would be much better off charging batteries in a good battery charger. Charging batteries in the radio is about the worst possible way to charge batteries and a risk of damage to radio. Basically it is just a slow death to the batteries when they are charged in the radio.
It's not a good idea to charge your batteries in your scanner. There are many threads here of folks that have done so and the batteries overheated and damaged their radios. Get multiple sets of batteries and rotate them in your scanner while doing all charging using external chargers, designed for the batteries you use! The scanner you save may be your own!
Don't believe me? Read this thread (especially post #18 that has pictures) --> http://forums.radioreference.com/radio-shack-scanners/199255-pro-106-batteries-charger.html <-- Please note that those pictures show the black battery holder that isn't supposed to allow the batteries to be charged. Problem is, it isn't all that hard to bend the charging pin over so the batteries will try to charge (or more specifically overcharge) even using the black battery holder.