Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

area size callback

  Topic Search Topic Search
peterakos View Drop Down

Joined: 2015 Jul 13
Online Status: Offline
Posts: 349
Direct Link To This Post Topic: area size callback
    Posted: 2017 Nov 09 at 6:43am

User Information:

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 ?
Thank you.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2017 Nov 10 at 2:27am

can you please explain, why you need to listen to BFM_SIZED in the dialog? Actually implementing GeUserArea::Sized() should be enough.
SDK Support Engineer
Back to Top
gr4ph0s View Drop Down

Joined: 2015 Jul 07
Location: France
Online Status: Offline
Posts: 437
Direct Link To This Post Posted: 2017 Nov 10 at 2:38am
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 ! :)
Technical lover.
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.