Scale a BITMAPBUTTON to the width of a palette



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

    On 09/11/2012 at 15:40, xxxxxxxx wrote:

    I'm creating my interface with a .res file.
    Is there any way I can make a BITMAPBUTTON scale to the width of the palette?
    If I add the parameter ALIGN_LEFT, it simply flushes left.
    If I add the parameter SCALE_H, it centers.
    If I add the parameter FIT_H, it simply flushes left.

    Rui Batista



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

    On 10/11/2012 at 14:08, xxxxxxxx wrote:

    Trying to layout GeDialog GUI's with the .res file is like asking for a butt kicking.😉
    Sure there's a few tricks you can do with the .res file for GeDialogs. But most things simply don't work like you'd expect them to work.
    The SDK makes it even more confusing because it says it recommends using .res files.
    But IMHO the .res files are only good at handling node based plugins.
    When it comes to GeDialog plugins. Most of the time the .res file method flat out sucks. And has lots of undocumented limitations.

    If you create the groups and gizmos in the .cpp file. You can easily do what you want by using "c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT" in both the group, and the gizmo's flags attributes.

    There might be a way to force a .res file to do it. But I personally make it a rule to avoid using the .res file as much as possible with GeDialog plugins. Unless I'm doing some kind of special trick.
    The hair pulling I have to go through to get them to work just isn't worth the time & effort.

    -ScottA



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

    On 11/11/2012 at 09:15, xxxxxxxx wrote:

    Thank you for the information.
    So, I guess it is about time I start creating my layouts with code, instead of using .res files.
    Will it still be possible to use .str files so that different languages could be displayed?

    Rui Batista


Log in to reply