[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How do I make a GUI on Windows. Why most courses only teach

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 59
Thread images: 3

File: smart dog.gif (2MB, 370x319px) Image search: [Google]
smart dog.gif
2MB, 370x319px
How do I make a GUI on Windows.

Why most courses only teach to program console based program when 99% of commercial software is GUI based? Fucking retards.
>>
>>61640606
Depends on the language, but most GUI makers are drag&drops
>>
>>61640606
>windows

That's your first problem. Install gentoo and you will never have problems with guis again
>>
>>61640606
Download Visual Studio.
Mek a project.
Drag'n'drop various controls.
Done.
A child can do that. Programming on the other hand has to be taught.
>>
>>61640606
Just use electron.
It just werks :^)
>>
>>61640711

> electron

bloated shit.
>>
>>61640606
>How do I make a GUI on Windows.

Qt

>Why most courses only teach to program console based program when 99% of commercial software is GUI based? Fucking retards.

Kill yourself noob
>>
>>61640606
nana
>>
>>61640606

lmao @ (you) pajeet
>>
>>61640801
>Qt
Bloat.

Give me something that only takes up 5MBs of RAM in memory.
>>
>>61641466
Nuklear.
>>
>>61641466
it's really not relatively speaking, but ok
have fun with the native win api
>>
Because it's absolutely disgusting shit. You have the following options:
Qt/GTK (shit)
Electron/HTML gui (shit)
curses based gui (shit)
winapi (very shit)
tk (not as shit but dead)
>>
>>61641571
>WINAPI
You mean winforms.
What about Xaml?
>>
>>61640606
Because if you can do shit from a console you can easily do shit with a gui. And then ya have the ability to do both. Like if you can drive a stick shift a car with automatic is easy as hell and then ya can use both.
>>
>>61641643
Stick shoft cars exist in America?
>>
>>61641621
Wasn't winforms deprecated after WPF was introduced?
>>
>>61640606
C# with WPF is by far the best option.
>>
Just download VS community and drag drop some winforms you tard
>>
>>61640606
Windows only:
-C# WPF

Multiplatofrm options:
-Qt
-GTK

they have bindings to wather language you may wish.
>>
>>61641954
>Started working at new firm
>They're six months into project
>They hired some guy fresh out of college to do it
>He made everything in winforms
>Even used some expensive bloat library

Fuck this guy. luckily my contract ends the 20th of august.
>>
>>61641643
This is a hilariously bad analogy.

Taking the same underlying logic from an application and giving it a good, intuitive GUI adds a layer of complexity. Really, it's the other way around.
>>
>>61641643
>Because if you can do shit from a console you can easily do shit with a gui
Except your clients are technologically inept and would piss their pants at the sight of a console.
>>
>>61642169
He meant that if you can program console applications, you can program GUI applications.
>>
>>61641643
>if you can do shit from a console you can easily do shit with a gui
kek'd hard

If you want to make a toy app, sure. If you want to make a complex program with custom controls and shit, not really.
>>
>>61641954
Nope. In fact it's still much better than that XML mess that WPF is.
>>
File: fakeandgay.gif (2MB, 370x319px) Image search: [Google]
fakeandgay.gif
2MB, 370x319px
>>61640606
>>
>>61643458
Welp, into the trash it goes
>>
>>61640606
>Yfw the bridge was added in post to make it appear the dog does something smart but in reality the dog just tilts its head for no reason
>>
>>61640606
because 99% of the time, 99% of the program deals with non-ui-related code
>>
>>61640699
This. I haven't seen a gui in years
>>
>>61641643
Not even close. GUIs are a nightmare for programmers, but a dream for consumers
>>
>>61641466
Win32
>>
>>61643535
the stick hits and casts a shadow on the top of the left railing, it's probably real
though the right was clearly added to make it seem more impressive
>>
>>61640606
Java swing
>>
>>61641999
>>61642015
>WPF
Okay, are there any good books or tutorials to learn WPF?
>>
>>61640699
Arch is great at solving any possible GUI problems as well.
>>
Smart dog invents electromagnetic induction plasmon wave spacetime shifting stick.
Successful field tests are termed "Fake and gay" by disbelieving public.
Jiff at eleven.
>>
inb4 FreePascal/Lazarus
>>
>2001
>writing a calculator program in high school
>it's all text-based
>fuck it, I want to have a point-and-click GUI
>can't figure it out
>ask teaching assistant for help
>he gives me a file he made for one of his projects I can use for ideas
>I end up only figuring out how to make circles and a movable cursor
>still can't figure it out how to make clickable inputs
>end up just keeping my calculator text-based
>make an ASCII intro screen with PC speaker music to make up for it
>teacher says my program is all sizzle and no steak
>still gives me an A in the class

kek, I still have my programs somewhere. Thanks for the nostalgia, OP.
>>
>>61640707
kek, ive been using VS for a long time using unity, i never even imagine it had UI drag and drop stuff built in.
>>
wxwidgets is the only sensible option
>>
If you want to be close to metal you can use the WinApi in C and call the window creation and management functions. Or if you're hardcore you can just create a window and then render your own GUI with the CPU or GPU using opengl/directx/vulcan.
(less shit to port if you want to port).

Or you can just use already made cross platform GUI frameworks like Qt.

Or just be a scrub and do your software in C#/Java that already have fully cross platform pajeet easy editors for GUI's
>>
>>61640606
In highschool they only taught me OOP and visual basic, and only high level programming. Nothing about functions or inputs, recursion or anything like that.
You just collect a skillset, and GUI's made with visual studio are hilariously easy to make.
>>
>>61645662
What's wrong with Free Pascal and Lazarus?
>>
>>61643458
doggo no!!!1
>>
If you're into lisps, racket's gui library makes things pretty easy.
>>
If you want to make GUIs with code, Tcl/Tk is good and actually cross-platform.

>>61645686
Here's a calculator.
set reset 1
set display 0
set previous 0
set operator ""

proc digit n {
global display reset previous
if {$reset} {
set reset 0
set previous $display
set display ""
}
append display $n
}

ttk::entry .display -textvariable display -justify right -state readonly
foreach n {1 2 3 4 5 6 7 8 9 0} {
ttk::button .$n -text $n -command "digit $n"
}
foreach operator {+ - * /} {
ttk::button .$operator -text $operator -command "set operator $operator; set reset 1"
}
ttk::button .c -text c -command {set display 0; set reset 1}
ttk::button .= -text = -command {set display [expr "$display $operator $previous"]}

grid .display -columnspan 4 -sticky we
grid .1 .2 .3 .+
grid .4 .5 .6 .-
grid .7 .8 .9 .*
grid .c .0 .= ./
>>
File: calc.png (2KB, 306x153px) Image search: [Google]
calc.png
2KB, 306x153px
>>61647047
Screenshot.
>>
>>61640711
CPUS: 4
Load Average: 1.35
Running processes: FUCKING ELECTRON
>>
>How do I make a GUI on Windows.
You learn a library that does it for you. If you want to make your own library, the basic primitives for doing this shit are in the Win32 API.

>Why most courses only teach to program console based program when 99% of commercial software is GUI based?
To learn to run, you must first learn to walk. Console programming is simple, and so it makes it easier to learn everything else you need to know.
>>
>>61647162
HTA > Electron
>>
>>61640711
>Let's just put an entire fucking web browser engine inside of every GUI application, no matter how small.
>>
>>61647523
It found be fine if the whole desktop was built from the start to run the browser.
>>
>>61647744
You've exactly described ChromeOS
>>
>>61647805
Is it smooth?
>>
Not OP, but what about GUIs for Java? Most books seem to teach Swing, but JavaFX is available. Is another better GUI available?
>>
>>61648248
is there a visual designer for javafx?
>>
https://winworldpc.com/product/microsoft-visual-bas
https://winworldpc.com/product/delphi/4x
Thread posts: 59
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.