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
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 10th Dec 2003 04:45 Edited at: 10th Dec 2003 09:29
Great stuff. This latest update just about doubled the value of the GUI for me. And it was already good.

I'm noticing SET GADGET FONT works for RICHEDIT gadgets to set them to a single font, but SET RICHEDIT FONT doesn't seem to work properly yet. It'll change the size of the font, and the style, but it won't change the actual font. In case you haven't noticed this one yet.

I was rereading the threads here and I don't -think- it's been mentioned before. There's a lot of stuff to navigate.

P.S. Just tested this out. TEXTAREAs and ALIGN GADGET TEXT work! Richedits don't seem to support it yet.
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 10th Dec 2003 12:30
@RobK
I´m missing commands to surpress autosync of the gadgets and resync the gadgets manually.
I think you said that you added those...
(Am I wrong?)

Would be very helpful for me...

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 10th Dec 2003 13:39
Quote: "I think you said that you added those..."


Not yet. I should be able to add them easily enough though.

Quote: "Did you manage to add an option to trap the X close button on the main window?"


Not yet, again, this shouldn't be too difficult.

Quote: " Richedits don't seem to support it yet"


Odd, seems to work here without problems, could be issues with differing versions of the richedit dll.

I'll sort these out this evening


BLUE GUI Plugin: http://blue.robert-knight.net / BLUE IDE [href]http://blueide.sf.net/ - Replacement editor for DBPro[/href]
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 17th Dec 2003 11:11
Hi Rob

I have problems to color a gadget. I add you some code to show. Is it a bug or did I do sth wrong?

And my other question. How can I set a "manual" CR in an textarea-gadget, So that the next string appears in a new line. I tried the usual chr$(10) and chr$(13), but nothing worked.

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 17th Dec 2003 21:23
Hi Dostej:

1. Image buttons don't support colours. I need to change them to work like flatbuttons so that they do (Windows limitation).

2. You need to use Chr$(13) and Chr$(10) in that order. I'm sorry I forgot to put this in the help file - I will do that asap.

Set gadget text 14, "This is a test" + Chr$(13) + Chr$(10) + "For line seperation"


BLUE GUI Plugin:http://blue.robert-knight.net / BLUE IDE http://blueide.sf.net-Free Replacement editor for DBPro
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 18th Dec 2003 16:14
Thx RobK

Here is a snippet for your collection, if you find it worth. Shows a simple way to select an item in a listboxgadget.

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Dec 2003 01:36
@ RobK,

As a special xmas bonus could you let your bgui users have a rough preview of the sort of things you are looking at implimenting in v.1.05 BGUI - an appetizer, if you will...
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 19th Dec 2003 12:24
@RobK
I´m not up to date what will be in 1.05
But here is a little suggestion for what will be use (at least for me)
- Listboxes and tables select and deselect an item per command
- the possibility to show images that are loaded/generated in/from dbPro (without file)

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Dec 2003 12:59
@Dostej

Loading DBP images is one of the items on my to do list. Unfortunately it is a bit slow though because DBP doesn't provide any means of getting a pointer to the image data AFAIK. You have to convert it to a memblock first then convert the data to BMP format and finally use Get Memblock Ptr() to send the location of the image to the DLL (eek!)


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 19th Dec 2003 20:01
@robK
look at ianM´sinterface lib. Under images there is a possibility to get a pointer to a DB image.
Or ask IanM for that topic (hot tip!)

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Karlos
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: United Kingdom
Posted: 21st Dec 2003 14:45 Edited at: 21st Dec 2003 16:14
Hi,
Is it possible to trap a loss of focus type event.
I have two edit boxes for user name and password and would like to be able to tab between them without too much effort as I'm dead lazy.

Cheers


ps excelelnt plugin - saved me a lot of dev time

If it ain't broke - try harder.
W2K Pro - Geforce2 MX400 64MB - Athlon 900
Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 22nd Dec 2003 09:51
@robK
Here are some other things that are (a) buggy or (b) poor documented.

- I cant set a path were open/save file dialog should start.
- In the editgadget I cant position the cursor with the mouse properly.

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 22nd Dec 2003 10:42
hi there!
i wrote a visual basic .frm importer for blue gui cause wysiwyg editors are easier to use as hardly calculating the positions

all those peoples who wants to use it look at the attachment...

ps. i dont know if its lawful allowed to use this importer but its not the hardest work to encode the files

Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 22nd Dec 2003 10:50
@RobK
Another question. How can I search in a web-gadget for a string?

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Dec 2003 13:09
Dostej,

Use Set Default Dir to set the default directory for Open Dialogs:



Can you post some code re: the edit problem?

If you want to search the source code of a web gadget, the easiest way is to download the HTML file using Get Internet File() then open and search it using the standard commands.


Xanatus,
Thanks for that - I will try it later today.


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 22nd Dec 2003 22:01
@Rob

I don't know if this has been asked for yet but I don't want to read 315 posts to find out!!

Is there any chance of an extra value on the flag for CHECK GADGET?

meaning:

CHECK GADGET GadgetID,2

The above command would change the checked value of the gadget. You have a similar thing for your menu plugin and this would make it easier to work between the two.

Thanks

GOD exists and his name is Jonny Wilkinson

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Dec 2003 23:08
Agreed - another option you can do at the moment is:

check gadget GadgetID,not gadget checked(GadgetID)


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 23rd Dec 2003 07:54 Edited at: 23rd Dec 2003 07:56
Xanatus,

Your code works great but it has one flaw right now. If there is a space in the caption of any of the gadgets in the frm file it does not get translated over when recreated with your frm importer code. I'm examining your code now and looking for a way to fix it. I think its something with your Explode function and how it ignores spaces. Let me know if you want some help fixing this, I'm gonna take a look at it some more tommorow and see if I can come up with a fix. Other than that though, great work on this man! It will really really come in handy and save me thousands of lines of code.

EDIT:
I forgot to mention that in order to see your imported gadgets you have to write a "show all gadgets" line after your ImportFRM call.

Dostej
21
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 23rd Dec 2003 10:01
@RobK
I added a piece of code to show the prob.
I cant set the cursor in the gadget between 'this' and 'is' (or anywhere else then to the end of the text)

GALACTIC X - A very early demo is now available - comments very welcome - http://www.angelfire.com/droid/galacticx/
also my IDE - jaPROe and some snippets
Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 23rd Dec 2003 11:47
@Xsniper You dont have to use the SHOW ALL GADGETS command. Only the Main Window have to be shown.

And about that Caption Issue... replayce the Explode() function:
(not tested but it should work)



Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 23rd Dec 2003 12:14 Edited at: 23rd Dec 2003 12:16
Hi Rob

I found antoher problem (sorry)
The scrollbar gadget doesn't register as being clicked on.

I am pretty sure the problem is with the plugin but there is also the possibility that it is my crappy coding so I have included a small nugget of code for you perusal.



GOD exists and his name is Jonny Wilkinson

Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 23rd Dec 2003 19:59
Xanatus,
The new explode function works perfectly! Thanks for writing that piece of code, this is going to be sweet

Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 23rd Dec 2003 21:54
tooks me 1 minute

Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 23rd Dec 2003 22:30
Xanatus,
I have noticed that colors of labels and form windows and such are not translated over through the importer. I imagine it would be relatively easy to include as long as the Blue GUI plugin supports them. I'll likely continue to improve upon this code you've posted because I like it quite a bit.

Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 23rd Dec 2003 22:48 Edited at: 24th Dec 2003 02:35
yeah... the problem i had was iam not been able to translate values like &H80000000&. That are intern windows values i cant translate to dbp. The color value is different and dependent from the windows layout which is selected.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Dec 2003 23:07 Edited at: 23rd Dec 2003 23:08
Wrong thread.



BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 24th Dec 2003 06:08
Xanatus,
Ya I noticed that too. VB does seem to use some kind of internal windows coloring system. At first I thought it might be like a Hex Color code or something but now I'm thinking maybe it isnt. I'm going to investigate this and see if I can come up with something.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 24th Dec 2003 15:58
Hi Dostej,

Yup - its a bug indeed, the edit issue only happens if the window is a child of the main DarkBASIC window. For some reason the messages seem to get swallowed somewhere along the pipeline.

Hi Scraggle,

Also a problem, I think the reason is that the scrollbar is made of several different windows.

@Xanatus / Xsniper

The frm importer is impressive - Once it has been ironed out a bit more may I post it on the Blue website and possibly include it in the GUI setup?


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Xsniper
21
Years of Service
User Offline
Joined: 29th Dec 2002
Location:
Posted: 24th Dec 2003 23:13
WOOT! I've successfully gotten color working in the FRM Importer. I've only got it set up for labels right now but I will get it set for everything by the end of the night. No code yet but thats because I have to go to a christmas eve party thing right now. Hopefully I'll have some updated FRM Importer code posted up here by the end of the night.

Rob K,
Right now the FRM Importer is definitely more of Xanatus's code than my own so we'll have to see what he says about putting it up on the Blue GUI site. I'm personally all for it, I think this code will help people out a lot with designing their GUI's. This sort of makes me want to write a little application in DBP for designing .frm files. That way people who don't own Visual Basic could still benefit from this importer.

Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 24th Dec 2003 23:37 Edited at: 24th Dec 2003 23:48
you can do with the importer what you want. thats why i posted it here

btw. the InStr() function can be removed. i didnt use it and forgot to remove it

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 25th Dec 2003 08:18
What is an FRM importer?

Actually forget that it's obvious! Instead, what is FRM?

GOD exists and his name is Jonny Wilkinson

Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 25th Dec 2003 17:33
FRM is the format for Visual Basic windows.

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 26th Dec 2003 21:05 Edited at: 26th Dec 2003 21:06
Thanks

Nothing I need to concern myself with then, I'm a DBP only man

GOD exists and his name is Jonny Wilkinson

schoenhs
20
Years of Service
User Offline
Joined: 29th Nov 2003
Location:
Posted: 26th Dec 2003 22:07
Hey i just bought this and i must say that its really great!!! it works perfectly for me, even updated the HTML source of the help files to give BGUI a nice little home but iw as wondering, im haveing a small problem,

i hide the dbp window and then create another window using BGUI, i then set the drawing window to the new one. when i am done with that i re show the dbp window and delete the BGUI window, at this point my program quits, when i try to reset the drawing window(thinking that that is my problem) it says that gadget 0 does not exist, any help would be mucha appreciated
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Dec 2003 01:25
Hi schoenhs,

Use Create With Parent / Create Without Parent. Set Drawing Window was a command left in from the Beta versions. I felt that the child/parent system was a much more accurate reflection of what is really happening.


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Dec 2003 09:10
Hi Rob

I think there may be a problem with SET GADGET IMAGE when I used it the program exited without an error message.

I have written a small morsel of code which demonstrates what I mean.



GOD exists and his name is Jonny Wilkinson

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Dec 2003 16:18
Hi Scraggle,

Sorry about that. The wrong object was being used for flatbutton images internally. Please go to the Blue website and re-download the v1.045 installer.


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Dec 2003 18:50
Rob

redownladed and reinstalled but I still get the same results.

Any other ideas?

Thanks

GOD exists and his name is Jonny Wilkinson

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 27th Dec 2003 19:22
Are you sure that the DLL was replaced correctly? - What are the modification dates for the gui_plugin.dll file?


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Dec 2003 20:57
No - they were still the old ones, so I moved them manually. Now everything is hunkey dorey thanks very much!

GOD exists and his name is Jonny Wilkinson

schoenhs
20
Years of Service
User Offline
Joined: 29th Nov 2003
Location:
Posted: 28th Dec 2003 00:50
thanks very much for your help, works perfectly now, great peice of work!!!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 30th Dec 2003 21:05 Edited at: 30th Dec 2003 21:06
Ordered my copy , can't wait for it to arrive (it's like Christmas all over again!).

Any idea how many copies you've sold now Rob? Or is it confidential information .

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Dec 2003 22:18
quite a few

In related news, I *finally* managed to get dbp images into image gadgets, so you'll have that for the next update (although currently it isn't really fast enough for realtime updates with large images). Currently its a bit messy (make memblock from image, pass the memblock pointer to the DLL), however I hope to make it as simple as Set Gadget Image GadgetID,ImageIndex for the next release.


BlueGUI Plugin:http://blue.robert-knight.net / BlueIDE http://blueide.sf.net-Free Replacement editor for DBPro
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 30th Dec 2003 23:04
Just what I need . I never figured out what the difference between images and pictureboxes were (apart from having a border).

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 31st Dec 2003 00:04
@ RobK,

... and could you get the Folders gadget working for W98? - I know we can use the Treeview jobbie but dosnt look anything like as sound...

possible?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 31st Dec 2003 15:01 Edited at: 31st Dec 2003 19:45
Hi Rob,

Any chance of increasing the versatility of QUESTION MESSAGE?

At the moment the return values are:
0 - No
1 - Yes
How about 2 - Cancel?

Or better yet a whole new command where the coder chooses how many available answers there will be and what they are. For example:

return value = OPTION MESSAGE(question$,option1$,option2$,option3$,option4$)
Where option2 - option(whatever) = optional

So the above example could be used like this:

answer = OPTION MESSAGE("This will exit without saving - Do you want to save first?","Yes",No","Cancel")

What do you think?

[Edit]
Also could the CREATE GADGET RADIOBUTTON be change so that it has a caption in much the same way as SET GADGET CHECKBOX does?

Thanks
[/Edit]

GOD exists and his name is Jonny Wilkinson

Xanatus
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 31st Dec 2003 20:48 Edited at: 31st Dec 2003 20:49
Scgraggle that isnt possible. The only way to choice your own answer possibilities is to create your own question windows.
Standard message popups are created by the winapi and cant be modified. (thats why the answer buttons are always in the language like your os)

possibile answers:
OK
OK/CANCEL
ABORT/RETRY/IGNORE
YES/NO/CANCEL
YES/NO
RETRY/CANCEL
CANCEL/TRY/CONTINUE

Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 31st Dec 2003 23:17
Rob,

I really need a Node Exist() command !

If you could fit it into the next update I'd be grateful. I can't continue my work without it.

Thanks !

--Mouse: Famous (Avatarless) Fighting Furball

I am the chainsaw paladin.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Jan 2004 10:40
Quote: "possibile answers:
OK
OK/CANCEL
ABORT/RETRY/IGNORE
YES/NO/CANCEL
YES/NO
RETRY/CANCEL
CANCEL/TRY/CONTINUE"


Even these options would be good. All we have at the moment is YES/NO

GOD exists and his name is Jonny Wilkinson

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 1st Jan 2004 16:30
Hey Rob, do you have my order yet (Joseph Thomson)? I know its new year so I'm not rushing you. I'm just checking you've got my order as it's been nearly 48 hours. Thanks.

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM

Login to post a reply

Server time is: 2024-11-22 19:35:34
Your offset time is: 2024-11-22 19:35:34