BPak Active Member Licensed User Longtime User Dec 18, 2013 #1 I have been Making a program with a sizeable main window with several other Utility windows which are not resizable. It all works fine on Windows. But on the Mac the main window works exactly as in Windows but the Utility window is wrong size. I have tried several different ways of locking controls to windows but still it just comes out wrong. Can anyone suggest a fix for this problem? I have the code and the Mac Image of the program attached. Attachments MyHouse.zip 2.4 KB · Views: 309 MyHouse.png 38 KB · Views: 306
I have been Making a program with a sizeable main window with several other Utility windows which are not resizable. It all works fine on Windows. But on the Mac the main window works exactly as in Windows but the Utility window is wrong size. I have tried several different ways of locking controls to windows but still it just comes out wrong. Can anyone suggest a fix for this problem? I have the code and the Mac Image of the program attached.
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2013 #2 What is the output of Log(100dip)? Upvote 0
BPak Active Member Licensed User Longtime User Dec 18, 2013 #3 On the Mac it is 75. ItemEd.Text = 100dip returned 75. I found another way that works ok. B4X: frm.Initialize("frm", -1, -1) Upvote 0
On the Mac it is 75. ItemEd.Text = 100dip returned 75. I found another way that works ok. B4X: frm.Initialize("frm", -1, -1)
Erel B4X founder Staff member Licensed User Longtime User Dec 19, 2013 #4 Does it look properly if you remove the 'dip' unit? Upvote 0
BPak Active Member Licensed User Longtime User Dec 19, 2013 #5 Yes it does look correct. B4X: frm.Initialize("frm", 550, 360) Attachments MyHouse.png 63.8 KB · Views: 308 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2013 #6 It seems like a bug in 'dip' implementation on Mac. Upvote 0