Hi Barry,
Sorry no.
The dividend is derived from the share and is taxed under income as dividends, using dividend rates.
Capital gains is a separeate tax entirely and is payable where the disposal value exceeds the allowable costs.
Both are declared on SA106, where a foreign tax credit can be claimed for any foreign tax payable.
Please see for further guidance.
Self Assessment: Foreign (SA106)
Thank you.