![]() |
How does GroupBeginInMenuLine() work? |
Post Reply
|
| Author | |
mnu
Member
Joined: 2002 Nov 11 Location: Germany Online Status: Offline Posts: 41 |
Post Options
Quote Reply
Topic: How does GroupBeginInMenuLine() work?Posted: 2010 Feb 13 at 10:37am |
|
User Information: Cinema 4D Version: 11.530Platform: Windows ; Language(s): C++ ; --------- Hi,can somebody tell me how to use "GroupBeginInMenuLine()" correctly? I try to recreate the default "Coordinate Manager" layout. This has three descriptive text elements in its menu line. Here's the "Coordinate Manager" dialog:
And here's my dialog:
This is the code to generate the menu line entries:
How can I orient them left and spread them out to match the coloumns of the editfields? Thanx alot in advane, best manuel |
|
![]() |
|
Matthias Bober
Forum Moderator
Joined: 2006 Oct 16 Location: Germany Online Status: Offline Posts: 1644 |
Post Options
Quote Reply
Posted: 2010 Feb 15 at 12:31am |
|
The menu of the coordinate manager is actually no menu but just a normal dialog group. What makes it appear as menu is the WINDOWPIN dialog element.
This is the resource code of this line:
cheers, Matthias |
|
|
MAXON
developer support |
|
![]() |
|
mnu
Member
Joined: 2002 Nov 11 Location: Germany Online Status: Offline Posts: 41 |
Post Options
Quote Reply
Posted: 2010 Feb 15 at 3:24am |
|
Thanx Matthias, I'll try this.
Is there a possibility to make this work if the dialog is hard coded as in my case or do I have to use descriptions? I know, using external resources is best practise, but for prototyping in house tools doing it by code is often faster. Best Manuel |
|
![]() |
|
Matthias Bober
Forum Moderator
Joined: 2006 Oct 16 Location: Germany Online Status: Offline Posts: 1644 |
Post Options
Quote Reply
Posted: 2010 Feb 15 at 5:58am |
|
It is possible to hard code it. Have a look at the code below. Make sure to remove the menu bar in the dialog's constructor.
cheers, Matthias |
|
|
MAXON
developer support |
|
![]() |
|
mnu
Member
Joined: 2002 Nov 11 Location: Germany Online Status: Offline Posts: 41 |
Post Options
Quote Reply
Posted: 2010 Feb 15 at 6:04am |
|
That's very helpful. Thank you very much for your fast answer.
Best Manuel |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |