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.

DarkBASIC Discussion / Windows gui

Author
Message
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 23rd Jan 2005 06:25
How would i make my program have things like a textbox,status bar,button,etc....
since there is no commands for this.Does anybody have a example or dll?

Please help.

Join the new years contest!
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 23rd Jan 2005 07:05
Text "Hello World"

Ali M

†††[ -- LoSt DrEaMs -- ]†††
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 23rd Jan 2005 07:10
Your so helpful Ali. I'm sure thats exactly what Bill Gates used when designing windows.

Look at RobK's BlueGUI dlls

Hi
Hoopkid ups
20
Years of Service
User Offline
Joined: 24th Nov 2004
Location:
Posted: 23rd Jan 2005 07:13
However, BlueGUI won't work in DBC or DBC Enhanced. To use it, you'll need Dark Basic Pro.
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 23rd Jan 2005 07:28
Proberbly to buy BlueGUI,

It would give you better sources than my s***y code,
But hey! Maybe you will get lucky

Ali M

P.S. BlueGUI is only $20

†††[ -- LoSt DrEaMs -- ]†††
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 23rd Jan 2005 07:57
Can anybody help?
I only have dbc.

Join the new years contest!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 23rd Jan 2005 11:26
Assuming that you have Enchanced, you can call all the Window's API commands yourself from withing DarkBASIC.

It looks like that's the only possible way to do it at the moment with DBC, unfortunatly.

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 23rd Jan 2005 18:12
Magic Windows or something like that. You can get a DBC version of it!


Thanks to Animeblood for the Logo!
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 24th Jan 2005 10:47
Quote: " Assuming that you have Enchanced, you can call all the Window's API commands yourself from withing DarkBASIC."

whoa whoa wait. wtf?!?

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 24th Jan 2005 11:18
@Haxorphreak - Very tricky though, because you have to give your window ID and everything which I'm not sure you can do in DBC.

Hi
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 24th Jan 2005 11:30
like the parameters in the window class?

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
ionstream
20
Years of Service
User Offline
Joined: 4th Jul 2004
Location: Overweb
Posted: 24th Jan 2005 12:09 Edited at: 24th Jan 2005 12:12
I'm not sure if DBC can do DLL's, but you would load "user32.dll" and call GetForegroundWindow... but then to create a child window (like a button) you would need the HINSTANCE of the window...

Checking MSDN...

EDIT: Can find anything on hinstance, but once you found it you would call CreateWindowEx() to make a child window. hab.

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Jan 2005 14:37
API Stuff is easily done in DBC

You must have enhanced to access DLL's, and then you call the appropriate DLL's with their Undecorated function names, and all is well.

I'm not sure if DBC suffers from the same issue as DBP where a Call DLL command can only take a maximum of 13 parameters. If so, then the CreateWindowEx function is a hard one to use. It is possible, because you can actually leave the last few parameters blank, and Window's will just subsidise that with NULL.

If I get time, I can give you some code that I have, however I'll be DBP code, so it may not work, and I'll have to convert it

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Jan 2005 15:28 Edited at: 24th Jan 2005 15:29
Ok, Here's what I've got

This is the first ever API stuff I did ( ages ago )



This is a little thing that'll make the window explode/implode from/into nothing



This is an Open and Save dialogue box function...
Unfortunatly, I can't get it to work in DBC, because it doesn't have the Make Memory and Copy Memory functions...
If anyone can work out how to get the _get_str and _get_str_ptr functions to work as they should ( return a pointer to a string, and return a string given a pointer and length ), then go ahead



Finally, here are some generic functions that deal with Buttons.
Again, The function calls need string pointers, so an alternative to the methods I've used will have to be found.
Also, you must have the Global Extended syntax of DarkEDIT enabled for this snippet. ( To do that, in DE, Edit >> Edit Options >> GLOBAL Extended Syntax needs to be checked ).



Hopefully that Will help you out

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!

Login to post a reply

Server time is: 2025-05-29 11:21:33
Your offset time is: 2025-05-29 11:21:33