The Game Creators
The Game Creators Home Click to Login
  Hot: Official TGC CompetitionLee is tweeting!July NewsletterSmart PackerBox2DWeb Hosting SurveyDGS BonanzaFPS Creator Bonanza;
The Game Creators
DBPro / BlueGui V2.055

Go to the first page of this board Return to the Forum Menu Post Message
72 Messages - Page   of 2   
Bookmark and Share Search the Forum Next 40

Author Message
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 30th Jun 2009 20:47     Edited: 4th Aug 2009 07:44     | link | toggle



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:
+ Code Snippet

SetDialogPosition
+ Code Snippet


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)
+ Code Snippet
Biggest problem is HUGE exe file

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

by Humanoid (Bluegui fan)

more commands maybe someday

Suomi Finland PERKELE!
Back to top
Download: Gui2 V2.055.rar Size: 123035 bytesReport this message as abusive
N3wton

User


Joined: Wed Jun 3rd 2009
Location: Cyberspace
Posted: 1st Jul 2009 02:40           | link | toggle

Finally!

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

I'm gonna test this now!

Yours
N3wton

Back to top
Report this message as abusive
Rudolpho

User


Joined: Wed Dec 28th 2005
Location: Sweden
Posted: 1st Jul 2009 03:21           | link | toggle

Great, but... are you really allowed to release that?

Back to top
Under construction
Report this message as abusive
N3wton

User


Joined: Wed Jun 3rd 2009
Location: Cyberspace
Posted: 1st Jul 2009 03:24           | link | toggle

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

Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 1st Jul 2009 05:00     Edited: 1st Jul 2009 07:09     | link | toggle

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!
Back to top
Report this message as abusive
Problems

User


Joined: Mon Apr 28th 2008
Location: Cyberspace
Posted: 1st Jul 2009 06:22           | link | toggle

at me not work

where can i get id and password?

DarkBasic Master
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 1st Jul 2009 08:43           | link | toggle

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!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 1st Jul 2009 09:56           | link | toggle

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.
Back to top
Report this message as abusive
tiresius

User


Joined: Wed Nov 13th 2002
Location: MA USA
Posted: 1st Jul 2009 10:09           | link | toggle

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.
+ Code Snippet

I'm not a real programmer but I play one with DBPro!
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 1st Jul 2009 10:18           | link | toggle

can show code what you use?

meaby that help

+ Code Snippet



Suomi Finland PERKELE!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 1st Jul 2009 10:36           | link | toggle

Hi,
very fast answers.
Give me like 10 hours. In this momment i dont have access to blue gui.
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 1st Jul 2009 23:11           | link | toggle

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:

+ Code Snippet
Back to top
Report this message as abusive
tiresius

User


Joined: Wed Nov 13th 2002
Location: MA USA
Posted: 1st Jul 2009 23:37           | link | toggle

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!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 2nd Jul 2009 05:21     Edited: 2nd Jul 2009 06:03     | link | toggle

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....
Back to top
Report this message as abusive
tiresius

User


Joined: Wed Nov 13th 2002
Location: MA USA
Posted: 2nd Jul 2009 09:16           | link | toggle

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!
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 2nd Jul 2009 10:01     Edited: 2nd Jul 2009 10:08     | link | toggle

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!
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 5th Jul 2009 03:45           | link | toggle

Maybe this help -> Download <-

Suomi Finland PERKELE!
Back to top
Download: manifest.rar Size: 915467 bytesReport this message as abusive
Clbembry

User


Joined: Sun Dec 10th 2006
Location: Minnesota
Posted: 5th Jul 2009 21:11           | link | toggle

Can you still order BlueGUI?

Back to top
J3mSoft
Report this message as abusive
sladeiw

User


Joined: Sat May 16th 2009
Location: UK
Posted: 6th Jul 2009 16:44           | link | toggle

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
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 8th Jul 2009 07:43           | link | toggle

Added new command:

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

-> download < -- first post

Suomi Finland PERKELE!
Back to top
Report this message as abusive
Google Ad
Back to top
 
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 8th Jul 2009 10:27           | link | toggle

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.
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 8th Jul 2009 10:57           | link | toggle

can you do example code?

Suomi Finland PERKELE!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 8th Jul 2009 11:14           | link | toggle

of course.
Give me 8 hours until i have access to blue-gui.
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 8th Jul 2009 11:29           | link | toggle

ok

Suomi Finland PERKELE!
Back to top
Report this message as abusive
tiresius

User


Joined: Wed Nov 13th 2002
Location: MA USA
Posted: 8th Jul 2009 15:47           | link | toggle

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!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 9th Jul 2009 07:47           | link | toggle

Hi,
here is the code, create the project in window mode:

+ Code Snippet
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 9th Jul 2009 07:56           | link | toggle

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!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 9th Jul 2009 08:24     Edited: 9th Jul 2009 08:25     | link | toggle

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.
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 9th Jul 2009 10:45     Edited: 9th Jul 2009 11:36     | link | toggle

@Alfa x: i not sure how do that.

Added new command

UnResizeableWindow *no command*

@Alfa x: meaby this help

+ Code Snippet

or

+ Code Snippet


->Download<- first post

Suomi Finland PERKELE!
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 10th Jul 2009 12:25           | link | toggle

Added commands:

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

-> Download <-- first post

Suomi Finland PERKELE!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 10th Jul 2009 14:23     Edited: 12th Jul 2009 07:10     | link | toggle

+ Code Snippet


Thanks. i will try it out.
Back to top
Report this message as abusive
Marco A G Pinto

User


Joined: Fri May 26th 2006
Location: Portugal
Posted: 13th Jul 2009 19:18           | link | toggle

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,
Back to top
Marco A.G.Pinto Homepage
Report this message as abusive
N3wton

User


Joined: Wed Jun 3rd 2009
Location: Cyberspace
Posted: 16th Jul 2009 18:02           | link | toggle

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

Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 16th Jul 2009 18:48     Edited: 16th Jul 2009 18:49     | link | toggle

you can do that

+ Code Snippet

Suomi Finland PERKELE!
Back to top
Report this message as abusive
N3wton

User


Joined: Wed Jun 3rd 2009
Location: Cyberspace
Posted: 16th Jul 2009 19:12           | link | toggle

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

Back to top
Report this message as abusive
tiresius

User


Joined: Wed Nov 13th 2002
Location: MA USA
Posted: 16th Jul 2009 20:35           | link | toggle

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!
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 16th Jul 2009 21:02           | link | toggle

@N3wton: menu to close focus for some reason ... I try to explain the problem

Suomi Finland PERKELE!
Back to top
Report this message as abusive
Alfa x

User


Joined: Sat Jul 1st 2006
Location: Colombia
Posted: 19th Jul 2009 22:46           | link | toggle

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.
Back to top
Report this message as abusive
Mooney1

User


Joined: Mon Jul 27th 2009
Location: Cyberspace
Posted: 27th Jul 2009 00:19           | link | toggle

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?
Back to top
Report this message as abusive
Humanoid

User


Joined: Sat Sep 20th 2003
Location: Finland
Posted: 27th Jul 2009 07:12     Edited: 27th Jul 2009 07:13     | link | toggle

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!
Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
72 Messages - Page   of 2   
Search the Forum Next 40

This is a multi-page thread older than 30 days.
Go to the last page to check if you can reply to it.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page