Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / FREE Windows GUI DLL for DarkBASIC Pro

Author
Message
Grandma
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location: Norway, Guiding the New World Order
Posted: 26th Jan 2007 10:58 Edited at: 26th Jan 2007 15:28
Have you fixed the bug with the "Make Dinner(Type, quantity, degrees)" command?

My dinner's cold, even though i entered "30" as degrees.


Edit : Ok, it works now, "degrees" should be entered in farhenheit. I didn't think about that.





Seriously, keep up the good work.

Comp : 1024mb Ram, 3.0ghz, GeforceFX 5800, 1,1TB storage
MExe
17
Years of Service
User Offline
Joined: 11th Jan 2007
Location:
Posted: 26th Jan 2007 16:29
Is there any update for this DLL?

What is the latest download link?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Jan 2007 01:46 Edited at: 27th Jan 2007 09:36
heh, heh. ty Grandma.

@MExe
You can have a beta version if you like. I've been working on several commands.

You can download it [href=www.freewebs.com/tree3d/WinGUI_beta0.rar]here[/href].

Some new commands include:


And modified commands include:


Because of the complicated nature of the new commands, an example is included.

In order to use the parameter commands (Commands with a "ws_") together, you have to do "ws_command or ws_command2 or ws_command3" etc.

Any more examples? Or questions? Just ask

Cheers,

-db

[EDIT]
I am adding several commands to the next version as well...

gui_maximizeWindow window

gui_minimizeWindow window

gui_closeWindow window * Same as gui_destroyWindow, except, uses differant procedure for the window

gui_setActiveWindow window

integer=gui_getActiveWindow()

gui_setParent window,parentWindow

integer=gui_getParent(window)

gui_setForegroundWindow window

Cheers,

-db

[/EDIT]


Blobby 101
17
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 28th Jan 2007 11:49
what exactly is a ini file and what's it used for?


Projects: jungle extreme 10%
mental snowboarding 3%
Grandma
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location: Norway, Guiding the New World Order
Posted: 28th Jan 2007 12:01 Edited at: 28th Jan 2007 12:03
Ini files are usually used to store settings and whatnot, in this case it's used to store the list of commands in WinGUI and is used by DBP to highlight them so you know you've written it correctly.

If your interested in knowing more then a quick search on wikipedia yielded this result : http://en.wikipedia.org/wiki/INI_file

Comp : 1024mb Ram, 3.0ghz, GeforceFX 5800, 1,1TB storage
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 28th Jan 2007 21:31
*Ahem* I believe it was Grandma (The above posted user) who has written a majority of the documentation for WinGUI, and I am just doing the "Make-Up" work.. In other words, a documentation is going to be here, under a weeks time, perhaps even today, for the WinGUI. It should help answer all your questions about INI files, setting up WinGUI, and all the commands.

Cheers,

-db


Blobby 101
17
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 1st Feb 2007 17:14
@grandma, thanks that was helpful


Projects: jungle extreme 10%
mental snowboarding 3%
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Feb 2007 04:23
Hello all.

This project isnt dead, btw, I've just been very slow on updating it, with GameDeveloper and all. I will be working on it very soon, because it will be a part of Firefly BASIC, and because this is incomplete, and I have been very slow on updating it.

I hope you all can forgive me for my hesitence to update and post about the GUI DLL.


Cheers,

-db


"There's no such thing as a stupid question, just stupid people."
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 16th Feb 2007 03:17
Sorry for 2 posts, kindof in a row, but here you all go..

I have made a support center for the wingui plugin. So, if you need any help, or anything, you can ask there. Plus, your posts will be more organized.

You can view it here.

Cheers,

-db


"There's no such thing as a stupid question, just stupid people."
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 21st Feb 2007 05:16 Edited at: 21st Feb 2007 06:33
FREAKIN' SWEET UPDATE!

This update, is a simple update to the DLL itself. Well, the highlight of this update is that YOU CAN NOW RENDER CONTROLS ON TOP OF THE MAIN DBP WINDOW!


Im pretty happy about this update.

In fact, this is the high point of my day!


Dont forget to check out http://www.tree3d.co.nr.



Cheers,

-db


Enter my forums here.
Kieran
17
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 21st Feb 2007 06:30 Edited at: 21st Feb 2007 06:35
yay awesome keep it up db love seeing awesome stuff like this

Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 23rd Feb 2007 00:23
Why does the beta example seem to exit randomly after about a minute or two of being open?

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 23rd Feb 2007 01:18
Im not sure.

Can you please give your system specs, and darkbasic professional version.

All I need from your system specs is your exact OS (Ex, Windows Vista Ultimate Edition, Windows XP Professional Media Center Edition, etc.).


btw, I use (Not sure which, but one of the 2) either version 6.2, or 6.3 of DarkBASIC Professional for testing.

Cheers,

-db

PS: I can send a compiled executable to see if that helps any.


Enter my forums here.
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 23rd Feb 2007 02:42 Edited at: 23rd Feb 2007 02:43
I'm running windows xp pro on a pentium 4 2.66ghz machine. My darkbasic version doesn't matter, because this happens with your already compiled exe! The whole application just closes silently after about 75 seconds of being open, and this happens every time. It's almost like it's on a timer.

Anyways, if I do get this working, any chance of support for progress bars? That would be excellent.

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 23rd Feb 2007 03:03
Yes, progress bars are planned.

In fact, they are being worked on now. *Not at this second, but I have an organiser type thing for what to work on next*

Currently, I got window coloring to work, however, do not feel it is necessary to re-upload the entire dll.

I will resend a differant EXE. *Attatched* The EXE I am sending works fine for me.

Also, I am running Windows XP Professional, Media Center Edition, on an AMD Athlon 64 processor. About 2.34 GHz.

If the problem still consists, please give as much information as possible about the application, other applications which may be running, etc.


Cheers,

-db


Enter my forums here.

Attachments

Login to view attachments
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 23rd Feb 2007 04:34
DB: That exe still gives me the same problem.

I have firefox, mirc, a few instances of winrar, dbp (standard ide), and a few instances of notepad all running.

For future knowledge, could you demonstrate the use of the gui_createwindow() command? And also, does it use the CreateWindow user32 function call or CreateWindowEx?

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 23rd Feb 2007 05:28
All windows are created with CreateWindowEx.

And, yes, I can of course demonstrate them.

Here is a code example:


That will create an editbox, with a cool looking frame.

The parameters explained:
handle = gui_createWindow(exStyle, className$, text$, styles, X_Position, Y_Position, Width, Height, ParentHandle, menuHandle)

exStyle = Extra information to this style. Currently, it is best to leave at 0.

className$ = A string to describe a window class, such as "EDIT", etc.

text$ = The title, or default text of the control created.

styles = The main style for the window.

X_Position/Y_Position = The positions of the control.

Width/Height = The size of the control.

parentHandle = The ID of the window which this is being created a child of.

menuHandle = The handle to a menu ID *Not yet implemented*



Cheers,

-db


Enter my forums here.
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 23rd Feb 2007 08:48
Awesome havent check your thread while but now db window rendering yes Oh and can you but so you can put textbox under sprite and you can still write text normally and text comes over sprite ? So you can make your own skinnable textboxes or so.. Ill really need some like this on some projects and BlueGUI cannot do this.


Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 23rd Feb 2007 08:58
Yeah, I can dive into some Windows Skinning programming. I want to make this the best windows GUI plugin around.

In addition, I eventually want to get syntax highlighting editboxes to work. That may take a long time though.

@Rob K
I did not make this to compete with your wonderfull plugin, which I have bought, and enjoy very much.

Cheers,

-db


Enter my forums here.
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 23rd Feb 2007 10:40
Oh thank you DB user 2006+


Agent Dink
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 23rd Feb 2007 17:29
Quote: "@Rob K
I did not make this to compete with your wonderfull plugin, which I have bought, and enjoy very much. "


Yeah, haha, but that's sorta gonna happen if you keep this plugin free Anyhow. I look forward to trying it. I'll download it soon.

I have no signature...
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 00:31
Semi-Update
Progressbars are working fine now. Im not gonna upload the plugin yet though, because not all of the commands in that specific command set are complete. Once they are, i'll upload.


Cheers,

-db


Enter my forums here.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 06:20
UPDATE

Hello all.

I have just added the finishing touches to the progress bars for the Windows GUI DLL.

The new commands are:


Also, the gui_setWindowColor command now works.


Here is the .INI


Attatched is the updated WinGUI.dll


Cheers,

-db


Enter my forums here.

Attachments

Login to view attachments
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 24th Feb 2007 07:03 Edited at: 24th Feb 2007 07:27
Thank you DB! Now I can add a useful gui with progress bars to the OODBP parser.


Edit: What should I pass in for the 'type' parameter in the gui_makeprogressbar function?

Edit: Figured it out

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 07:27
0 makes a "segmented" progress bar.

I havent tested 1, but it should make a smooth progress bar.

Smooth meaning, there's no "line breaks" in the bar.


Cheers,

-db


Enter my forums here.
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 24th Feb 2007 09:58 Edited at: 24th Feb 2007 10:02
I got the progress bars working perfectly, thanks

Is it possible to change the text font of labels? If so, how?

By the way, this is great stuff, I love it, keep up the good work.

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 10:19
Eventually there will be a way to change the text font.

Actually, thats something i've been meaning to do..

I think i'll get started on that.

Also, I think im gonna add 2 commands to set the foreground, and background colors of the progressbar.

Also, I just tested out using the progressbar as a healthbar for an ingame object, and it works out greatly. So, when skinning is available, you can simply use that, and other gadgets as HUD items.

Cheers,

-db

PS: Im glad you got it to work. So, I take it you dont have any more problems with the program?


Enter my forums here.
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 24th Feb 2007 10:26
Yes, it seems that it was just that one specific example that timed out, strange. Anyways, like I said, keep up the good work. I look forward to being able to change text font

Who needs a signature?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 10:44
Ok.

Well, im glad everything works good for you.


btw, Im gonna convert my WinGUI (Some of the functions, specifically the editbox functions) into an actual EXE, and try getting strings. I need to find out the cause, so this should help significantly.


Cheers,

-db


Enter my forums here.
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 24th Feb 2007 11:01
Oh and one more suggestion to skinnable text boxes Can you put so you can disable the menu of it when you press right button.. Cuz these text boxes would be perfect for MapleBasic


El Goorf
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Uni: Manchester, Home: Dunstable
Posted: 24th Feb 2007 11:13 Edited at: 24th Feb 2007 11:14
oh boy robk's gonna be pis... annoyed.

Quote: "Completed, however, not working, or not completed"

buh?

http://notmybase.com/main
All my base are not belong to anyone.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Feb 2007 12:07 Edited at: 25th Feb 2007 04:54
@El Goorf
I really hope he's not.

@The Full Metal Coder Roxas
sure.

@Everyone & Milkman
UPDATE
You can now set a window's font. Remember, however, that the font size you enter should be double what you want... ex, for 12, enter 24.

Anywho, the command added is: gui_setWindowFont

Parameters:
gui_setWindowFont window, size, fontName$, italic, underline, strikeout, bold

window = The handle to the GUI element (window) which is going to have its font set.

size = The size of the font being set. This should be set to double what you want.

fontName$ = The name of the font, as a string, ex: "Courier New", or "Arial", etc.

italic = Is the font italic?

underline = Is the font underlined?

strikeout = Is the font striked out?

bold = Is the font bolded?



The new INI file:



Cheers,

-db

[EDIT]
Semi update!

Menubars will work soon for the WinGUI DLL.

After menu bars, I might implement toolbars, then statusbars.
[/EDIT]


Enter my forums here.

Attachments

Login to view attachments
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Feb 2007 22:22
Ok, the menu bars arent completely well. For some reason, none of the popups under say, File, Edit, View, etc, are popping up.

I will have this problem figured out as soon as posssible.


Cheers,

-db


Enter my forums here.
The admiral
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 27th Feb 2007 01:29
Why cant you package all the files up instead of us having to make an ini file and a dba file each time??

The admiral
The admiral
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 27th Feb 2007 01:41
Oh and can we put our dbpro project into the window?? like we have a guy runing around a maze in 3d can we use your window as the project window??

The admiral
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Feb 2007 01:49
I package the files up on each important release. For example, the next important release comes when menubars are implemented.

As for your second question, please give more information. From what I understand it sounds like 1 of either of these 2 things:

1) You want to make multiple windows with multiple darkbasic professional renderings to them

2) You want to make the darkbasic professional window a child of a normal window, like an MDI interface (Like FPSCs editor).


Cheers,

-db


Enter my forums here.
The admiral
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 27th Feb 2007 04:23
I have a world editor it allows me to move around my world and place objects etc in 3d thing is id like a windows interface to go along with it to make it more proffesional and functional. So I want to render my dbpro project in one of your windows...

The admiral
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Feb 2007 05:04
Ok, I understand now.

Unfortunately, the WinGUI Plugin, nor BlueGUI (To the extent of my knowledge) does not support this.

However, I will try and find a way to add support for this. Thing is, that will also deal with commands on DarkBASIC Professionals part (From my experience with 3D Renderers with Direct3D, and OpenGL, you need viewports, and you want one of these viewports to be rendered into a window.).


If theres anything else I could do for you, then go ahead and ask.

Cheers,

-db


Enter my forums here.
The admiral
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 27th Feb 2007 06:09
Cool it would be good if you could add this functionality.

The admiral
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd Mar 2007 02:02
Hello all.

A very nice day it is today, the WinGUI plugin has been mentioned in the newsletter.

You can view the 50th Newsletter here:
http://www.thegamecreators.com/data/newsletter/newsletter_issue_50.html

Cheers,

-db


Enter my forums here.
Master Xilo
17
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 2nd Mar 2007 03:22
please keep working on this very interesting and useful dll, so we can use it in the db window!!!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd Mar 2007 05:30
It does work in the dbp window, as of (1 week, 2 days?) ago.


Cheers,

-db


Enter my forums here.
dennisb
17
Years of Service
User Offline
Joined: 26th Apr 2006
Location: New York
Posted: 2nd Mar 2007 23:00
This sounds like an interesting project. I am new and learning darkbasic pro. Do I understand how this works correctly? you use the dll to add command functionality to dbp. Then you use the commands it has to create your gui all through coding. If this is the case hwere do I get the list of commands and how to use the dll?

I see blue2 gui has an interface editor that outputs darkbasic code. Will wingui also have something like this? I need to have an interface for a project pretty fast so I'm gonna get blue2 gui for now and figure it out, but I am interested in wingui too.

Dennis The Frogman
www.3dfrog.com
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 3rd Mar 2007 01:17
WinGUI will have an interface editor, yes.

I have BlueGUI as well, and its editor is awsome.

I can also make a converter to convert BlueGUI's editor's projects into DarkBASIC Professional code for WinGUI.


As for the dll thing, you drop the dll into the [DBPDirectory]\Compiler\plugins-user folder.

And the .INI you drop into the [DBPDirectory]\Editor\Keywords folder.


The .INI, and the plugin can be found on the front page (Of this project). A .rar archive will be available soon as well as an installer for the plugin. This will come after a "major" update. ** After the menubar, statusbar, and toolbars are implemented (And text returning works) **



Cheers,

-db


Enter my forums here.
dennisb
17
Years of Service
User Offline
Joined: 26th Apr 2006
Location: New York
Posted: 3rd Mar 2007 01:36
DB user, what is your opinion of gui studio compared to blue gui? I found gui studio after i wrote my post.

Thanks for your answers.

Dennis The Frogman
www.3dfrog.com
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 3rd Mar 2007 02:03
I have never used GUI Studio before, therefor, I do not know.

From my knowledge, GUI Studio doesn't allow Win32 Windows. (Windows controlled by the Operating System (Windows), and not DarkBASIC Professional **Better described**)

I think it would be great for an ingame GUI though.



Cheers,

-db


Enter my forums here.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 5th Mar 2007 03:24
Semi-Update

I think I know why the menubar popups arent working, and I will try and fix that. In addition, I have gotten help, and think I can fix the string returning error.

In addition, I am working on correcting the error with retrieving if a button was clicked or not.

Temporarily, I recommend checking which window is in the foreground, and if its your button, then control the event for that.


Cheers,

-db


Enter my forums here.
Kieran
17
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 11th Mar 2007 10:12
its getting better. awesome work DB


RPG Engine Work in progress!
MSon
19
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 13th Mar 2007 01:30 Edited at: 13th Mar 2007 01:30
Is there a command to change the text in a textbox?
Dr Manette
18
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 13th Mar 2007 03:50 Edited at: 15th Mar 2007 04:27
Awesome project, DB User! I have wanted a decent windows gui, but haven't wanted to fork over the cash. Keep it up!

Login to post a reply

Server time is: 2024-04-25 06:15:13
Your offset time is: 2024-04-25 06:15:13