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
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 12th Jul 2005 22:48
Im having problems placing an icon on a button calling the winAPI with the HWND blue returns me from the button gadget. Is it possible this could be built into the next version of blue GUI? (If there is one...)

I am the lead programmer at red spark studios
http://www.redsparkstudios.co.uk
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 28th Jul 2005 04:01
Just a quick update - hopefully I will be able to get a new beta out shortly.

Just a few changes - notably control over word wrapping and label drawing.


BlueGUI Windows Plugin
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 04:17
Thans so much, Rob K! No word wrapping
This will save tons of work for my IDE (same applies to Keaz).
BlueGUI is awesome, really!

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 04:45 Edited at: 28th Jul 2005 04:46
[EDIT: Oops, double post due to the forums being down. Still, thanks a ton!]

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 06:25
Thx again RobK. Hopefully mine and Xolo's programs can show what DBPro/BlueGUI is capable of for a productivity app.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 06:47
Yes, DBp isn't nearly as bad as it's made out to be for making applications (Of course, BlueGUI is the major reason for that change - thanks Rob K)

-Xol

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 07:56
RobK,
I know some the WindowsMessages WM_XXX can be used via getevent and postevent. What about EditMessages EM_XXX can they be accessed the same way?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 08:11
Useful for undo/cut/copy through menu or toolbar
Keaz, if this is what you're trying to do:
Perhaps you should look at your own post
http://forum.thegamecreators.com/?m=forum_view&t=57824&b=18

Significant to this are:

and maybe:

I believe that these would return the item selected from an edit or richEdit right-click menu, and they might be able to be sent to perform the action, but only if BlueGUI posted messages are understood by Windows ???

Good luck,

-Xol

Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 08:35 Edited at: 28th Jul 2005 08:59
Actually the EM_XXX allow multiple levels and I think they are possible through postEvent. I'm going to have fun!

P.S. I'm going to add them to my post once I verify it.

[Edit]Update - So far it's causing my program to crash... ,but fear not I'll keep working at it.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 09:12
Good luck . (Although I'm still not sure what you're doing.)

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 29th Jul 2005 15:44
I've found how to send EM messages (it's the same way as WMs) However, I don't think that windows picks up on events sent with postEvent.
See the DarkBlue IDE wip thread.

-Xol

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 1st Aug 2005 02:50 Edited at: 2nd Aug 2005 17:06
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Aug 2005 01:11
yeah its currently at the top of the board and is highly important

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon xp 2600+, 1280mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 2nd Aug 2005 16:41
Things like that should be e-mailed to Rob K not posted on a semi-private forum. I informed him of this bug about a month ago.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Aug 2005 17:01
Sorry, I was just trying to help

[And I don't have access to email]

-Xol

IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 2nd Aug 2005 20:35
Quote: "semi-private forum"


If you are referring to rob k's bug board on his blue 2 site then i wouldn't call it semi private, as everyone who can access it has to have bought blue gui

If you are refering to these forums then that is why no detail about the bug have been said on this forum

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon xp 2600+, 1280mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 3rd Aug 2005 13:05
Sorry for the delay, I'll release the updates as soon as I get back from holiday (unfortunately bandwidth here is *very* expensive)

postEvent messages don't go through the windows messaging system, they just push events straight onto BlueGUI's event queue.

If you need to send messages, use the SendMessage API function (the function name is "SendMessageA" for use with CALL DLL I think). Remember that you have to pass the window handle (obtained using gadgetHandle) not the gadget's handle as returned by the createXXX functions.

EM_XXX messages are normal windows messages. In fact, using this you can get a great deal of control over gadgets (most kinds of gadget have messages for this).


BlueGUI Windows Plugin
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 4th Aug 2005 01:31
SendMessageA works - I've got some sinippets of its uses at the DarkBlue Beta IDE thread.

-Xol

xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 12th Aug 2005 19:41
Does anyone know how I can check if a button gadget is held down?

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 24th Aug 2005 02:47
Not directly. You'de have to check for mouse presses (MOUSE_CLICK-1) and then wait till mouse release (MOUSE_CLICK). It's sort of tricky though, I tried it.

Any news of the next update, Rob K?

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 24th Aug 2005 16:19
Sorry for the delay, I have had quite a bit to do since I returned.

The good news on the BlueGUI front is that I am now working through the reported bugs and feature requests.


BlueGUI Windows Plugin
Deadwords
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Canada
Posted: 24th Aug 2005 16:33
Hey Rob K, i discovered you awsome program a while ago, but will order it in the next week, i need an information.

Oh, btw, this plugin is one of the best ever made for DBPro. It looks awsome. My information i need is: If i understand, with this, i can code my own gui in DBPro or use the drag n' drop designer?

=-{SKaleX}-= Current Projects: -Insane Killer-=-Chaos Zone-
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 24th Aug 2005 19:51
Skalex - You can code the gui in DBPro by hand or use the rainbow program which comes with BlueGUI. It alows you to drag and drop gui gadgets. It's much faster to build a gui using rainbow and then fine tune the code in DBPro.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Aug 2005 13:58
You can either code the whole interface in DBPro, or you can design it using Rainbow, and then modify the exported code.


BlueGUI Windows Plugin
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Aug 2005 04:32
BlueGUI 2.05 Released - See Updates page on the BlueGUI Website: http://blue.robert-knight.net/?view=updates

ChangeLog:



BlueGUI Windows Plugin
Deadwords
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Canada
Posted: 27th Aug 2005 18:11
Thanks guys, Blue gui will be mine after a little 20$ to spend

=-{SKaleX}-= Current Projects: -Insane Killer-=-Chaos Zone-
Kjelle69
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: Sweden 150 km north of arctic circle
Posted: 27th Aug 2005 18:30
I tried to compile the Carlab application with the new 2.05 and all the gadgets dissapeared, (They were visible pre 2.05)

I had to create a panel to make the visible again, they were not visible when I only had them on the main screen ?

CarLab with 2.05 Gui implemented can be found here:

http://mtec.hostname.nu/projects.htm

-==The tame birds yearn, the wild ones dare to fly.==-
http://Mtec.hostname.nu
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Aug 2005 19:24
Quote: "I tried to compile the Carlab application with the new 2.05 and all the gadgets dissapeared, (They were visible pre 2.05) "


Label gadget backgrounds are transparent by default in 2.05, so they no longer have a grey background. If you need gadgets that behave like labels in previous versions, use panel gadgets instead.


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 27th Aug 2005 23:41 Edited at: 28th Aug 2005 00:05
I've just installed it but when I click on my combobox selections it's as if it's detecting menu clicks because it's displaying my different windows when it shouldn't. Any idea what's going on? Also what is the button_click event mentioned in the change log? I can't find it in the help.

edit - I think the gui.dba is missing the button_click too

I see there is a double click too, cool. Lots of nice updates

edit2 - after a quick look at my code I think "if eventType()=MENU_CLICK" is returning true even though I'm only clicking on my combobox selections

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Aug 2005 19:25
Quote: "- Selected text in edit and richedit controls can be changed in code using setSelText"

Wow, you've implemented so much; nice job . I guess I can take out some of my functins now, which will be nice (I had my own replaceSel function, but it will be much nicer to use BlueGUIs so I don't have to fiddle with memory.)

Thanks especially for the word wrapping control, I never could have done that on my own .

Thanks again,

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 29th Aug 2005 01:39
setdialogoptions 1,asc("|") is giving me an error when trying to compile.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Aug 2005 04:23
What error?


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 29th Aug 2005 13:10 Edited at: 29th Aug 2005 13:25
This is what I get. It's like as if the command doesn't exist in the keywords but i checked and it is and it highlights too. I tried it Blue IDE and the default editor.



Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Aug 2005 13:57
Can you double check the DLL was installed in the plugins-user folder correctly (ie. what is the modification date of the gui.dll file?)


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 29th Aug 2005 20:31 Edited at: 29th Aug 2005 20:39
Yeah the new dll is definately there. It's only 89kb, and the old one was 168kb. Can you run the command without any problems? Is anyone else having the same problem with the command?

Hmm I just checked the other new command setdialogowner and it's giving me the same problem, yet all the other gui commands are working. Could it be using some old version stored elsewhere?

Edit - Ok I got it working, sorry about that. I had the old gui2.dll in the compiler directory in case I needed to revert back to it. So I just renamed the file and it's working now. Strange how it was still using that file even though it wasn't in the plugins folder. I'm still getting the problem with the comboboxes opening my menus though. Is this a problem you can confirm?

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Aug 2005 19:20
Hi xtom,

I realised that I hadn't documented something about that. In your "if eventType()=MENU_CLICK" line, add the condition "and eventDataEx()=0" as well.


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 30th Aug 2005 19:41
Ahh thanks Rob, works like a charm now.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Sep 2005 15:43


Quick update on Rainbow - The 2.05 release (Rainbow 1.03) has a major bug (label rendering) and various minor bugs which have cropped up since the previous release. I am currently in the process of fixing these for release asap. I am also rethinking the choice of making labels transparent by default.


BlueGUI Windows Plugin
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 2nd Sep 2005 03:39
Thanks again for all the updates .

Quote: "I am also rethinking the choice of making labels transparent by default."

Actually, I'd agree. For even one program I'd have to change quite a lot to fix my would-be broken code. Perhaps something like setting the color of the label using setGadgetColor to -1 could make it transparent? Otherwise, a setGadgetColor 0 would also work because rgb(0,0,0) [black] returns bytes 255-0-0-0 while 0 returns bytes 0-0-0-0.

Also, I was wondering if it would be possible from a Windows standpoint to make the text of radio/checkboxes change color with setGadgetColor.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 6th Sep 2005 01:46 Edited at: 6th Sep 2005 03:01
Yes, please allow labels to be opaque... transparency is causing me troubles. Perhaps a command setLabelTransparency or something.

Here's what happens when I port IonRay to BlueGUI 2.05:


The line number labels don't become transparent to the panel below, but other apps and numbers!


[EDIT]
I changed them to labels and now it works, so I guess labels being transparent is fine. But I still don't know why the text was messed up in the above picture, while some labels work.
[/EDIT]

[EDIT2]
Actually, my other labels are weird now too. They are either completely transparent or setGadgetColor isn't working on the text color of labels anymore. The documentation for setGadgetColor isn't quite what it should be, either. I was hopeful when it said that it affected radios etc., but it only affects their background color; the foreground remains black. So what I did previously was put labels over the text; now I'll have to put panels.
[/EDIT2]

[EDIT3]
Sorry for the double post etc. I've got everything working now, although by bypassing transparent labels by making a function to handle panels the same way:

O is for opaque.

Thanks again for no wordwrap, it works wonderfully . I still haven't been able to try all it's new and great features.
[/EDIT3]

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 19:27:00
Your offset time is: 2024-11-22 19:27:00