Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: Code: Gui module or include file

  1. #21
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Gui module or include file

    Hi Mike,

    this looks very nice, thanks for your work.
    Worked very well for me!

    Few thoughts:
    - it seems the corrdinate system for GUI is sticked to lower-left corner. You can pass parameters to TBGL_RenderMatrix2D to make it the same as in Windows - 0,0 in top-left corner.

    - maybe it would be nice to have "Align" for whole dialog, so with changing resolution the dialog would be still present in bottom right corner, just smaller of course ( is this understandable ? ). Like anchor.


    Petr


    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #22

    Re: Code: Gui module or include file

    No Petr, the defination of the gui elements are top, left, width, height. So for creating a gui it uses a "normal" corrdinate system with 0,0 at teh top-left corner. I just transfer this inside the code. but of couse, there are many roads to rome. thnaks for your hint.

  3. #23

    Re: Code: Gui module or include file

    Plus, this is far form being finished. I just wanted to show you how it is basically working.

  4. #24

    Re: Code: Gui module or include file

    Quote Originally Posted by Psch

    - maybe it would be nice to have "Align" for whole dialog, so with changing resolution the dialog would be still present in bottom right corner, just smaller of course ( is this understandable ? ). Like anchor.
    I envision the following. You can create the gui, and of course it needs to be saved, using XML for it. It stores also on which resolution this gui was saved. When you load the gui, it will automatically rearange/resize(optional) all the gui elements.

  5. #25
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Gui module or include file

    Yes,

    I just did not wanted to have fixed resolution game.

    So the idea was - to have dialogs designed via fixed dimension way ( like in Windows in common, you change resolution and everything gets smaller ), but when I need main menu to be centered, I want it to be centered at any resolution.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  6. #26

    Re: Code: Gui module or include file

    Yes, that is the design goal. Dimension independant.

  7. #27

    Re: Code: Gui module or include file

    If you want to try my gui version, please go here and download the temporary thinCore.dll, which includes new commands for memory allocation.

    http://community.thinbasic.com/index...15262#msg15262

  8. #28
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Code: Gui module or include file

    thanks Mike

    I like it, seems very complicated.

    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  9. #29

    Re: Code: Gui module or include file

    Quote Originally Posted by Abraxas
    thanks Mike

    I like it, seems very complicated.

    You mean the two user commands it has so far or the whole gui coding?

  10. #30
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Code: Gui module or include file

    Sorry, i will now give you a proper answer.

    I Like the look and easy of creating the windows and buttons/frames on it, I ment the routines to build it take a bit of reading to understand. The more I look at it the easier it seems though.

    Is there anyway Petr could build that into TBGL or is that overkill and not worth it?

    to sum up very nice
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Code: Web Hiscore module or include file
    By Michael Hartlef in forum Code
    Replies: 9
    Last Post: 10-10-2008, 23:06

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •