Timer with 'DLG_TYPE_MODAL'

On 24/05/2015 at 01:27, xxxxxxxx wrote:

I need to open a dialog with 'DLG_TYPE_MODAL' to prevent the user from making changes while it is open.
However, it seems many things don't work with this type: pop-up tooltips, button hover-color changes, and timers are a few.

Is there some way to make a timer work with a 'DLG_TYPE_MODAL' ?

Also, there doesn't seem to be an option with 'DLG_TYPE_ASYNC' to make it not sizable.
Is that correct?

Thanks,

Chris

On 25/05/2015 at 03:50, xxxxxxxx wrote:

Hi Chris,

Originally posted by xxxxxxxx

I need to open a dialog with 'DLG_TYPE_MODAL' to prevent the user from making changes while it is open.
However, it seems many things don't work with this type: pop-up tooltips, button hover-color changes, and timers are a few.

Is there some way to make a timer work with a 'DLG_TYPE_MODAL' ?

In which context are you? A script or a plugin?

Originally posted by xxxxxxxx

Also, there doesn't seem to be an option with 'DLG_TYPE_ASYNC' to make it not sizable.
Is that correct?

Yes there's no way to make an asynchronous dialog not sizable.

On 29/05/2015 at 08:57, xxxxxxxx wrote:

Yannick,
It is a Python plugin, and the timer doesn't work with modal.

On 01/06/2015 at 08:09, xxxxxxxx wrote:

Hi Chris,

Could you post some code? I can't reproduce this behavior.

On 15/12/2016 at 08:02, xxxxxxxx wrote:

I am having some issues getting tooltips to work with modal dialogs as well.

The code for the bitmap button:

bc = c4d.BaseContainer()
    helpText = "<b>BOLD HEADER</b>\nInfo text here."
    bc.SetString(c4d.BITMAPBUTTON_TOOLTIP, helpText)
    dir, file = os.path.split(__file__) ## GET THE PLUGIN DIRECTORY
    h = os.path.join(dir, "res/icons", "ButtonImage.png") ## GET THE IMAGE LOCATION
    bc.SetBool(c4d.BITMAPBUTTON_BUTTON, True)
    bc.SetFilename(BUTTON, h)
    self.myButton = self.AddCustomGui(BUTTON, c4d.CUSTOMGUI_BITMAPBUTTON, "Bitmap Button", c4d.BFH_CENTER | c4d.BFV_CENTER, 10, 1, bc)
    self.myButton.SetImage(h)

On 16/12/2016 at 10:15, xxxxxxxx wrote:

Hi Marc,

I confirm tooltips doesn't work inside modal dialogs. I'll check if this is a limitation or a bug.

On 16/12/2016 at 10:17, xxxxxxxx wrote:

Thanks! Would be great if there was a fix or work around :)