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.

Program Announcements / [LOCKED] BLUE Graphical User Interface Plugin Release - Windows Gadgets in your apps

Author
Message
bbzorp
20
Years of Service
User Offline
Joined: 11th Mar 2004
Location:
Posted: 18th Aug 2004 06:17
Quote: "You should be able to use this with BlueGUI-DarkBASIC apps."

.. and does it work with DBPro?
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 18th Aug 2004 21:24
RobK:

I've sent you an email asking to be a BlueGUI 2 beta tester. Just to let you know...

Cheers!


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 18th Aug 2004 23:28
@RobK
I too have sent you another email, regarding the latest version of BlueGUIv2. Please post when you have responded.
Thanks,
1tg46

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 19th Aug 2004 20:38 Edited at: 19th Aug 2004 20:38
Rob,

I'm sure this has been asked before, but searching through 800 replies is not fun

BlueGUI uses screen co-ordinates - so if I have an app running in 800x600 but maximised to fill my 1192xwhatever screen the gadgets stay the same size. It works OK when windowed because the app is coveringa true 800x600 pixels.

Is there a workaround for this? Checking every loop for the size of the DBP window and scaling?

Thanks

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
pathfinder
22
Years of Service
User Offline
Joined: 5th Sep 2002
Location:
Posted: 19th Aug 2004 22:15
ooo looks like iam buying this thing to now. Got a semi 2d CAD app i need, as the actual app dosent exist for what i need ... ill make it myself . I guess no ones working on a nice button/menu designer that rips it out to dbpro code yet? hehe what can i say iam lazy. ^^ hey as ive got to write DXF import/export functions iam aloud to be lazy

top stuff Rob no idea where you get the time.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 19th Aug 2004 22:52
ALso, is there a way to stop a user from typing in a combobox?

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 20th Aug 2004 01:38
You could disable the gadget, but it wouldn't allow the drop down.

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Aug 2004 02:59
Quote: "I guess no ones working on a nice button/menu designer that rips it out to dbpro code yet?"


Rainbow comes with Blue v2 - its a simple Visual UI editor which exports DBPro code.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Aug 2004 03:02
Quote: "Is there a workaround for this? Checking every loop for the size of the DBP window and scaling?"


You could do that, although generally most applications do not scale their gadgets as the screen resolution changes. There are DBP WINDOW WIDTH and DBP WINDOW HEIGHT commands for this. Make sure that you only do re-sizing if the heights / widths have changed though.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 20th Aug 2004 03:22
Thanks. How about stopping people from typing text in the combobox - I'd like a dropdown but only with preset options.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
BealziBob
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location: The Grim North (UK)
Posted: 20th Aug 2004 03:33
Use the LOCK GADGET command to stop people fiddling with your text

eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 05:58 Edited at: 20th Aug 2004 05:59
Yeh, lock gadget does what you want to do, although you can't set the text of a locked combobox from within the code.

Shame...

@ RobK
Did you get my e-mail about the BlueGUI 2 beta? (sent it from nicola_wright@btopenworld.com)


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Sam Wright
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Aug 2004 08:42
Just replied to your email with the necessary details.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 20th Aug 2004 10:29
Thanks, Hopefully it is their. If not I will write another email.

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 18:31
Rob, I haven't gotten your e-mail. Could you resend it please?

Cheers!


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Aug 2004 18:49
Done - you should have a new email from robertknight@gmail.com


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 20th Aug 2004 19:16
Cheers rob!


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Aug 2004 00:29
rob does the db window need preparing in the dll code? if i want to write code for a message box can i just code it like you normally would in c++ or does the db win need to be setup?


Scorched Turf --> Project Thread
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st Aug 2004 00:32
Quote: "rob does the db window need preparing in the dll code? if i want to write code for a message box can i just code it like you normally would in c++ or does the db win need to be setup?
"


You don't need to do anything to the DBP window to show a message box, in fact, you can quite easily display a message box without using a DLL:




BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Aug 2004 03:40
i meant for a learning purpose with my and c++


Scorched Turf --> Project Thread
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st Aug 2004 21:05
In which case, here is the same C++ code:



And the stringtable entry

MyFunc%SS%MyFunc%str message, str caption


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 21st Aug 2004 23:31 Edited at: 21st Aug 2004 23:33
@ Rob
Would it be possible to put in another command (perhaps updated by "getevent") that checks to see is the mouse is ontop of a menu, and returns the handle of the menu? It would be pretty useful.

Cheers!

NB. BlueGUI 2 is pure excellence! Well done!


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Aug 2004 00:18
Possibly. When menus are displayed they are usually modal (ie. whilst they are being used, the rest of the program is stopped). There is a setting to create non-modal windows - but that results in some drawing errors at the moment. If I can sort that out then I'll implement it.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 22nd Aug 2004 01:57
I meant a command that would return the handle of the menu at the top (eg. File, Edit, Help, etc...), or the handle of the menu bar; whichever has the mouse hovered over them at the time. While the mouse is hovering over the menu (or one of its items) the program is still running, leading to possible tomfoolery within the program, as user inputs (like mousclick()) are still being recognised.

Would this be feasible?


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Aug 2004 03:38 Edited at: 22nd Aug 2004 03:40
Ah, I understand.

Just use the mousePosY command. It will return -1 if the mouse is over the menu or outside of the DBPro window.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 22nd Aug 2004 04:10
Cheers Rob, works like a charm!


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 22nd Aug 2004 09:00
robK

Have Recieved Your Email

I am having a great time with your dll, but I would like to know if you could add the code setwindowalpha to blueGUI2, basically how you did it with Blue v1. and are the help files continuing to be done because no help files were sent with the GUI2 pluign you sent me, so I'll have to go off of BlueIDE's Plugin information(which is a great feature by the way).

And are you eventually going to include all the rich edit commands that were in BLue v1.

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Aug 2004 10:18 Edited at: 22nd Aug 2004 10:19
Quote: "And are you eventually going to include all the rich edit commands that were in BLue v1."


The DLL you have has part of the RichEdit set included (added a view bits and pieces whilst in France)

createRichEdit(x,y,width,height,parent)

Use the normal edit gadget commands to set the selection and retrieve the gadget's text.

Special commands for RichEdits:

setSelFont handle richedit, handle font, int color
getSelFont handle richedit (Returns font handle)
getSelColor handle richedit (Returns int color)

Quote: "but I would like to know if you could add the code setwindowalpha to blueGUI2,"


Can do.

http://www.robertknight.me.uk/files/temp/alpha.png

Only works on certain gadget types atm. but I can easily extend those types.
You can even apply it to the main window, although the performance hit it ridiculous.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 22nd Aug 2004 12:53
Rob, Blue GUI 2.0 is looking fantastic. I don't think there will be much of an alternative for GUI's soon.



off topic: I think I read somewhere(maybe llrgt) that BGUIv1.0 was programmed in Delphi. You have any good resources for win32 in Delphi (other than microsoft and what's already provided in Delphi).



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 22nd Aug 2004 19:29 Edited at: 22nd Aug 2004 19:45
Rob, will you be including some progrssbar commands in BlueGUI 2? I can't see any in the beta.

Cheers

[edit]
also, could you put in a command to set and return the checked status of toolbar buttons?
[/edit]


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 22nd Aug 2004 22:52
Their will be progressbars in the final version. I haven't tested them out with the version he just sent me, but I am sure they will be like blueGUIv1.

The two commands that I have noticed have been:
createprogressbar(x,y,width,height,parent)
and
createsubmenu(parentmenu,initial item)
and
startblue(str name, str key)

And the reason why I wanted the setwindowalpha cemmand is because i have been experimenting in converting a set of C++ code to DBP and the code is how to make transparent menus, similar to MacOS.

The basics of the code:
When Initmenupopup command is sent to windows we will convert the popup menu to make a window out of it (taking the menu animation out as well) then it says to make the window layared and set the transparency, but that is where setwindowalpha command comes in. I will convert the newly made menuwindow to a BlueGUI recognised gadget number and set the window alpha. If it sounds confusing, it is. If I find the source code to do this I will probably post it here.But if it doesn't work then oh..well, just means an extra command to play with in BLue.

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 22nd Aug 2004 23:22
cheers rob. most kind.


Scorched Turf --> Project Thread
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 23rd Aug 2004 11:38
Alpha and richedits.. Ah that's great. Good to see the work from France.

Thanks Rob.
pathfinder
22
Years of Service
User Offline
Joined: 5th Sep 2002
Location:
Posted: 23rd Aug 2004 18:57
great, ill get it this week then. Just need to get my code to a certain point. Thanks mate
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 25th Aug 2004 03:18
Im not sure if this has been posted before but when you do something like this


file$=opendialog("Load a texture...","Bitmap File (*.bmp)|*.bmp|Jpeg File (*.jpg)|*.jpg")


and use the open/save dialog whenever you click cancel it ends the program. . .

Same happened on Blue1.


Scorched Turf --> Project Thread
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 25th Aug 2004 07:51
@RobK,

Sorry Rob, been out of the loop for a while. How far along is BGUI v2 now? Could you email me the latest tester - ta

Duffer.
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 25th Aug 2004 22:31
@Powersoft

It works for me if you do something like this



Hope that helps

pizzaman
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 27th Aug 2004 07:16
thanks. that looks familliar code to what i used before but i cant remeber it.

thanks


Scorched Turf --> Project Thread
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 31st Aug 2004 04:39
I can't replicate the dialog problem here (see the Blue2 bug report page for my reply)

Progress Bars have been implemented for the release version.

I'm not sure that Canvas gadgets support alpha at the moment, I'll look into that (may need a very minor code change).

I'm afraid I don't have any resources for Win32 in Delphi, but the good news is that Borland have done a lot of work for you. Add windows to the uses section at the top of your code, then access the Windows functions via the Windows object (eg: Windows.SendMessage). Other than that, you can just follow the C++ examples around. PlanetSourceCode doesn't have much in the way of advanced stuff but you can find some good basic examples there.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 31st Aug 2004 06:36
Quote: "Add windows to the uses section at the top of your code, then access the Windows functions via the Windows object (eg: Windows.SendMessage). "

What do you mean?

Back from a long vacation too New Orleans

1tg46 is my name coding is my game.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Sep 2004 18:59
At the top of a Delphi source file (.pas), you have a section which looks like this:

uses
system,classes,graphics,messages,windows;

Just add the word "windows" to that list.

This provides access to the "windows" namespace, ie elsewhere in your code you can call Windows API functions by doing this:

Windows.NameOfAPIFunction(parameters);


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 2nd Sep 2004 08:22
I don't use delphi, the language that I am using is DBP. If I could afford another lanuage I would get the visual studio.NET academic which is marked off at academicsuperstore.com to $90 . The problem is since I do not have any $$$$$ at the moment, I have to work with DBP. So if you don't mind could you explain what I should do with DBP.


1tg46 is my name coding is my game.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 2nd Sep 2004 16:14
creategadgetxxxxxxxx()


Scorched Turf --> Project Thread
Spaceman
20
Years of Service
User Offline
Joined: 19th Aug 2004
Location: Germany / Adelebsen / Goettingen
Posted: 3rd Sep 2004 05:51
Hey Robert,
when can I expect to get the download link for the BLUE GUI?
I paid for it more than 24 hours ago!?
Order number: 7060362

Thank's for an answer!


Spaceman

www.TerrainBuilder.com

Computers are humans too!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 3rd Sep 2004 06:06
Just processing orders now...


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Spaceman
20
Years of Service
User Offline
Joined: 19th Aug 2004
Location: Germany / Adelebsen / Goettingen
Posted: 3rd Sep 2004 06:17
Ok, that's fast

Thank you very much, I received it now!!!!

Regards,


Spaceman

www.TerrainBuilder.com

Computers are humans too!
pathfinder
22
Years of Service
User Offline
Joined: 5th Sep 2002
Location:
Posted: 4th Sep 2004 22:37
lol great, share it dosent take yahoo emails gah Ill rummage about see if ive got another mail account about. Buying today, me CAD program idea works yey
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Sep 2004 01:57 Edited at: 5th Sep 2004 01:58
Just working on the new website now, and finishing off a trial version. Once that is done I can release BlueGUI 2.0.

If anyone is starting new projects, they are probably best of doing it with the v2.0 beta.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
pathfinder
22
Years of Service
User Offline
Joined: 5th Sep 2002
Location:
Posted: 5th Sep 2004 02:47
lol what timing
outSync
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 7th Sep 2004 08:57
Hey, I purchased BlueGUI recently and just had a chance to download it today. Excellent plugin, Rob. I was a little scared that it would be a little complicated, but once I started messing around with the examples, and working with some of the different commands, I was pleasantly surprised with how easy it was to work with the different gadgets.

Definetly worth the money

"If you are wise, you will fear me. If you need me, I'll be playing with my teddy bear." - Garfield

Login to post a reply

Server time is: 2024-11-22 13:51:04
Your offset time is: 2024-11-22 13:51:04