wonder Expert Licensed User Longtime User Sep 6, 2015 #1 Erel, Would it be possible to have B4J recognizing the code in the given example? B4X: dim PosX = 34%x as double dim PosY = 50%y as double I'm trying to port some B4A stuff and I was wondering if you could have 34%x in B4J to be the equivalent of (34 / 100) * MainForm.Width? Is it possible for you to implement this?
Erel, Would it be possible to have B4J recognizing the code in the given example? B4X: dim PosX = 34%x as double dim PosY = 50%y as double I'm trying to port some B4A stuff and I was wondering if you could have 34%x in B4J to be the equivalent of (34 / 100) * MainForm.Width? Is it possible for you to implement this?
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #2 %x and %y don't really fit in B4J code. They are supported in the designer script. In B4A there is always a single, non-resizable visible activity. In B4J there could be many forms at the same time. So %100x can mean many different values. Upvote 0
%x and %y don't really fit in B4J code. They are supported in the designer script. In B4A there is always a single, non-resizable visible activity. In B4J there could be many forms at the same time. So %100x can mean many different values.
wonder Expert Licensed User Longtime User Sep 6, 2015 #3 Even so, if I want it for personal use only, could I include such functions myself, maybe through a lib? Upvote 0
Even so, if I want it for personal use only, could I include such functions myself, maybe through a lib?
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #4 wonder said: Even so, if I want it for personal use only, could I include such functions myself, maybe through a lib? Click to expand... No. It it not possible to add it with with an external library. Upvote 0
wonder said: Even so, if I want it for personal use only, could I include such functions myself, maybe through a lib? Click to expand... No. It it not possible to add it with with an external library.