On 29/06/2013 at 08:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R14
Platform:
Language(s) : C++ ;
---------
I am a completely beginner regarding dialogs.
As usual I have studied the SDK, the forums, and various (albeit very few) tutorials on the Internet. And as usual, I spend MANY hours carrying out tasks I had expected were almost self-explanatory. It takes time, because writing for C4D is everything except straight forward. And it seems I have to live with it.
I want to make a modal dialog, which opens when the user clicks a button in my tag user interface.
I looked at one dialog, a ListView Dialog, but it failed in the LoadDialogResource function. Then I found this: http://www.andrewnoske.com/wiki/index.php?title=Cinema_4D\_-\_C%2B%2B_plugins#Tutorial_2:\_Simple_Custom_Dialog
which brought me a bit further.
Now I have these (beginner's) questions:
- What is the preferred / correct way to do the CreateLayout(void)?
I tried LoadDialogResource(), but no matter what I did, it always returned false.
So I went for the aforementioned tutorial.
Here I came this far:
Looks OK at first sight, but it is far from that.
2) Nothing works, the controls seem to be painted on the surface, they do not respond at all.
as soon as the windows is resized / repainted, all controls disappear:
What have I done wrong here?
Additional questions:
3) How do I make the dialog modal?
4) How do I remove the minimize and maximize buttons?
Any help is much appreciated!