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: 1st Feb 2005 02:54
Quote: "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?"


Yes, there is a 255 character limit. Increased significantly for next update.

Quote: "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."


I am still waiting for the SDK update at the moment.


BlueGUI Windows Plugin
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 1st Feb 2005 05:23
Whoohoo, roll on the next update
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 1st Feb 2005 22:00
Hi ya,

Ok, for me browser, I've got IE6, the actual page I get when I click the link is...

http://www.robertknight.me.uk/blue2/site/includes/docs/cmdcreateindex.html

p.s. I think I'll use the tree stuff, but if that doesn't do it for me I'll drop you a cut down.

Cheers
freight hopper
20
Years of Service
User Offline
Joined: 26th Dec 2003
Location: Just beyond the Dunsmuir yard limits
Posted: 8th Feb 2005 05:13
Some observations on radio buttons (RB) for anyone that has had difficulty with them - I spent more time trying to figure this out than I care to admit.

The help mentions that you should not make them children of frames. Of the alternates suggested, I prefer the heirarchically simpler making the RBs children of a (sub)panel and making a sibling frame, also child of the panel, to enclose them. The panel should be borderless and the frame alignment should be all client. If you do this in rainbow, the frame will hide the RBs. But compiled you can see them.

It gets a little more difficult if you try and add some "framed" RBs to a complicated interface long after it has evolved away from the initial Rainbow version. The trick here is that the RB and frame locations are now relative to the panel. Here is some sample CreateUI() code:


Hope this helps.

Also I seen mention of a Raibwow 2.0. My BlueGUI v2.01 install leaves me with a Rainbow 1.0. Did my install go awry?

- hunched-over dude on lead track 2 with a bedroll and plastic water jug
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Feb 2005 01:38
I have updated the Rainbow "Export DarkBasic Code" function to also export a function for deleting all of the gadgets...

http://forum.thegamecreators.com/?m=forum_view&t=48832&b=18

BatVink
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Feb 2005 16:41
@LamptonWorm

I have sorted the docs out now.

@freight hopper

I normally setup radio buttons inside a panel which is a child of the frame. This means that as long as the panel is sized to fill the frame, it is easy to add in other radio buttons.

The hierarchy goes something like this:

Frame -> Panel -> RadioButtons

This also makes it easy to have different groups of radiobuttons within the same frame without the user seeing any divides.


BlueGUI Windows Plugin
GoPostal
20
Years of Service
User Offline
Joined: 9th Sep 2004
Location:
Posted: 21st Feb 2005 04:01
One suggestion I would like to make, for the next release of Blue IDE, could you incorporate the Blue GUI project configuration utility into BlueIDE, because it is a pain to go through the motions of opening it.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st Feb 2005 04:28
Assuming you are using the latest version (RC4), just place a shortcut to the BlueGUI project creator in the BlueIDE tools folder. Go to Tools > Programs > Open Programs Folder in the IDE. Create a shortcut there and then restart the IDE. It will then be available in the Tools > Programs menu.


BlueGUI Windows Plugin
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Feb 2005 04:24 Edited at: 22nd Feb 2005 04:26
Rainbow update released - get it from the Updates page on the BlueGUI 2 website.

Changes:

=== Version 1.02 ===

- Menus with more than 3 tiers are now exported correctly
- Loading large .gui files now faster (improved setAutoUpdate command in DLL)
- Closing large .gui files now faster
- Creating a new layout after closing a multi-windowed layout no longer causes size-markers to disappear
- Item Editor now displays previous caption when changing an existing item
- Double-click edits existing item instead of Right-click in Item Editor
- Editor now switches between SYNC ON mode when it has keyboard focus, and SYNC OFF mode when the user is working
with another application.

- Added Border property to Window Gadgets - Windows can be set to, Normal, Fixed, ToolWindow (Normal) or ToolWindow (Fixed)
- Gadget items for listboxes, comboboxes and tabs can now be saved, loaded and exported.
- Item Editor can Import and Export lists (Access via item list context menu)
- Layout Tree no longer loses focus after selecting a gadget in a different window (setGadgetVisible's flag parameter can now be
2 for 'Show But Don't Activate')
- Selecting a gadget from the combobox now switches to that gadget's window where necessary
- Positioning of gadgets using arrow keys now only works when the editing area window has focus
- Double-clicking on boolean values in the Property Selector (eg. Initially Enabled and Initially Visible) toggles them.

*Notes about the Item Editor*

- Due to a DarkBASIC Pro bug with WRITE STRING, it is not possible to save gadgets which have a large number of items. You
can however export .dba code for layouts containing gadgets that have a large number of items.

If Rainbow encounters problems when saving a gadget's details to the .gui file, it will display a message warning the user and
continue saving the other gadgets.

===


BlueGUI Windows Plugin
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 23rd Feb 2005 00:20
no source?

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, 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: 23rd Feb 2005 03:15
No fears, I'll upload that later


BlueGUI Windows Plugin
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 23rd Feb 2005 04:42
good good

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 28th Feb 2005 01:56
Quote: "- Due to a DarkBASIC Pro bug with WRITE STRING, it is not possible to save gadgets which have a large number of items. You
can however export .dba code for layouts containing gadgets that have a large number of items. "


When I had problems with WRITE STRING I just wrote a function that wrote the string a byte at a time with WRITE BYTE.

Quote: "this is not a quote"
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 28th Feb 2005 05:05
I thought there was a reason why I hadn't done that - but I might be mistaken.


BlueGUI Windows Plugin
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Feb 2005 21:41
Is theer any way to make TABbing work? I just get an annoying "Ding!" and no response when I try to tab between gadgets.

BatVink
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 1st Mar 2005 01:07
mabye you could add a set tab order command

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 5th Mar 2005 21:56 Edited at: 5th Mar 2005 22:02
Hello,

If a window is resized, i'd like to know if it's possible to resize gadgets dynamicaly. I mean is it possible to resize them without waiting the end of the event.

also, the splitter gadget is missing me a lot.

Thanks for answers.
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 6th Mar 2005 01:34
you would just have to wait for the event, but you won't notice the lag unless your machine is a 133

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 6th Mar 2005 02:20
Thanks
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 2nd Apr 2005 04:22 Edited at: 4th Apr 2005 21:01
Hello,

I've some problem with my old post : resizing. My problem is when I use many gadgets and try to resize them, it's simply dont work. I'd like to know If it's possible to have a simple sample snippet to be sure that I'm no doing something wrong ( for instance, something with paint or auto update).

Thanks in advance.

Edit : It's clearly a problem with panels...
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Apr 2005 23:35
Can you show me the code you are trying to use at the moment?

Resizing a gadget is simply a matter of doing resizeGadget(gadgetHandle,width,height)


BlueGUI Windows Plugin
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Apr 2005 23:38
I have now had a chance to install Update 5.8

I had to make a few small modifications to the Rainbow source code to get it to compile, it seems that there are some bugs relating to comments in the new version, fortunately nothing fatal.

Please let me know if anyone experiences problems compiling under U5.8


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 5th Apr 2005 00:03 Edited at: 5th Apr 2005 00:16
Oh, I didn't see that there was a other constant for event GADGET_SIZING and GADGET_SIZE. works fine now .

Anyway, If you can tell me what's the difference between them..

Thanks

Edit : Too fast, seems to be the same. I'm working on an example code ... It's a problem with GADGET_SIZE. Resizing with the window anchor works but not with the maximize button.
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 5th Apr 2005 00:46 Edited at: 5th Apr 2005 00:47
Here's a code (not constant file used):



try resizing the window it's quite strange.
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 5th Apr 2005 23:13 Edited at: 5th Apr 2005 23:16
Hello,

I've found an other error with u5.8 this time.



myString is always <> null, even if you're trying to cancel the open dialog.

There's a thread in the bug board about string init. but here it's not working any
way.

Edit : Using not operator like this not myString = "" make the program works.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Apr 2005 23:39
Window resizing is modal, which means that whilst it happens your DBPro code stops executing. Unfortunately there is nothing I can do about this.


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 5th Apr 2005 23:47 Edited at: 7th Apr 2005 02:27
I don't understand well, sorry. I'm ok that I must wait the end of the event before resizing gadgets (fiting the window's size), but here I can't resize it...So I can't execute part of the program (referenced to the resize) when a resizing event occur ?

edit : If so, GADGET_SIZE or GADGET_SIZING are useless. (I don't want to dynamicaly resize gadgets, but do it just after the event is done)

for the second bug it's certainly a problem with dbpro.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Apr 2005 19:14
This modified code for the Window gadget example demonstrates use of the GADGET_SIZE event:




BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 7th Apr 2005 20:54 Edited at: 7th Apr 2005 20:57
Hello,

A/ Can you modify my previous code to make it run please?

B/ If you add a Toolbar to one window, the prog don't works :


Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Apr 2005 21:15
A)

I changed the main loop to this:



B)

That is because the event queue is flushed whenever a gadget is resized, including the toolbar. If you move flushEvents into the "if normalWindow" or "if toolWindow" branches, it should work.


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 10th Apr 2005 02:55
Thanks for answers Rob. I'll have a look on this when I can.

Cheers.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Apr 2005 18:31
Any chance of the source for Rainbow 1.02?

BatVink
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Apr 2005 03:49
Hi BatVink,

Login to the BlueGUI website, then download the latest sources from this link:

http://www.robertknight.me.uk/blue2/site/index.php?view=download&file=downloads/rainbow_src_21_04_05.zip


BlueGUI Windows Plugin
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd Apr 2005 06:28
Thank You indeedy.

Currently have a fantastic GUI for a dev tool, with a panel of sliders, works really well. More details when it's finished.

BatVink
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 22nd Apr 2005 13:58
Hello all User ......


Tanks Rob K Very Good Program ....

add in rainbow this Functions

Samples:

Visual Basic Tipe System ....


1 - Place Button ,2 - Duble Clik and add the code in Button or other Object
Add Print or other code dbpro ...,
it would become therefore Truly Optimal, Could be said Nearly Professional...

---------------
however of new it compliments yours plug in appeals to a lot to me, however if you would add this function that or described over he would be Seeds Professional...
------------

------ italy ------
comunque di nuovo complimenti il tuo plug in mi piace molto , comunque se aggiungeresti questa funzione che o descritto sopra sarebbe Semi Professionale ...

-------------------

Send Plese The other News Via My Email ....
( Via Newsletter ... System )

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Apr 2005 01:50
DarkDomy,

the attached source helps. It creates a function called ProcessGUI() when you export. This has a MOUSE_CLICK operation for all of your controls.

BatVink

Attachments

Login to view attachments
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 24th Apr 2005 07:15
Hello,

I can't find the transparent color for TOOLBAR image button. I thought it was the first upper corner pixel one ... don't works.

Thanks
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 24th Apr 2005 09:45
Hey RobK, Looks like blue is coming right along, with lotsa new features on the way

I did have one question though, it seems that there isn't a way to real check when the enter key or tab key is pressed in a text box, I'll go browsing through it again, but it doesn't seem that there's an event that I can use, unless there's one burried somewhere that I can't find.
If it helps, i'm working on an editor and I need to be able to update objects acording to the number the user types into the text box. It's simply impractical to have the user type in a value and then have to click an "update" button multiple times when trying to narrow down what he/she wants the value to be.

Thanks for making this awsome plugin!

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: 24th Apr 2005 20:32
Quote: "I can't find the transparent color for TOOLBAR image button. I thought it was the first upper corner pixel one ... don't works. "


It is, but you have to use 256-colour images.


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 24th Apr 2005 21:20
oh,

silly question, thanks Rob
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 25th Apr 2005 04:39
Rob K? did you see my question?

Quote: "
I did have one question though, it seems that there isn't a way to real check when the enter key or tab key is pressed in a text box, I'll go browsing through it again, but it doesn't seem that there's an event that I can use, unless there's one burried somewhere that I can't find.
If it helps, i'm working on an editor and I need to be able to update objects acording to the number the user types into the text box. It's simply impractical to have the user type in a value and then have to click an "update" button multiple times when trying to narrow down what he/she wants the value to be.
"


CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Apr 2005 18:02
CPU, I think you have to use the standard INKEY$() or SCANCODE() to capture the Tab Key. it needs a little more ork to make it a smooth experience for the user.

AFAIK, there is no "automatic" way to tab between controls

BatVink
Scorpio Midget
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Nottingham
Posted: 30th Apr 2005 18:45
Rob,

Rainbow is an truly excellent development tool, many thanks for releasing it.

Couple of requests for future versions:
1. When dragging a gadget from the top bar into the main window, it would be great to change the cursor to that gadgets icon.
2. New option in 'edit' -> Set main window bitmap. This would allow me to position the gadgets over the top of a reference bitmap my application is using.

Keep up the good work

Scorpiomidget
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 1st May 2005 22:25
Hello,

Another question. I've noticed that the label gadget have a base back color same as the window standard color. I'd like to know if it's possible to change this color, or if I can make it tansparent. Labels look awful if you're using them in front of a tab for instance (with Xp style).

Thanks.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st May 2005 22:39
@Tartopom

Use setGadgetColor to change the background color of label gadgets.

Syntax: setGadgetColor gadget,backgroundColor,foregroundColor

eg:

setGadgetColor label,RGB(255,0,0),RGB(0,0,255)

@Scorpio

I like those suggestions, I'll see what I can do.


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 2nd May 2005 00:09
Thanks Rob.
Scorpio Midget
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Nottingham
Posted: 2nd May 2005 21:58
In the process of converting my client/server applications over to Blue2 i've made a list of bugs/features that would be great in your next version:

(this list is long but that's because i can see the power of this DLL and so want to make it a key part of my development process, a few more tweaks and this will be a truly outstanding tool for DB developers.)

DLL:
Listbox/Combobox -> insertitem GadgetID,itempos,string
Listbox/Combobox -> sort gadgetid,direction (alpha sort Ascending or descending)
Listbox/Combobox -> ensurevisible GadgetID,itempos (scroll the list so the item is visible)
Listbox/Combobox -> setitemcolour GadgetID,itempos,colourRGB

Rainbow - uiEdtor:
Shift+Cursor = alter size of gadget

Change gadget colours in editor,including transparent background for frames/lables.

Option in frame gadget, so 'label' is aligned with the frame outline as per standard windows control.

Saving does not preserve gadget order (items i sent to back are now on top again).

Allow multiple gadgets to be selected and moved together.

Drag gadget - Show gadget as well as the bounding box.

Grid - Show/Hide [option for before or after the gadgets are displayed]

Background - Bitmap

Right click gadget - size 2 content

align gadget selction - center horizontal / center vertical in window

add recent files list on file menu.

when opening a saved gui, reset the main window to the size it was last edited at.

when resizing main window, move the gadget properties window so it's aligned down right side.

edit box gadget - max length property, allowed characters property.

show gadgets which are not initially visible as greyed out.

gadget -> send 2 back

gadget -> copy/paste ... just increment a number at end of gadget name

grid -> grid spacing size

export -> direct 2 clipboard (no file save)

Other things i noticed:
selecting a different property (and enter wasn't pressed after last edit) loses the setting, very annoying.

dragging a gadget to a parent does not always work ... couldn't pinpoint the problem but needs looking at (gadgets tree view).

dragging a parent item in the window should auto drag the children with it !

add a status bar that shows current gadget name, position and size, very useful when positioning.

if an item is sent to front or back, all it's children should be affected in similar way.

Scorpiomidget
Scorpio Midget
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Nottingham
Posted: 2nd May 2005 22:11
Another modification that would be very useful:

Default naming of Gadgets !

Instead of Gadget1,Gadget2 etc do something along the lines of:

ui[Window name][Gadget Description][gadget number]

So when a users opens the rainbow (or clicks NEW) it asks for the window size and the window name.
For example i'd type 800,600,Login

Then i drag out a label gadget, it auto gets the name
uiLoginLabel1

Then i drag out an edit gadget, it auto gets the name
uiLoginEdit2

Then i drag out a label gadget, it auto gets the name
uiLoginLabel3

Then i drag out an edit gadget, it auto gets the name
uiLoginEdit4

i'd probably rename these manually to uiLoginLabelUsername, uiLoginEditUsername, uiLoginLabelPassword,uiLoginEditPassword

the editor is helping to keep the gadgets named in a structued order, and also every new window of gadgets gets its own unique starting description, this greatly helps when you start using the gadgets in DB.

Scorpiomidget
Scorpio Midget
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Nottingham
Posted: 3rd May 2005 17:09
setgadgetcolor is missing from the gui2.ini file.

you can add this line to the ini file, as the 'setgadgetcolor,html' is already there.
setGadgetColor=gui2_help\general\setGadgetColor.html=handle gadget,rgb back color,rgb text color

Scorpiomidget
Scorpio Midget
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Nottingham
Posted: 3rd May 2005 17:14
@ CPU
Quote: "Quote: "
I did have one question though, it seems that there isn't a way to real check when the enter key or tab key is pressed in a text box, I'll go browsing through it again, but it doesn't seem that there's an event that I can use, unless there's one burried somewhere that I can't find.
If it helps, i'm working on an editor and I need to be able to update objects acording to the number the user types into the text box. It's simply impractical to have the user type in a value and then have to click an "update" button multiple times when trying to narrow down what he/she wants the value to be.
""


scancode() 15 is TAB, and 28 is ENTER

An example of how you can tab between gadgets follows:
(et=eventtype and es=eventsource)


Scorpiomidget

Login to post a reply

Server time is: 2024-11-16 18:10:24
Your offset time is: 2024-11-16 18:10:24