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
Narf The Mouse
20
Years of Service
User Offline
Joined: 16th Jul 2004
Location:
Posted: 26th Oct 2004 07:38
Just so I don't go cluttering up your inbox - Thanks.

Cheese!
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 29th Oct 2004 23:03
Ok, its now time for me to point out a serious marketing issue to RobK.

Rob, you've got "coming soon" in your signature banner picture. But Blue v2.0 is already here! Surely you need to change it to: "Now available!" or its equivalent?

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 30th Oct 2004 00:19
or a link to the website?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2ghz, 512mb, geforce fx5200 128mb, 200gb, xp pro sp2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 30th Oct 2004 01:07
Is their away to mask edit gadets so instead of having the words typed will show it will have a specified character like(*) instead.


Click the sig
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 6th Nov 2004 08:47
Hey Rob!

Not to pester or anything but when do you have a date on when a patch'll be out that takes care of the issues discovered on the bug board?
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 6th Nov 2004 20:25
Good question


Click the sig
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 7th Nov 2004 05:23 Edited at: 7th Nov 2004 05:27
Do you have an example of grabbing the dbp window into another gadget? I cant get it to work using setGadgetParent MainWindow(), window

[edit] never mind, i forgot to use creategadgetfromwindow(mainwindow())


"All programmers are playwrites and all computers are lousy actors" -Anon
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 12th Nov 2004 09:03
How's the plugin coming Rob?


Click the sig
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Nov 2004 21:54
I have only one confirmed bug at the moment, the getTextWidth flaw. If there are others (and there are bound to be), please submit them so that I can include fixes for them in the next update.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 13th Nov 2004 06:43
Just make sure gettextheight is fine too.
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 15th Nov 2004 01:07
How do I de-select an item in a listbox (ie select no item)
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 15th Nov 2004 07:07
selectItem gadget,-1


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 16th Nov 2004 05:58
Also, what is the default font for BlueGUI? I need to set text to bold without changing the font from the normal text.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Nov 2004 06:42
Tahoma 10pt I think.


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: 16th Nov 2004 20:18
What language are you using to make the BlueGUI v2 plugin. (ex. VB,C++,C#,.NET lanuage,etc.)?


Click the sig
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Nov 2004 21:41
C++


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 17th Nov 2004 02:41
Another small problem:
I am using the standard project creator organization
I have done:
bold=createfont("Tahoma",15,1,0,0) in the beginning of my layout.dba
then:
applyfont LabelA , bold in the main.dba, after CreateUI() and before the main loop (it is being executed)

Yet LabelA it is not any different from the standard font
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 18th Nov 2004 03:42


@RKnight

getTextWidth and getTextHeight both use the same function internally so the fix should have sorted both.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 18th Nov 2004 13:27
Quote: "getTextWidth and getTextHeight both use the same function internally so the fix should have sorted both.
"


Ah good good. Does that mean you've uploaded the fixed version?
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 18th Nov 2004 20:16
Is the language just plain C++ or C++.NET?


Click the sig
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 18th Nov 2004 21:33
Plain Vanilla C++, compiled using Visual C++ 7.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 19th Nov 2004 11:29
hey RobK, fantastic stuff! I finally got around to playing with Blue v2, and it's just superb

quick question / comment -

the docs for addToolbarButton are wrong, it should be:

addToolbarButton handle gadget, [int index] | [str imageFile], toggleflag, [tooltip]

if toggleflag = 1, the button stays down until clicked again...

which brings me to my question:

if I have a toolbar Button set to toggle mode, is there any way to get the toggle status (up/down) from code? and if so, is there any way to manually set the status of the button?

if you're curious, I'm trying to make a radio-group style interface within a toolbar. so basically there would be 3 buttons, each representing a different "editing mode", so pressing one down would un-toggle the other two, etc. just like a set of radios.

please let me know if this functionality is possible, and fantastic work on the plugin!!! much more elegant and beautiful than v1

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 21st Nov 2004 04:24
Fantastic work indeed!

One question though. I have been editing the 'Windows Project Creator' so that it is more customized to my needs.
The only thing left for me to do to perfect it is have the Folder Dialog open directly to the projects folder.

Is there a way to set the initial folder of a dialog?

1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 21st Nov 2004 05:56
I think you can do this with Cattlerustlers plugin, but you might want to check in the help files to see if their is an extra optional feature for folder dialog.


Click the sig
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 21st Nov 2004 23:19
How do I process a hotkey event?
Say I have created a hotkey whose ID is stored in ShiftSHK, and I press Shift + S, what is the syntax to do something? (If EventSource() = ShiftSHK or If Hotkey() = ShiftSHK ?)
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Nov 2004 00:25
If eventType()=HOTKEY and eventData()=ShiftSHK Then ... Code Here ...


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 22nd Nov 2004 03:14
I am having a problem

This is my layout as viewed in Rainbow:


And here it is in DBP:


Is there a fault with the plugin or is it something stupid I have done?

Thanks

P.S. RobK - Please could you have a look at Walabers post (above) it is something I would like to do also - Thanks

GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 22nd Nov 2004 04:33
Why does yours look so much nicer than mine: Yours looks all XP/OSX, and minelooks like Win 95. How do you do that?
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 22nd Nov 2004 04:47
That is a bug in the program you need to have radio buttons on a panel because they get messed up when on frames using windowsXP themes.

@gopostal
You need to have a manifest file in the same directory as the application.

Attached to this post is a manifest file, and it is named myapp.exe.manifest. What you do is drag that file to the program directory and rename the myapp part of the filename to that of the program.


Click the sig

Attachments

Login to view attachments
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 22nd Nov 2004 04:53
Thanks 1tg46

Panels it is

GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 22nd Nov 2004 06:01
Or, you could make the frames children of a panel, or which the radiobuttons would also be children.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Nov 2004 06:04 Edited at: 22nd Nov 2004 06:09
Yes, it appears to be a Windows API bug, as I notice that it affects Visual Basic 6 amongst other languages.

Microsoft's implementation of GROUPBOX gadgets is (IMO) quite daft as well. You would think that it would be a kind of label only with a border drawn round the edges. Instead they decided to make it a kind of button which in a contrast to all other button styles, receives no messages.

@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


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 22nd Nov 2004 07:29
hello Rob K,

plese add new funczions drag and drop add on in blue gui v2.0

plese add on = drag and drop command or funczions

hello Rob K , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 22nd Nov 2004 20:18
Having the different buttons being able to be dragged would I think make the plugin very confused. Because the plugin reads the initial value of a button, and being able to drag those buttons would mean changing these values.


Click the sig
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 22nd Nov 2004 20:37
hello I want drag and drop from the desktop, he drags rows from the desktop on the window and he you even open the rows type drags a bmp and it visualizes it. hello thanks I attend news more soon

italy version

ciao io voglio drag and drop dal desktop , trascini un file dal desktop sulla finestra e lui magari apri il file tipo trascini una bmp e lui la visualizza. ciao grazie attendo notizie a più presto

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 23rd Nov 2004 04:23
RobK will have to answer that one

And an italian version of your posts is not really necessary. If I am correct you're the only regular italian forum user.

Regards,
1tg46


Click the sig
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 23rd Nov 2004 09:53
@Rob K - any chance of those 4 functions being included anytime soon? I really want to use that functionality for an editor I'm working on (related to Newton of course)...

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 23rd Nov 2004 14:35 Edited at: 23rd Nov 2004 14:36
Hmm. I think DarkDomy uses altavista translate to create his english posts. Which explains a thing or two. Too bad he doesn't know somebody who can translate his Italian better sometimes.

Anyhow I believe you can preview bitmap images from folder dialogs already if you double click them the preview pane comes up.

Hmm. I think you could probably create your own drag and drop of windows if you tried coding that angle from DBPro, but I haven't tried it yet.

I'm not sure what you mean by desktop interaction though. Detecting what's going on there perhaps? That'd be interesting.

I'd like to be able to change the desktop resolution, despite the complications of that. As BGUI always operating in the desktop resolution and not DBPROs can make for complications in coding.

But I'm not sure what DarkDomy's asking about the desktop and 'rows'.

Maybe Rob knows he's the API expert after all.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 23rd Nov 2004 16:09 Edited at: 23rd Nov 2004 16:10
I would like to be able to use tables in a project I am working on at the moment but as they are not available in BlueGUI v2 I can't. They were available in v1 but sadly I lost that with a hard drive failure. So, two questions:

1) Is BlueGUI v1 still available anywhere?
2) Will tables be included in BlueGUI v2 anytime soon?

Thanks

[Edit] I still have my codes to use version 1, just not the software[/Edit]

Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 23rd Nov 2004 17:18
Hi,

Ok - I finally ordered this last night Jus' waiting the 48 hours to get hold of a download and key.

p.s. Rob, I couldn't find any demos (as in, downloads) on the site mind, just snapshots? Nice having the manual on line though, wish TGC would do that for DBP

Cheers.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 23rd Nov 2004 19:49
Quote: "I would like to be able to use tables in a project I am working on at the moment but as they are not available in BlueGUI v2 I can't. "


BlueGUI v2 does have tables, create a listview and do this:
setListViewStyle tableGadget,LISTVIEW_REPORT

Add columns using addListViewColumn, and set the text of subitems using setListViewItemText.
I'll try and post a proper example later.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 23rd Nov 2004 21:44
Hi,

Me again, fyi - the link to the command ref. on your page isn't working..(broken link?)

p.s. if I have a 3d main window/display (i.e. a dbp camera), can I force the currently selected tab to change by code as apposed to by clicking on it? For example, if I use pick object on a certain type of object I want a different tab to be displayed.. hope that makes sense

Cheers.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 23rd Nov 2004 22:07
Try selectTab

I'll have a look into the drag and drop API, no promises though.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 25th Nov 2004 00:41
Note I posted this in the DLL forum but got no replies, so it would be great if anyone can answer this

Hi

I'm creating some edit boxes with one UpDown gadget in each of them. The user can either input a number or use the UpDown gadget to select a size of something (its a secret at the moment ), however whenever the size is greater or equal to 32768 the UpDown gadgets position resets to 1.

So I'm just wondering is there a limit to the size that an UpDown gadget can be?

Edit Here is some code to show what I mean



Enter a number that is 32768 or over to see what I mean.

End Of Edit
outSync
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 25th Nov 2004 01:02
Hey Rob,

I emailed you a few days back, and still haven't recieved a reply. I'm looking forward to using the latest version, so if you could get back to me concerning the upgrade, I would appreciate it.

Thanks

"If you are wise, you will fear me. If you need me, I'll be playing with my teddy bear." - Garfield
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 25th Nov 2004 02:31
You could temporarily use the demo version, the code from that will work with the present BlueGUI plugin, just a 20 minute time limit.


Click the sig
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Nov 2004 02:56 Edited at: 25th Nov 2004 02:57
Hi VariableS,

What is your email address?

@pizzaman

I have a feeling that UpDown gadgets are limited to 16bit numbers for Windows 98 compatibility. I'll have a look.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 25th Nov 2004 05:13 Edited at: 25th Nov 2004 06:12
Hi,

Righty ho, got it downloaded and working, cool stuff, especially Rainbow..! Man, that makes life easy for UI design.

However one thing I noticed was that save and load dialogs don't work for me (they don't do anything!), but I have the DBP enhancement pack so I replaced save/load with the save/load dialog commands from that, and it worked, so I've got round it (I'm on 98SE by the way.. can you think why those commands wouldn't have worked 'out of the box' for me?).

Final quick think, when you create a tab, how do we get child gadgets into it? Currently all gadgets go to the same level. If I load up a sample gui with a tab it looks good, in the gadget view you have the tree view with child gadgets under parents etc. all groovy, but when I add one its at the root level. Probably me missing something obvious, but I thought I'd mention it incase it was '98 thang?

[edit: ok, something to do with having the gadget re-ordering turned on.. ah, RTFM! Important Note: For tab gadgets, you must click on the TAB CAPTION (the word “tab” which appears at the top of the gadget in the editor) in order to select the gadget, or create a new gadget as a child of it.]

[edit2: ok, can now add child gadgets into frames and tabs but perhaps I've also misunderstood tabs, I want different gadgets between tabs, is that possible to design easily in Rainbow? e.g. click on tab1, add gadgets, click on tab2 and its empty, add different gadgets etc.]

[edit3: also, tabs arn't getting exported for me they don't appear in the dba but they are in the .gui file]

Cheers in advance.

Attachments

Login to view attachments
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 25th Nov 2004 06:26
I was looking at the examples in my Visual Studio .NET 2003 program, and a command that I would like to see here has to do with the Rebar. This is a command that can hold other windows as if they were toolbars, this allows them to be moved and cusomized. I will also put this in the Bug reports forum as a feature request.


Click the sig
outSync
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 25th Nov 2004 22:21
My email is variablestudios@yahoo.com. You should have two emails from me in your box

If you need anything more to make this work, please use the above email to contact me.

"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-16 18:07:12
Your offset time is: 2024-11-16 18:07:12