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

area size callback

 Post Reply Post Reply
Author
Message
peterakos View Drop Down
Member
Member


Joined: 2015 Jul 13
Online Status: Offline
Posts: 304
Post Options Post Options   Quote peterakos Quote  Post ReplyReply 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++  ;   

---------

Hello.
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
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1540
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Nov 10 at 2:27am
Hi,

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


Joined: 2015 Jul 07
Location: France
Online Status: Offline
Posts: 391
Post Options Post Options   Quote gr4ph0s Quote  Post ReplyReply 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
 Post Reply Post Reply

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.109 seconds.