Dyalog / ewc-client

Other
1 stars 4 forks source link

Incorrect Defaults for Form and Edit #201

Open mkromberg opened 3 months ago

mkromberg commented 3 months ago

When creating a form with two edit fields, many defaults are incorrect. Run Demo_Issue201, which sends the following WC messages:

41:31.097 T: #5: {"WC":{"ID":"F1","Properties":{"Caption":"Test Defaults","Coord":"Pixel","Posn":[0,0],"Type":"Form"}}} 41:31.130 T: #5: {"WC":{"ID":"F1.E1","Properties":{"Type":"Edit"}}} 41:31.144 T: #5: {"WC":{"ID":"F1.E2","Properties":{"Type":"Edit"}}}

The resulting output is:

image

If you run the same test under Win32, the result is:

image

The default size for any object is half the height and width of the container (for a form, the desktop). In other words, the edit fields E1 and E2 should have the same size and position.

Also note that no form caption is displayed.

mkromberg commented 3 months ago

Also, if you now enter some text into the top field, a Change message is sent, even though no Change event was specified:

{"Event":{"EventName":"Change","ID":"F1.E1","Info":"one"}}