Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Recreating Search Dialog Layout

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 235 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/01/2009 at 02:37, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hello,

      I am trying to recreate the Layout of the Search Dialog (Command Manager ID 1011177) for a custom Search GeDialog.

      I am able to put the EditText into the MenuLine with
      > GroupBeginInMenuLine()
      but half the space is occupied by a non existing menu.

      How is it possible to expand the EditText to the whole line or at least prevent the Cinema from drawing the grey empty Menu bar?

      Best
      Macm

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 04/02/2009 at 05:02, xxxxxxxx wrote:

        There are two things needed to achieve this specific layout. Fist to hide the menu you have to put this into your dialog's constructor:

        > \> C4DOS.Cd->AddGadget(Get(),DIALOG_NOMENUBAR,0,NULL,0,0,0,0,NULL,NULL); \>

        Second you add a window pin element (to dock/undock dialogs) with WINDOWPIN in your dialog resource file. Here is a complete dialog resource example:

        c4d_symbols.h

        > \> ... \> // Dialog definitions of IDD_SEARCH_DIALOG start here \> MY_DIALOG, \> IDC_MY_DIALOG_EDIT, \> // Dialog definitions of IDD_SEARCH_DIALOG end here \> ... \>

        my_dialog.res

        > \> DIALOG MY_DIALOG \> { \> NAME T1; FIT_V; SCALE_V; FIT_H; SCALE_H; \> \> GROUP IDC_STATIC \> { \>     NAME IDS_STATIC; ALIGN_TOP; FIT_H; SCALE_H; \>     BORDERSIZE 0, 0, 0, 0; \>     ROWS 1; \>     SPACE 2, 4; \> \>      WINDOWPIN { ALIGN_LEFT; CENTER_V; }; \>     EDITTEXT IDC_MY_DIALOG_EDIT { CENTER_V; FIT_H; SCALE_H; SIZE 70, 0; } \> } \> } \>

        my_dialog.str

        > \> DIALOGSTRINGS MY_DIALOG \> { \> IDS_STATIC       "Group"; \> T1               "My Dialog"; \> } \>

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 11/02/2009 at 09:57, xxxxxxxx wrote:

          Thanks a lot.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post