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 / Blue v2 - Windows Controls & Menus Plugin for DarkBASIC Professional

Author
Message
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 15th Dec 2004 03:14 Edited at: 15th Dec 2004 03:16
@Lampton Worm

You are probably running the old version of Rainbow. Run the new one from the Start menu (Start > Programs > BlueGUI 2 > Rainbow UI Editor)


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: 15th Dec 2004 04:41
downloading update now...........6 hours later.......just kidding I have dial-up, it actually took 20 minutes


Click the sig
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 15th Dec 2004 06:03
A suggestion for the next update:

I would use that often. I don't know how you work it into a dll.
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 15th Dec 2004 12:31 Edited at: 15th Dec 2004 12:34
ok, so i bought blue gui v2
i run dark basic pro with upgrade 5.2

does anyone else use this version?
i have always been very fearful of getting any higher upgrades,
because the fix little and always introduce new problems.

i cut&pasted this code from the help file,


and it makes the button, and makes it look like you clicked it,
but it doesn't display the message.
(yes i used 'startblue "",""')
(i also had to put in the spacekey() then end thing because it seems
to disable my escapekey for me...)

what version DBP does blue work in for you?
(i know 5.7 is recommended but i don't want my 10 months of work
to suddenly be useless.)

does blue work with dark basic classic?

thanks,
bob

Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 15th Dec 2004 16:22
Hi Rob,

Yes, that's the one I was launching already.. unless my start menu is confused. 2.00 didn't have a menu entry did it? its new for 2.01?

Cheers.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Dec 2004 04:13
Quote: "and it makes the button, and makes it look like you clicked it,
but it doesn't display the message."


Did you include the gui.dba constants file in your project?

Quote: "does blue work with dark basic classic?"


No.

Quote: "i run dark basic pro with upgrade 5.2"


That should be fine, I believe that Blue v2 should work with Patch 3 or later.

@lamptonworm

Can you compile and run projects other than Rainbow?


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
JerBil
20
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 16th Dec 2004 09:25 Edited at: 17th Dec 2004 10:28
Rob K,

EDIT: Rob, I found a possible soultion. The button will be
updated if I place the eventsource()=cmProject seqment
of code outside the MOUSE_CLICK parse, in the main loop.
Thanks, anyhow.

When I select an item in a combo box, I get the text,
and set it to a button. The text on the button will not
change, though, unless I click on another item or the main
screen. Is there another way to do this?

This code is called from a MOUSE_CLICK eventtype.
cmProject is the combo box, and the button
is btResource. -Thanks




-JerBil
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 17th Dec 2004 16:27
Hi Rob,

Yes, no problem compiling/running anything else. I'm happily using Rainbow v2.00 at present.

Cheers.
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 17th Dec 2004 19:18
Quote: "Did you include the gui.dba constants file in your project?"

well, i tried putting the file in the same folder: no result
i tried the command ... #include "gui.dba" ... no result

please spell it out for me. it is not obvious.

oh, ok,
you have to actually cut&paste the code from gui.dba into your program. i still say that's not obvious... it works now, though,
and that's what i care about.

thanks,
bob

JerBil
20
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 17th Dec 2004 23:52
@IBOL
You can also select "Files" in the editor's right hand pane and add it that way. Usually when you do that, the editor will show gui.dba
in the editor window, so use the little down arrow at the top of the editor screen to switch back to your main code. Don't forget to "Save All."

-JerBil
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 18th Dec 2004 02:11
jerbil,
thanks, i might never have figured that out either...

CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 27th Dec 2004 04:01
Hey RobK - VERRRY nice plugin - it'll make things much easier for me who's been *trying* to make a somewhat decent GUI interface with DBPro's inbuilt commands (not somthing I'd recomend as easy!) and although it was turning into a "nice" inteface (as nice as it can get with paste sprite, set sprite diffuse etc... ) but it did teach me a lot about GUI and buttons and everything else along the way.

One question before I go though - how do you add gadgets to individual tabs so that when a different tab is clicked a whole different set of options appears (like the side panel on your BlueIDE)?

Very great plugin, Very professional, Great support, And otherwise a great use of my money.

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Dec 2004 07:03
Quote: "One question before I go though - how do you add gadgets to individual tabs so that when a different tab is clicked a whole different set of options appears (like the side panel on your BlueIDE)?
"


Create a set of panel gadgets (one for each tab), as children of the tab gadget, sized to fit the main area. Place the appropriate gadgets on each panel (as children of the panel).

When the user selects a tab gadget by clicking it, show the appropriate panel and hide the others.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 27th Dec 2004 11:39
Much thanks Rob K, guess I can't realy do it in the lil editor you provided and I'll have to hardcode it, just a little extra work. Oh one more thing - any possibility of adding multiline tabs as.. say.. a belated christmas present to all those who have bought BlueGUI?

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Dec 2004 19:44 Edited at: 27th Dec 2004 19:45
Quote: "any possibility of adding multiline tabs as.. say.. a belated christmas present to all those who have bought BlueGUI?"


Set the secret optional style flag in the createTabs command to 1:

createTabs int x, int y, int width, int height, int style, handle parent


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Dec 2004 22:14
Hi rob, i had the first version of Blue quite a while ago. But since then i took a break from DB, formatted my PC, blah blah blah. I'm just wondering if i'm still eligible for the free upgrade to version 2? The email address i used when paying last time has become pretty bogged down with spam, and i haven't used it for ages, but i might be able to access it again. Just wondering if its possible and/or what i need to do to get it?
Thanks


Cubes with guns? Something isn't right...
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 28th Dec 2004 07:18
Hey Rob K, I'm fairly sure I've found a bug with the rainbow editor, I first made a project, made one panel and made a bunch of gadgets on it, then I made a second panel and then draged all the other gadgets onto it(reorderd it), i then saved it and loaded it and voila! all the gadgets were back on the first panel - here's the project so you can see what I mean...

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]

Attachments

Login to view attachments
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 28th Dec 2004 08:33
Can you test a new version of Rainbow for me and let me know if it fixes the problem (if the bug is in the save file as I suspect then you will have to re-reorder the gadgets, save the file and then load it again).

Log into the BlueGUI website, then click the link below:

http://www.robertknight.me.uk/blue2/site/index.php?view=download&file=downloads/gui2_v2.02.exe&name=gui_v2.02&ext=exe


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 29th Dec 2004 00:08
downloading now...

CPU

P.S. One qualm I have with the save feature is that it doesn't export the tabs, you can edit the different tabs inside the editor but they don't export, i'll refrain from further comments till later...

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Dec 2004 00:30
Rob, did you see my post?
Quote: "
Hi rob, i had the first version of Blue quite a while ago. But since then i took a break from DB, formatted my PC, blah blah blah. I'm just wondering if i'm still eligible for the free upgrade to version 2? The email address i used when paying last time has become pretty bogged down with spam, and i haven't used it for ages, but i might be able to access it again. Just wondering if its possible and/or what i need to do to get it?
Thanks"


Sorry to be a pain, formulating some plans that need blue at the moment.


Cubes with guns? Something isn't right...
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Dec 2004 00:49
Just send me an email from your current address, including your original registration details (name, original email, anything else if you can find it).


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Dec 2004 02:28
Thanks muchly rob. Sent an email to your gmail account listed on the contact page of your site.



Cubes with guns? Something isn't right...
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 29th Dec 2004 07:10
Is there a tutorial for Listview gadgets as table, because I am having a lot of trouble creating columns, and I have no idea how to set the contents of whatever goes in the columns for each list item.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Dec 2004 07:42
Have a look at the source code for the Tables example. Assuming you are using the latest version of the plugin, open up the BlueGUI help files and go to Examples > Simple Gadget Demos > Tables


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 30th Dec 2004 03:09
Hi Rob. I find myself not being able to select any new gadgets I make, now that I've gone over the 200 gadget limit. So I recompiled rainbow with the MAX_GADGETS constant set to 500, but still no luck. I've searched through the source code and can't find why it isn't working. Do you have any idea?

Isn't it? Wasn't it? Marvellous!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Dec 2004 04:07
Hi Hamish,

You'll need to make some corrections to the source code, some of the for...next loops use the literal 100 instead of MAX_GADGETS.

Do a search for "for i=1 to 100" and replace each instance with "for i=1 to MAX_GADGETS" in the main source file.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 30th Dec 2004 05:42
Ah cheers . I did search for the string "200", but it obviously didn't occur in any place relevent. I must have changed MAX_GADGETS to 200 when first compiling it.

Isn't it? Wasn't it? Marvellous!
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 30th Dec 2004 19:47
Quote: "@Walaber / Scraggle

The DLL does have four untested functions for this, which have not yet been included in the stringtable.
I should be able to add them very easily:

setToolbarButtonEnabled handle toolbar, int button, bool enabled
setToolbarButtonState handle toolbar, int button, int state
getToolbarButtonEnabled handle toolbar, int item
getToolbarButtonState handle toolbar, int item"


Rob, Is there any way to achieve this with ordnary (non-toolbar) button?

Thanks

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 30th Dec 2004 21:21
Rob, did you get my email?


Cubes with guns? Something isn't right...
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 2nd Jan 2005 08:55 Edited at: 6th Jan 2005 09:28
hi

Just got a few questions.

1. Is the string returned from the open dialog limited to 255 characters, as when I select multiple files which have a total of more than 255 characters, windows gives the error "<Part of the actual text in the string> The above file name is invalid". If it is limited, are there any plans to increase the limit - if its possible.

2. Is there a way to get a scroll bar's position when in use, as when you move it the command getScrollbarPosition() returns the scroll bar's unmoved positon, and only when you let the left mouse button go is the actual new position updated.

3. Is it possible to make save and open dialogs with custom options (see the attached picture).

<Edit>

4. Is it possible to stop the main DBP window from being resized, when you drag the sides of the window using your plugin.

</Edit>

Its a great plugin btw.

pizzaman

Attachments

Login to view attachments
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 3rd Jan 2005 08:16 Edited at: 3rd Jan 2005 08:17
Hey RobK, the new version of the editor fixes the problem I was talking about before, but as I was playing with it, I found another one, this time with the export to .dba command:

The bug I found was with exporting the main menu to the .dba file, it appears that when you have more than about 3 levels of menu that the program just simply stops exporting any more (example list view in blue)



but when you export it, rainbow won't export the help/about option to the .dba file, I've also included a sample .gui file with simply the menu for you to toy around with.

Cheers,
CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]

Attachments

Login to view attachments
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 4th Jan 2005 05:43
Is there a way to create hidden?

It was a very useful command in version 1 but I can't find it in version 2.

Also .. to clarify my previous post. Is there a way to keep a button (any button, toolbar or not) depressed even after you have let go of the mouse button? Also, if it can be done is there a way to depress a button using code?

Thanks

Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 4th Jan 2005 12:38
Scraggle:

See setGadgetDefaults for creating things automatically hidden.

setGadgetDefaults bool visible

setGadgetDefaults 0 for create everything default invisible.
setGadgetDefaults 1 for create everything default visible.

Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 4th Jan 2005 12:53
Is there a command/way to gather the contents of a directory and put that into a list box, eg a list box that contains *.txt files from a directory? I have a way to do it but its a long method, I was hoping for a command. I havent had a really good look in the help yet. But I havent noticed one when using the help before.
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 5th Jan 2005 12:43
i have not done anything of my own yet with blue gui,
but today was trying some of the examples.

most of them did not do what they were supposed to do.
they ran, and got some result, but not the full intention.

has anyone else had these (lack of) results with the included
demos? here are some of my results:


thanks,
bob

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Jan 2005 21:58
It sounds as though the events code in those examples is not working - which probably means that the GUI constants from gui.dba are not being included correctly. Make sure that gui.dba is included in the projects, and try printing the values of some of the constants in them to the screen to see if they are being included correctly.

If DBPro has an "Option Strict"-type feature it would make life a lot easier!


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: 5th Jan 2005 22:11
cool sig robK


Click the sig
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 6th Jan 2005 04:18
Quote: "which probably means that the GUI constants from gui.dba are not being included correctly"


well, they're your examples, run straight from the files.
and when i try to add the gui.dba file to the project, it says it
already exists, but it still doesn't work.
then i just cut&paste the gui.dba file directly into the programs
(which is what made certain other things work in the past)
but that doesn't work wither.

bob

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Jan 2005 09:35
What version of DBPro are you using?

Just to clarify for the ListBox and Canvas examples - The ListBox example won't add any items to the list when you start it. You type an entry into the text box and then hit "Add Item". The canvas examples should change the button colours slightly when you mouse over them (you can edit the code for a more pronounced effect).


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 12th Jan 2005 05:00
hey RobK - did you see the lil bug I found with the *beta* rainbow editor?
and also would you rather me send future bug reports/update suggestions to your e-mail or post them here?

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Jan 2005 20:32
Yes, I have fixed it as well

Bug reports should be posted on the Blue 2 website (go to the page where you download updates from, enter your login details then follow the link to the Bug Report 'forum')


BlueGUI Windows Plugin
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 14th Jan 2005 09:28
Then I shall post the bug I just found there...

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Jan 2005 05:47
CPU - I'll take a look at the report tommorrow.

A Rainbow update should be available shortly. Mostly tweaks and bug fixes, but there will be a few new features.


BlueGUI Windows Plugin
blueselah
19
Years of Service
User Offline
Joined: 15th Dec 2004
Location: TN, USA
Posted: 17th Jan 2005 13:48
Is there anyway to change the title and icon of the main "DBP compiled" window? Just wondering..... I know about the
mainWindow() command but didn't find how (or even if..) you can change the main window's name and icon....
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 18th Jan 2005 03:41
mainWindowGadget=createGadgetFromWindow(mainWindow())

setGadgetText mainWindowGadget,"Hello World!"
setWindowIcon mainWindowGadget,"MyIconFile.ico"


BlueGUI Windows Plugin
blueselah
19
Years of Service
User Offline
Joined: 15th Dec 2004
Location: TN, USA
Posted: 18th Jan 2005 03:56
thanks.... i am a dummy....
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 31st Jan 2005 21:31
Hi ya,

Rob, can you please fix the online command reference?

http://www.robertknight.me.uk/blue2/site/index.php?view=docs

One other quick thing, currently I have 2 lists. The idea is that when you select an item in the top list, items relating to that selection are then added to the list below. However, I'm getting some strange behaviour, - its likely to be my code (no surprise there!) but I wanted to check incase there were any known bugs in that sort of area.

Mind you, to get the same effect, its probably better that I use the tree type gadget..!

Cheers
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 31st Jan 2005 22:05
Quote: "Rob, can you please fix the online command reference?"


Odd, the links work correctly here. Might be a browser issue?

Quote: "One other quick thing, currently I have 2 lists. The idea is that when you select an item in the top list, items relating to that selection are then added to the list below. However, I'm getting some strange behaviour, - its likely to be my code (no surprise there!) but I wanted to check incase there were any known bugs in that sort of area."


If you could email me a small example I'll have a look at it.


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 1st Feb 2005 01:12 Edited at: 1st Feb 2005 01:44
Rob I'm trying to open multiple files using the opendialog command. I can get it to open a few but when I select a lot it doesn't work. It seems to give me a blank string when there are too many characters. Is there a maximum amount of characters that it can handle? Also it divides the file names with commas which means filenames with commas are hard to seperate. Is it posible to change it to a different character that cant be used in a filename? It's not crucial but could be a problem for some.

Here is my test code

Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 1st Feb 2005 02:44
Any luck on getting it to work using DGSDK? I remember you were waiting in Mike to get back with you on how it handles strings.

-This...is my boomstick!

Login to post a reply

Server time is: 2024-11-16 18:07:09
Your offset time is: 2024-11-16 18:07:09