flat assembler
Message board for the users of flat assembler.

Index > Main > The GUI

Author
Thread Post new topic Reply to topic
MartinHschei



Joined: 13 Feb 2008
Posts: 5
Location: Oslo,Norway
MartinHschei 18 Feb 2008, 09:39
How is the gui in MenuetOS made?
Is it done by making a graphic template in Photoshop ,or similar, and then showing them at the right time? This seems not likely. Or?

I understand how it's done when making a Windows program using Visual *something*, but when those libraries aint't available; do you make your own? Can C be used to make a gui without any graphic files?


Anyone know of a good book covering "gui programming"?
Post 18 Feb 2008, 09:39
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20460
Location: In your JS exploiting you and your system
revolution 18 Feb 2008, 09:48
GUI graphics is just drawing lines, curves, text, and bitmaps etc. on the display.

A fancy button is usually a bitmap being copied, a normal button can be just a set of coloured boxes/lines with text drawn on top.
Post 18 Feb 2008, 09:48
View user's profile Send private message Visit poster's website Reply with quote
MartinHschei



Joined: 13 Feb 2008
Posts: 5
Location: Oslo,Norway
MartinHschei 18 Feb 2008, 10:08
So if i learn to make graphics i can basically make any interface i want?

And then i can bind functions the to buttons etc.? On ,for example, mouse clicks or movement. I guess that's kinda complicated?
Post 18 Feb 2008, 10:08
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 794
Location: Adelaide
sinsi 18 Feb 2008, 10:19
MartinHschei wrote:
I guess that's kinda complicated?

Well, the lines, curves, bitmaps etc. are usually the easy part...it's easy to make a pretty dialog box and have no code to actually do something - I mean look at delphi or vb Laughing
Post 18 Feb 2008, 10:19
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4353
Location: Now
edfed 18 Feb 2008, 11:03
buttons are zones.
in these zones, we draw.
and in these zones, we test the cursor and the keyboard.
Post 18 Feb 2008, 11:03
View user's profile Send private message Visit poster's website Reply with quote
MartinHschei



Joined: 13 Feb 2008
Posts: 5
Location: Oslo,Norway
MartinHschei 18 Feb 2008, 11:07
thanks. helpful.
Post 18 Feb 2008, 11:07
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin 18 Feb 2008, 12:52
Quote:
Can C be used to make a gui without any graphic files?


Yes, you can use C.. but you still need asm to set the modes...etc...
and then just use a pointer to the video mem to draw..

TurboC:

Code:
void set_mode( int mode_num )
{

    asm{
            //Do something here
           int 0x10
          {

}
    




you can do a simular function in djgpp also
Post 18 Feb 2008, 12:52
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 19 Feb 2008, 00:02
> Can C be used to make a gui without any graphic files?

YES Shocked Any programming language will do ... as long as it lets you place pixels on the screen ... and set a graph mode if none set by default Idea

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 19 Feb 2008, 00:02
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4353
Location: Now
edfed 19 Feb 2008, 00:12
exact
but here, the problem is to build gui in asm, no?
so, i can help a bit (just a bit cause it's not complete).
it works, and need a patient programmer to obtain results. i'm not patient when coding real programms.
Post 19 Feb 2008, 00:12
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.