News for hackers. Stuff that matters.
Re:Web Browser Engineering by msie on Tuesday October 15, 2024 @02:42PM (#41851738)
Pixel positioning is so nice! I remember how easy it was to layout UIs with VB.
Re:Web Browser Engineering by echoangle on Wednesday October 16, 2024 @07:17AM (#41857799)
How does that work when someone resizes a window? I'm genuinely asking because pixel positioning to me sounds like hardcoding positions. Do you have to manually code the reflow when the window becomes narrow for example?
Re:Web Browser Engineering by vbezhenar on Wednesday October 16, 2024 @08:51AM (#41858493)
Pixel positioning usually anchors to a specific side. Like you can anchor label to the right side and it'll move as expected. And you also need to specify minimum width/height to keep thing sane.

Although it works poorly with translations, so it's probably not the best approach, but certainly one of the simplest. If you don't need translations, it works surprisingly well. Basically all Delphi applications used it and there were used a lot in private companies.