View Issue Details

IDProjectCategoryView StatusLast Update
00019403D-Coat v4.5Scriptingpublic2015-07-04 16:49
Reporterajz3dAssigned ToAndrew 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindows 7OS Version(64 Bit)
Product Version4.5.03 
Target VersionFixed in Version 
Summary0001940: Several issues with UI functions.
DescriptionAddCheckBox - displays only several first characters of the checkbox name. Try using AddTranslate and input a longer string to see how most of it is then chopped off.

AddIntSlider displays value as it was a float (decimal padding of three). Slider works okay, but it's confusing to see float formatting on an integer slider.

AddTranslation for AddFloatInput doesn't work.

AddTranslation for AddIntInput doesn't work.

Steps To Reproduce// Please run this script to see the errors I described.
void main(){
  bool bval1 = true;
  bool bval2 = false;
  
  float fval1 = 2.5;
  float fval2 = 3.5;
  
  int ival1 = 1;
  int ival2 = 10;
  
  string sval1 = "string1";
  string sval2 = "string2";
  
  AddCheckBox("bval1");
  AddTranslation("bval1","I'm checkbox numer 1"); // Only a few first characters are visible
  AddCheckBox("bval2");
  AddTranslation("bval2","I'm checkbox number 2"); // Only a few first characters are visible
  AddFloatSlider('fval1',0.,5.);
  AddTranslation('fval1',"I'm a float slider!");
  AddIntSlider('ival1',0,5); // Has decimal padding of three, like a float. It's confusing.
  AddTranslation('ival1',"I'm an integer slider!");
  AddFloatInput("fval2",false);
  AddTranslation("fval2","I'm a float input box"); // Doesn't work!
  AddIntInput("ival2",false);
  AddTranslation("ival2","I'm an integer input box"); // Doesn't work!
  AddStringInput("sval1", false);
  AddTranslation("sval1","I'm a string input box");
  AddTextField("sval2",0);
  AddTranslation("sval2","I'm a text field");
  AddDelimiter();
  AddButton("foo");
  AddTranslation("foo","FOO!");
  AddDroplist("I'm a droplist!","Case1,Case2,Case3");
  
  ModalDialogOkCancel("Test","Caption");
}

void foo(){}
TagsNo tags attached.

Activities

ajz3d

2015-07-03 16:20

reporter  

Andrew

2015-07-04 16:49

administrator   ~0004647

fixed in 4.5.05

Issue History

Date Modified Username Field Change
2015-07-03 16:20 ajz3d New Issue
2015-07-03 16:20 ajz3d File Added: scripts_ui_addtranslation_problems.png
2015-07-03 16:21 ajz3d Steps to Reproduce Updated View Revisions
2015-07-04 16:49 Andrew Note Added: 0004647
2015-07-04 16:49 Andrew Status new => resolved
2015-07-04 16:49 Andrew Resolution open => fixed
2015-07-04 16:49 Andrew Assigned To => Andrew