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.

Author
Message
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 1st Jul 2009 04:47 Edited at: 4th Aug 2009 15:44


Hi. i Added new commands RK plugin Bluegui ( updated: 04/08/2009)

http://www.robertknight.me.uk/blue2/site/ (original files, documents, helps, key/user) > you need gui.ini <

Install quide

1. Download gui2_v2.055.rar (attachment link)

2. unzip
gui2.dll -> The Game CreatorsDark Basic ProfessionalCompilerplugins-user
Gui2_addons.ini -> The Game CreatorsDark Basic ProfessionalEditorKeywords

3. Start Ide and make code

Command:

setPassword handle gadget, bool pass
setNumberOnly handle gadget, bool numberOnly // only 'on' mode
SetDialogPosition int x, int y
CreateDateTimePicker(int x, int y, int width, int height, handle parent)
UnresizeableWindow // this set mainwindow unresizeable
RemoveMaximize // this remove mainwindow maximize button
RemoveMinimize // this remove mainwindow minimize button

use:

SetPassword handle gadget, 1 // this set password on
SetPassword handle gadget, 0 // this set password off

newGadget = CreateDateTimePicker(100,100,200,30, 0)

changes:


rename gui2_web.dll to web.dll if want use webbrowser command

Example:


SetDialogPosition



Fix:

Editbox::scrollbar fixed

Now can load image include media exe. Works only 32bit desktop (Important - You must have a memblock command somewhere in your program else it won't work)

Biggest problem is HUGE exe file

[DOWNLOAD] https://forumfiles.thegamecreators.com/download/1791547

by Humanoid (Bluegui fan)

more commands maybe someday

Suomi Finland PERKELE!

Attachments

Login to view attachments
N3wton
14
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 1st Jul 2009 10:40
Finally!

This has been something which has always been something i wanted from bluegui thanks allot!

I'm gonna test this now!

Yours
N3wton

Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 1st Jul 2009 11:21
Great, but... are you really allowed to release that?

N3wton
14
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 1st Jul 2009 11:24
i cant see why he couldnt, i mean the bluegui source code is avaliuble to all bluegui customers and you still need a licence key/name thing to compile any blue gui project with his dll so you can only use it if you've bought it

Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 1st Jul 2009 13:00 Edited at: 1st Jul 2009 15:09
hmm, i broke listbox scrollbar, must fix it

if somebody found bugs, then tell if can fix that

edit: Editbox scrollbar has fixed. New dll found download link up attachment

Suomi Finland PERKELE!
Problems
15
Years of Service
User Offline
Joined: 28th Apr 2008
Location:
Posted: 1st Jul 2009 14:22
at me not work

where can i get id and password?

DarkBasic Master
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 1st Jul 2009 16:43
unless RK let permission key/user sharing or delete ask, i dont share it, or delete key/pass asking from dll NO!!! it is my answer. Sry

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 1st Jul 2009 17:56
Hi!,
nice commands you have added to blue-gui.
i have a feature request, (if it's not a problem).

I like Blue very much.And have been working with a friend of mine for a while and have been thinking to buy more licenses and use it extensively.

My biggest problem using it is the speed update of events and
that some events get lost (they never happen) and there isn't some type of stack of events to take them from. This is a big issue because sometimes you have to clik many times for an event to happen (specially in old machines).

There is a way to improve events?.
There is a way to keep the events that happened before in some place to use them later (As soon as possible)?

Thanks.
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 1st Jul 2009 18:09
Quote: "that some events get lost (they never happen) and there isn't some type of stack of events to take them from. "

I've never had lost events (that I know of). How are you utilizing getEvent Is it in a loop until eventType()=0 ?

This is what I do, I have another method but it is commented out because I have not had any display issues or slowness from it.


I'm not a real programmer but I play one with DBPro!
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 1st Jul 2009 18:18
can show code what you use?

meaby that help





Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 1st Jul 2009 18:36
Hi,
very fast answers.
Give me like 10 hours. In this momment i dont have access to blue gui.
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 2nd Jul 2009 07:11
Hi,
@ tiresius
I don't process the events the way you do. Maybe is that what's wrong. I don't block the app with "eventType()=0"
Is there a reason to block the application like that?

@Humanoid: I don't use flushEvents. I tried in some places with positve results (After each event type) and some please without positive results (before "loop" in the main do loop, "one flush for many event types"). Is there a especial rule to use flushEvents?

I use the code this way:

tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 2nd Jul 2009 07:37
I don't block the application, I just let ALL the BlueGUI events process before I go on to do other DBPro type things, like draw the screen. That guarantees I get all the events, as far as I know. I never use FlushEvents. I'd assume this is only helpful when switching contexts (modal windows or dialogs) ?

I'm pretty sure Humanoid was showing you the wrong way to receive events. FlushEvents clears all the messages (read or undread) and then they are lost.

A question for you is why are you "processing events" twice? You can only process an event that you've gotten from getEvent. And it is reading off a queued list of events. I would say use something similar to my code and see if it fixes your problem.

I'm not a real programmer but I play one with DBPro!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 2nd Jul 2009 13:21 Edited at: 2nd Jul 2009 14:03
Ok.
I process events twice but the routine only gets the
events once with getevent.
I will try your solution and tell you the results.

EDIT: I tried your solution and it works pretty pretty well not an event lost once..
Thanks for the info. I have been making this mistake for a while (Like a year ago, or more ), and tried many workarounds, that i see that weren't necessesary....
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 2nd Jul 2009 17:16
I think I grabbed it from a BlueGUI example file but don't remember which one. Glad it works for ya.

@Humanoid - Are you going to be doing more work in BlueGUI (such as better Vista support with list boxes and a working manifest.exe type thing)? There have been grumblings lately about how it works in the new OS, although I haven't run into them personally yet.

I'm not a real programmer but I play one with DBPro!
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 2nd Jul 2009 18:01 Edited at: 2nd Jul 2009 18:08
Added new command:

SetDialogPosition int x, int y

>download attament link<

@tiresius: i do what i can. Maybe, mayby not :S takes time and i have my own dbpro project what need do and that takes time too

Suomi Finland PERKELE!
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 5th Jul 2009 11:45
Maybe this help -> Download <-

Suomi Finland PERKELE!

Attachments

Login to view attachments
Clbembry
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Minnesota
Posted: 6th Jul 2009 05:11
Can you still order BlueGUI?

sladeiw
14
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 7th Jul 2009 00:44
Nice to see somebody continue development of this great dll, and a handy couple extra commands there

Be really impressive if you can fix a few bugs j/k
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 8th Jul 2009 15:43
Added new command:

CreateDateTimePicker(int x, int y, int width, int height, handle parent)

-> download < -- first post

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 8th Jul 2009 18:27
wow.
YOu are advancing pretty fast.

I have another request.

When you create an application in a window in darkbasic you usually see that when you have your machine in a higher resolution and maximize the application, all image, objects e.t.c. in DBPRO get maximized as well, however, when you have bluegui objects inside the Darkbasic window, they don't get scaled as well, and preserve their original size. Is there a way you can fix that?.

Thanks.

AlfaX.
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 8th Jul 2009 18:57
can you do example code?

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 8th Jul 2009 19:14
of course.
Give me 8 hours until i have access to blue-gui.
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 8th Jul 2009 19:29
ok

Suomi Finland PERKELE!
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 8th Jul 2009 23:47
Alfa X do you want panels and gadget positions to change along with the DBPro window size? As far as I know we don't have relative panel sizes (like a flag that says "full height"), we have to say 'y pixels' to set it that way.

You can have code checking for a resize window message when processing getEvent(), I don't remember what it's called but there is something for it. Then resize the affected gadgets accordingly.

If Humanoid can get BlueGUI to do it that would be awesome. For now what I'm doing is making the window non-resizable. Just sizes it based on a config file.

I'm not a real programmer but I play one with DBPro!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 9th Jul 2009 15:47
Hi,
here is the code, create the project in window mode:

Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 9th Jul 2009 15:56
could you tell a little more, what would you do
. To, therefore, that the scrollbar is just the right side, right? and the window size according to you?

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 9th Jul 2009 16:24 Edited at: 9th Jul 2009 16:25
Ok.
You create the above project in window mode.

Quote: "wow.
YOu are advancing pretty fast.

I have another request.

When you create an application in a window in darkbasic you usually see that when you have your machine in a higher resolution and maximize the application, all image, objects e.t.c. in DBPRO get maximized as well, however, when you have bluegui objects inside the Darkbasic window, they don't get scaled as well, and preserve their original size. Is there a way you can fix that?.

Thanks.

AlfaX."


If you change the size of the window, the box change its size accordingly to the size of the window. The Scrollbar gadget of blue GUI can't do the same and preserves it's size and position relative to the window. The favor i ask, is if it's possible to Fix that or have a parameter that makes possible to scale the window.

Thanks.

AlfaX.
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 9th Jul 2009 18:45 Edited at: 9th Jul 2009 19:36
@Alfa x: i not sure how do that.

Added new command

UnResizeableWindow *no command*

@Alfa x: meaby this help



or




->Download<- first post

Suomi Finland PERKELE!
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 10th Jul 2009 20:25
Added commands:

RemoveMaximize // this remove mainwindow maximize button
RemoveMinimize // this remove mainwindow minimize button

-> Download <-- first post

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 10th Jul 2009 22:23 Edited at: 12th Jul 2009 15:10



Thanks. i will try it out.
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 14th Jul 2009 03:18
Hello!!!

Months or years ago I reported in the official site of Robert Knight that the BLUEGUI2 extension couldn't access media stored inside the executable, so I had to keep images somewhere in folders.

Can you fix this?

Thanks!

Kind regards,
N3wton
14
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 17th Jul 2009 02:02
Also wondering if its possible to get an
OnProgramClose procedure?

E.g. if someone preses escape yes you can disable escape key and run your own quit program function, but if someone just clicks the X in the corner your quit program function wont be run, so is it possible?

Yours
N3wton

Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 17th Jul 2009 02:48 Edited at: 17th Jul 2009 02:49
you can do that



Suomi Finland PERKELE!
N3wton
14
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 17th Jul 2009 03:12
oh well that works

but now my eventType()=MENU_CLICK doesnt but if i remove the line
main = CreateGadgetFromWindow(mainwindow()) then it does... any ideas?

Yours N3wton

tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 17th Jul 2009 04:35
Hey Humanoid-

There's been a longstanding problem that has bugged me and was wondering if you could look into it. The function setButtonImage gadgetNum, image only works on Desktops which are 32 bit depth. If it is another kind (16 bit) the buttons get corrupt and can crash. I believe there is a similar problem with the Canvas gadget.

Is there any chance you might be able to look into that? Right now I have code to boot the user out if their desktop is <> 32-bit depth but that seems rather clunky and unprofessional. I know you're not responsible for the wrapper and how it works but just throwing it out there. A workaround for the buttons is to load the image directly, not use a DBPro image. I don't think there is a workaround for the canvas. If that helps you narrow it down. Thanks for any help.

I'm not a real programmer but I play one with DBPro!
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 17th Jul 2009 05:02
@N3wton: menu to close focus for some reason ... I try to explain the problem

Suomi Finland PERKELE!
Alfa x
17
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 20th Jul 2009 06:46
Hi,
I was wondering if t's possible to put border to some gadgets, like edit Boxes or labels. (I think that this doesn't exist now)

Something like this.

setGadgetBorder handle gadget, size, color

Thank you so much.

AlfaX.
Mooney1
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 27th Jul 2009 08:19
I'm new at using BlueGUI. I saw in this post the addition of new commands, especially UnresizeableWindow. How do you make thses new commands work in BlueGUI? What do you have to install or change to get the new commands working in the the application?
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 27th Jul 2009 15:12 Edited at: 27th Jul 2009 15:13
Install quide

1. Download gui2_v2.055.rar (attachment link)

2. unzip
gui2.dll -> The Game CreatorsDark Basic ProfessionalCompilerplugins-user
Gui2_addons.ini -> The Game CreatorsDark Basic ProfessionalEditorKeywords

3. Start Ide and make code

Suomi Finland PERKELE!
Mooney1
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 27th Jul 2009 15:46
Thanks for a quick reply, Humanoid. I guess what threw me off is since I'm new at this I didn't know what to do. After looking back at the beginning posting I noticed the install info but just now noticed the download link. I must of somehow missed it the first time threw, ugh. But that was it...thanks again.
sladeiw
14
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 27th Jul 2009 18:12
Quote: "
The function setButtonImage gadgetNum, image only works on Desktops which are 32 bit depth.
"


Another thing that bugs me with setButtonImage is that the xp styles seem to disappear when using images. (on that button) Don't suppose there is a workaround for that issue, or is it intended behaviour?
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 28th Jul 2009 13:40
Hey hey!

There is a kind of bug in BLUE GUI 2:
The text I display on a window using the TEXT X,Y,STRING$ becomes a little blur.

Can this be fixed?

Thanks!

Kind regards,
sladeiw
14
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 28th Jul 2009 14:31
Quote: "
There is a kind of bug in BLUE GUI 2:
The text I display on a window using the TEXT X,Y,STRING$ becomes a little blur.
"


That's dark basic not BLUEGUI2. If the window size dosen't match the DB screen size then it is stretched to fit which results in blurring. (esp when it's scaled by fractions)

To keep text nice in bluegui, always use createLabel or some other bluegui function such as an edit box that is made un-editable or similar. You can still change the contents and move it etc after displaying.
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 28th Jul 2009 14:38
@Marco A G Pinto: You can use http://www.dbdepot.co.uk/d3dfunc.html text. It is sharper.

Suomi Finland PERKELE!
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 28th Jul 2009 15:34
@sladeiw

Thanks!!!

It seems to work

Kind regards,
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 29th Jul 2009 16:11 Edited at: 29th Jul 2009 16:34
ahhhh

sladeiw!!! Humanoid!!! And others!!!

I have started using createlabel to get rid of the blur.

But I can't change the colour of the text.

Is there any way of doing so?

ink rgb(255,0,0),rgb(236,233,216)
t$="SNP1:"
temp=createlabel(14,51+1,text width(t$),text height(t$),t$,0)

Here is a small example of a text which I wanted to display in red.

I looked in the help of BLUEGUI2 and didn't find any command for that.

Thanks for any suggestions.

Kind regards,

Edit: I found the command! It is: SETGADGETCOLOR . Thanks anyway.
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 2nd Aug 2009 02:14
Hey hey

I was wondering if you could fix the bug that doesn't use images stored inside the executable.

Let me give you an example:
setbuttonimage button_snp1,"open_vista.bmp"

In the last Robert Knight's version, I had to keep "open_vista.bmp" outside the executable of my utility because BLUEGUI wouldn't recognize stored media.

Is it possible to fix this?

Thanks!

Kind regards from Marco
Marco A G Pinto
17
Years of Service
User Offline
Joined: 26th May 2006
Location: Portugal
Posted: 2nd Aug 2009 17:28
UnresizeableWindow corrupts graphics.

Hello Humanoid!!!

I tried the new command and it corrupts a couple of lines and the graphic in the GUI of my utility.

I am using a 640x480 desktop window for my utility.

Is there a way of fixing this?

Thanks!

Kind regards from Marco

Attachments

Login to view attachments
Humanoid
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Finland
Posted: 2nd Aug 2009 17:42
hmm. can post two image

non use UnresizeableWindow

and

use UnresizeableWindow

Suomi Finland PERKELE!

Login to post a reply

Server time is: 2024-03-29 01:35:31
Your offset time is: 2024-03-29 01:35:31