Answer the question
In order to leave comments, you need to log in
How is the visualization of the interface of desktop applications?
I don’t understand, programming is writing code, so how is the visual part of applications made? Is it the same as on the web?
Answer the question
In order to leave comments, you need to log in
LEVEL 1. SOFTWARE DRAWING. In an extreme case, the programmer himself draws the controls, as on Canvas. Let's drop it. So, for example, they do in game development when there are few elements, and they must be extremely stylized. But even in this case it is better to make a library of objects.
Direct drawing was also often used in text mode, especially without a mouse, where there were always some nuances that prevented you from making your own library - for example, because it was better to present the program as one large menu, and not as a bunch of small items.
LEVEL 2. OBJECT LIBRARY. Often the OS and/or programming system has its own library of controls. In this case, it turns out something like.
program HomeMadeForm;
uses
Vcl.Forms, Vcl.StdCtrls;
{$R *.res}
var
fm : TForm;
bt : TButton;
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
fm := TForm.Create(nil);
fm.Width := 400;
fm.Height := 200;
fm.Caption := 'Test';
bt := TButton.Create(fm);
bt.Parent := fm;
bt.Caption := 'Go!';
bt.Left := 150;
bt.Top := 80;
fm.ShowModal;
fm.Free;
end.
Roughly speaking, yes, there are even related development environments like Apache Cordova:
Apache Cordova allows programmers to build mobile apps with CSS3, HTML5, and JavaScript, instead of using platform-specific APIs like Android, IOS, or Windows Phone. This is done by converting CSS, HTML, and JavaScript into code that any platform will recognize as a web element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question