Project

General

Profile

WSpinBox showing incorrect tooltip.

Added by Sanders Yeh over 7 years ago

Hi

I'm creating a spinbox as follow:

@

Wt::WSpinBox* x_spinbox = new Wt::WSpinBox();

temp->bindWidget("x_spinbox", x_spinbox);

x_spinbox->setTextSize(4);

x_spinbox->setInputMask("0009");

x_spinbox->setRange(0, 480);

@

However, when type in an number over range, the tooltip will show "undefined".

Please refer to https://goo.gl/JqcRQR.

The spinbox tooltip from gallery will show "The number must be in the range XXX to XXX".

Is there any way to correct the tooltip or just hide it?

Thanks,

Sanders


Replies (3)

RE: WSpinBox showing incorrect tooltip. - Added by Lewis Lan almost 7 years ago

Could anyone have any ideas about this issue?

RE: WSpinBox showing incorrect tooltip. - Added by Lewis Lan almost 7 years ago

Lewis Lan wrote:

Could anyone have any idea about this issue?

RE: WSpinBox showing incorrect tooltip. - Added by Roel Standaert almost 7 years ago

I don't know what's going wrong in your case, because the code you provided works.

Are you using the latest version of Wt?

Something else in your code may be breaking it. Wt uses the builtin variable Wt.WIntValidator.BadRange for that. How are you configuring localized strings and such?

Regards,

Roel

    (1-3/3)