area size callback
On 09/11/2017 at 06:43, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
I have a GeUserArea in a GeDialog.
Since hte user area is scalable, I need to know its size every time the dialog is resized. So, I listen to BFM_SIZED in dialog's Message(....).
But, the very first call of BFM_SIZED message occurs before dialog's InitValues meaning I get 0 area size.
It this normal ?
On 10/11/2017 at 02:27, xxxxxxxx wrote:
can you please explain, why you need to listen to BFM_SIZED in the dialog? Actually implementing GeUserArea::Sized() should be enough.
On 10/11/2017 at 02:38, xxxxxxxx wrote:
According the original question from op. Sized() also return 0 the first time. But for me is not an issue, it's pretty logical.
Since at the start everything is nothing. And if you care about size that mean you are doing some dynamic thing, so you can check if it's not zero or simply do not care and your algorithm for dynamic things will handle it very easily ! :)