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
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 13th Mar 2007 04:06
@MSon
I believe the command is "gui_setWindowText".

@Dr Manette
Thank you. I will.



Cheers,

-db


Enter my forums here.
Dr Manette
18
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 14th Mar 2007 03:44
Okay, I've been fooling around with it, and besides the button (which you say is being fixed), I found that I could not read a selected string from an edit box, a combo box, and the program doesn't know if I have pressed a radio button until I click something else.


For the GUI_GETEDITTEXT command, it says the function is not working properly. Not sure if it's my code your bugs.

Bio Fox...four guys, one computer, games like nobody's business. Join our forum: http://biofox.aceboard.com
http://www.biofoxgames.com
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 14th Mar 2007 04:03
This is amazing! Once this is complete, I can see a million web browsers coming out!

-Mansoor S.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 14th Mar 2007 05:20 Edited at: 14th Mar 2007 07:19
@Dr Manette
OH! Thank you.


I have forgotten to implement the fix to the Edit Texts and other return type functions.


Its not your code, the function purposely returns the string "This function is not working properly."


I will see if I can get that fixed tonight, then upload it.


@Xenocythe
Thank you.

A million web browsers, that would be something. Thank you.



@Everyone
You can help support WinGUI, by joining http://www.tree3d.co.nr. Also, I will make a signature which people who would like to support the product can use. This is all, if you want, of course.



Cheers,

-db

[edit]
The fix worked outside the dll, under all the same circumstances, but it wont work from the dll.

Perhaps the DLL didnt compile or something. But, this is confusing. I got the menubars working, btw, but now there is an odd bug.
[/edit]


Enter my forums here.
Mr Crazy
19
Years of Service
User Offline
Joined: 29th Nov 2004
Location:
Posted: 17th Mar 2007 00:23
You're going to make BlueGUI go out of business with this

"God - he's my favourite fictional character." - H. Simpson.
WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 17th Mar 2007 01:49
Quote: "You're going to make BlueGUI go out of business with this"


That's what I tough too when I read this thread


Windows XP,pentium IV, 3.0 MGZ, 1024 mb memory, 256 mb ATI Radeon PCIE X700 Pro 'sett squadron back on the assault'
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 17th Mar 2007 02:46
lol.

Those arent my intentions though.



I just want making a win32 gui easier for those who dont have bgui2. ^_^




Cheers,

-db


Enter my forums here.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 23rd Mar 2007 03:22
INFORMAL UPDATE

Well, after it has been asked that the DarkBASIC Pro window be able to be rendered to another window, it has been accomplished. The only problem is this.... It will not be supported in the Free WinGUI DLL. Instead, it will be supported in a commercial DLL, DAP. Which offers a wide variety of control over the direct3d renderings, as well as many, many, other things. Please, do not take this as bad news. This, in some cases (Not just my own), can be considered a good thing.





Also, I would like to remind everybody, that I am still working on this DLL.... And it will always remain free. In fact...... It may even become Open Source. I havent decided on that yet, but if it does, then I would have to clean up the code a little bit first.






Cheers,

-db


Enter my forums here.
Dr Manette
18
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 27th Mar 2007 02:24
Thank god, I thought you had been kidnapped Can't wait for a new update.

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Mar 2007 04:29
@Dr Manette
lol. Thanks. You wont have to wait any longer.

@everybody
Well, it might not be complete, but here is WinGUI, and all of its features, in a nice little .RAR.

You are treated to menubars in this one. But they are still WIP and havent been fully tested.

@C++ developers
If I do happen to make this Open Source, you will require Dev-C++ to compile it. I use version 4.9.8.0.





Enjoy.





Cheers,

-db

Enter my forums here.

Attachments

Login to view attachments
Agent Dink
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 27th Mar 2007 05:13
yaaaaay!I'll try it out soon, I'd like to incorporate it into one of my editors.

I have no signature...
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Mar 2007 05:31
@Agent Dink
Alas, buttons are not working correctly, nor are edit boxes. But dont worry, im working to fix these problems.



Cheers,

-db

Enter my forums here.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th Mar 2007 19:37
Looks and sounds awesome! I've kinda become attached to making my own GUI in paint or DrawPlus but this would make it easier...
Lol! I must admit though that when I read your post which said '@C++ developers' I quickly looked back to find the person called that! Lol! Worked it out eventually!

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 31st Mar 2007 22:56
Thanks Teh_coderer.


Cheers,

-db


"We arent terrible people.... Horses are terrible people." - Peter Griffin
The cow
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: India
Posted: 4th Apr 2007 10:07
What version of DBP does this work on?

Great work, btw...
The cow
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: India
Posted: 7th Apr 2007 14:38
One more thing... I'm using sprites for a menubar and for some buttons... I cannot use any of the DLL's functions... it simply crashes when called... any suggestions?

Well, it works normally otherwise (as in when I tried compiling the examples in this thread)... Any ideas on how to fix it?
The cow
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: India
Posted: 7th Apr 2007 15:42
Sorry if my messages are all over the place... I am growing older, you know... forgot to include the startwin32 command...

Anyways, now I seem to have another problem... Everytime I create a window with the gui_makewindow() command and close it (using a checkbox or something, buttons don't seem to work)... I just can't create another new window... I mean the program just freezes...

Any ideas anyone?
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 8th Apr 2007 03:54
@The Cow
It works on DBP Version 6.3, At least thats what I test it on.
As for the crashing part, I need to see some example code which shows this crash. Otherwise I can not test it well.
That window problem has actually been fixed today. About 2 minutes ago. Attatched is the new DLL.

@Everyone
The DLL has been worked on a tiny bit more, I updated how windows are made so that now more than one window can be made. Enjoy.

Cheers,

-db


"We arent terrible people.... Horses are terrible people." - Peter Griffin

Attachments

Login to view attachments
The cow
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: India
Posted: 8th Apr 2007 13:13
Yay!!!!

I'm so happy I could run to the moon!! (well, almost...)

The crash was sorted out... a stupid mistake actually - didn't include the startwin32 command...

This is just brilliant!!! Great work db!!

-The Cow

P.S: any ideas on when you'd make the buttons fully functional?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 8th Apr 2007 21:25
Well, you asked me to tell you if I downloaded it so here I am I tried the first example you had and it looks pretty cool, but I have yet to try it myself.. But it looks very useful so far!

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 9th Apr 2007 04:54
@The Cow
Thank you. As for the buttons problem, im sure its just as simple a mistake as a forgotten command to be added.

@Sixty Squares
Which MSN contact were you if I contacted you through MSN? I cant remember. Of course i've also had a piercing head ache for about a day now, so that could contribute to it.

@Everyone
Enjoy the plugin.


Cheers,

-db


"We arent terrible people.... Horses are terrible people." - Peter Griffin
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 10th Apr 2007 05:30
Ok... I decided this. WinGUI will be Open Source.

I am currently making a SourceForge .NET account, so you will all be able to grab the source in a second. I hope you all like messy coding. ^_^

Cheers,

-db


"We arent terrible people.... Horses are terrible people." - Peter Griffin
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 10th Apr 2007 06:00
Quote: "I hope you all like messy coding. ^_^"


Depends on what it's wrote in

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 10th Apr 2007 08:14
C++.

Cheers,

-db


"We arent terrible people.... Horses are terrible people." - Peter Griffin
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 10th Apr 2007 14:06
Works for me.

Thanks.

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 11th Apr 2007 01:59 Edited at: 11th Apr 2007 02:43
No problem. I hope everyone finds the source usefull in some way. I would also like to note this:

You need: Dev-C++ with MingW C++ compiler (I use version 4.8.9.0 for the Dev-C++ version, rather old).


Cheers,

-db

[edit]
I worked more on returning text, but I just cant seem to get it right. I was worried that it would be a memory allocation error, so I switched my old code to this:


Didnt exactly work. :/

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 11th Apr 2007 02:47 Edited at: 11th Apr 2007 11:32
Here's all of WinGUIs code.

Commands.cpp


Commands.h


Commands.rc


GlobStruct.h


gui_win32.ini


header.h


resource.h


Windows_GUI.dev


Sorry to include all of everything like this. Im just gonna do this until the sourceForge site is up.


Cheers,

-db

[edit]
SourceForge site is up. http://sourceforge.net/projects/wingui

[/edit]


Albert Einstein believed that imagination is more important than knowledge.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 14th Apr 2007 09:20 Edited at: 14th Apr 2007 09:28
Ok, im just uploading a screenshot of the now working menus. And the DBA code, and the update to the "commands.cpp" file.

The DBA.


commands.cpp





VIEW MY SOURCEFORGE!
[i]Click here to view it.

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.

Attachments

Login to view attachments
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Apr 2007 03:35
More updates. ^_^

commands.cpp


commands.rc


gui_win32.ini


Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 16th Apr 2007 06:41
Another update, this one featuring a not quite working MDI window system. Any one have any ideas on how to fix it?

commands.cpp


commands.h


commands.rc


gui_win32.ini


Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Foe7
17
Years of Service
User Offline
Joined: 26th Mar 2007
Location:
Posted: 27th Apr 2007 05:50
Could you possibly attatch the latest version of the dll for those of us w/o c++ compilers>

Thanks,

-F7
Foe7
17
Years of Service
User Offline
Joined: 26th Mar 2007
Location:
Posted: 27th Apr 2007 07:28
Well, it appears that it is taking/it took a long time for my previous post to be approved...so i'll just have to post another one.

Is there currently an option to find how many lines are in an editbox? If there is, where? and if not, then it'd be cool to add it.

Second, what is the best way to make this into a flexible system, i.e. for a map editor, where you will have many different windows for different things? Should you delete windows when you are done or create all of the windows up front, and then hide the ones that don't apply to the current situation? Basically, which method is faster?

Thanks,

-F7
Foe7
17
Years of Service
User Offline
Joined: 26th Mar 2007
Location:
Posted: 28th Apr 2007 02:21 Edited at: 28th Apr 2007 23:46
Well, as it seems that me being a "no0b" here doesn't allow me to bump this post, so i guess i'll have to rely on the chance that you glance back at this thread.

I have a couple more questions that I've encountered:

1) Is there a documentation coming out, ever?
2) Is there a way to stylize "groupbox"'s? and if not, are group boxes the only way to link objects together?
3) Is there any way to redraw the windows?
For example: I create an application with a groupbox embedded in the main DBP window. Then, I decide to maximize that window. Currently, (unless i've missed something), the group box stays in its previous position while everything else gets enlarged. Maybe if there is a way to check if the window has been maximized/minimized?
4) What exactly does screen width/screen height and getwindowwidth/windowheight return? Do they return the resolution of the application? and is there any significant difference between the DBP commands and the ones you've included?

Sorry for all of the posts/questions...but some more

1) null
2) I've been unsuccessful at grabbing text from a text box. Is there some other command that I need to use?
3) Is there a way to get the information that is entered into a combo box?
4) What are "Events" and how do they work? (i.e., what causes an event, what are the parameters of an event, what event code does what, and what is sending events for?)
5) I've been unable to create menues...do you have any example code for that?

Thanks,

-F7
Alfa x
18
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 28th Apr 2007 17:37
So many things....

I have two suggestions.

1) Have you thinked in a cells system, like microsoft excel.
So it's easier to show tabular data.

2) have you thinked in the possibility, of showing word or PDF files?
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 28th Apr 2007 19:55
Downloaded. Will test this out

If at first you dont succeed, LOWER YOUR STANDARDS.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd May 2007 04:13
Gone for the weekend, so many questions. ^_^

@Foe7
Quote: "Could you possibly attatch the latest version of the dll for those of us w/o c++ compilers>"

Sure, i'll attatch the latest version in a second.

Quote: "Is there currently an option to find how many lines are in an editbox? If there is, where? and if not, then it'd be cool to add it."

In all honesty, im not completely sure. However, if there is not a single command, it can be done by using "messages" with the plugin.

Quote: "1) Is there a documentation coming out, ever?"

Yes. I dont know when, but hopefully soon.

Quote: "2) Is there a way to stylize "groupbox"'s? and if not, are group boxes the only way to link objects together?"

You cannot stylize groupboxes, however, you can use many things to link objects together, such as labels, windows, etc.

Quote: "3) Is there any way to redraw the windows?"

You can calculate a proportion/ratio within the window, for childsize/position:windowsize.

Quote: "4) What exactly does screen width/screen height and getwindowwidth/windowheight return? Do they return the resolution of the application? and is there any significant difference between the DBP commands and the ones you've included?"

screenwidth()/screenheight() return the width and height of the backbuffer. The backbuffer is the D3D drawing area. In other words, this is the 3D area which is a constant resolution, where as retrieving a windows width/height will not be constant. It will retrieve a GUI elements width/height.

Quote: "2) I've been unsuccessful at grabbing text from a text box. Is there some other command that I need to use?"

Sure. Here is a premade function which makes it easy.


Quote: "3) Is there a way to get the information that is entered into a combo box?"

Depends on what information you want to get. In most cases, yes.

Quote: "4) What are "Events" and how do they work? (i.e., what causes an event, what are the parameters of an event, what event code does what, and what is sending events for?)"

Events are simple messages which is sent by the Windows OS to the window/program. This describes what is going on with the window/program at the time.

Quote: "5) I've been unable to create menues...do you have any example code for that?"

Absolutely. Have a look below:


@Alpha X
1) Yes.
2) Possibly... Thats not the biggest priority at the second though.

@sneaky smith12
Thanks. ^_^


Cheers,

-db


What? You mean I cant sleep here???
Alfa x
18
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 2nd May 2007 07:10
@ DB user: Thanks for answering the questions of us all. That was nice. Keep it up this is a wonderful plug - in..
I will use and test it for sure.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd May 2007 09:34
No problem.

Cheers,

-db


What? You mean I cant sleep here???
RPDan
17
Years of Service
User Offline
Joined: 29th Apr 2007
Location:
Posted: 2nd May 2007 21:32
This has to be the best thing I've seen on these forums. Keep up the good work.

Is it possible though that you could post some example code to make a button and make something happen when it is pressed, because for some reason none of my buttons always return 0 even when they are pressed.
RPDan
17
Years of Service
User Offline
Joined: 29th Apr 2007
Location:
Posted: 3rd May 2007 13:50
I meant to say my buttons only ever return 0.
Grandma
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location: Norway, Guiding the New World Order
Posted: 3rd May 2007 17:22 Edited at: 3rd May 2007 17:23
There is a problem with buttons not registering clicks properly. For the time being, i'm using a sligtly wierd, but fully functional workaround



As you can probably see, i'm just checking if the window element in focus has a width of 75 pixels (that would be my cancel button). My "OK" button has a width of 76. So i'm basically using GUI_GETWINDOWWIDTH instead of GUI_BUTTONPRESSED.

Ofcourse you may use different workarounds. Hopefully DB user is on the case, he is aware of the bug.

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: 4th May 2007 00:25 Edited at: 4th May 2007 00:26
@RPDan
Im working on this bug.

@Grandma
Try something like this:


Cheers,

-db

Edit 1
Uploaded a newer version of WinGUI


What? You mean I cant sleep here???

Attachments

Login to view attachments
Jack LOL
18
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card
Posted: 4th May 2007 13:17
When will it possible to change a background of an edit box from white to an image I choose? Ty.



The ARRAYinator
19
Years of Service
User Offline
Joined: 13th Aug 2005
Location:
Posted: 5th May 2007 00:39
Been watching this for a while if you don't mind all to much is it ok if I use it in Gamescape 3d. Ive been looking for a better Gui and this is more stable and faster. Its awesome that its free to,lol keep up the good work!



The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 5th May 2007 05:28
So this latest build can I run my dbpro applications within your windows??

The admiral
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 5th May 2007 05:42
@Jack LOL
Soon. I have no date worked out though.

@The ARRAYinator
Of course you can use it in Gamescape 3D ^_^ Even if its a commercial application, or w/e. Its free to use. I believe it falls under the LGPL license.

@The admiral
I dont know what you mean by that, sorry. If you mean something like FPSC, then, that depends. It might be possible, though, untested.

Cheers,

-db


What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 5th May 2007 12:54 Edited at: 5th May 2007 12:57
By request, WinGUI can now cook speghetti. lol Add this to the end of commands.cpp



Cheers,

-db

Edit, this was just a joke. An update will be ready soon.


What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 6th May 2007 05:19
Ok, I added in a little bit on Treeviews. Heres the updates:

Commands.cpp


commands.rc


gui_win32.ini


Cheers,

-db


What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 8th May 2007 09:47
Would anyone mind helping me on the TreeView? After all this IS Open-Source.

Cheers,

-db


What? You mean I cant sleep here???
Alfa x
18
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 8th May 2007 19:58
I would like,
but, like you know, i'm still learning c++.
I Don't know a bit of the windows interface.
SO it can turn very slow...

if you don't mind, my mail is:

elecsebastian1a@hotmail.com

Login to post a reply

Server time is: 2024-11-23 12:59:03
Your offset time is: 2024-11-23 12:59:03