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.

Work in Progress / BBB Gui Plugin

Author
Message
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th Feb 2010 01:10 Edited at: 16th Feb 2010 01:12
Quote: "Can you change the text on an existing label? Also, I want to be able to use floats inside of trackbars and updown controls, etc. Is this possible?"

The command for setting the text is WINDOW SET TEXT. Iside trackbars you can only use integers, inside updown controls you can use floats.

Quote: "Brendy Boy, could you please add a prefix to the commandnames?
Because at the moment it is always interfering with some of IanM's commandnames, which I need. "

I will in one of the future updates.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 16th Feb 2010 04:24 Edited at: 16th Feb 2010 04:30
Quote: "The command for setting the text is WINDOW SET TEXT. Iside trackbars you can only use integers, inside updown controls you can use floats."


Ah of course, thanks!

As for the floats, updown controls only appear to show integers

The trackbars will be easy enough to deal with to pretend to use floats.

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th Feb 2010 17:58
Quote: "As for the floats, updown controls only appear to show integers "

Updown control can show any value. Try setting the value with UPDOWN SET VALUE to some float number you'll see that it works. Updown control only increments and decrements the value by 1.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Feb 2010 02:38
Oh yep, I was doing something wrong, this is working. Thanks

xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 18th Feb 2010 16:05
Any news?

The Power System Developer
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Feb 2010 23:57
Quote: "Any news?"

I added those few commands for treeviews that you suggested. I'm trying to fix some memory leeks, i added a few commands for updown controls and i'm trying to add web browser control. When i finish all that i will upload an update. As for non transparent checkbox - i don't have solution for that, yet.

God is real unless declared integer.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th Feb 2010 19:44
Thx Brandy.
The web browser control is also a good think.
It can be used to include the google adsense like in the real messenger to help the project (in my case), and to show some informations directly from html like in the updaters for mmorpgs.

Good!!!


The Power System Developer
Satchmo
18
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 21st Feb 2010 02:31
Brendy boy, I just gotta say again. You're doing a great service for the community and I believe you deserve a valued member award.

bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 21st Feb 2010 04:08
For sure!

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 21st Feb 2010 20:43
Quote: "Brendy boy, I just gotta say again. You're doing a great service for the community and I believe you deserve a valued member award."

Thanks, i'm glad you like the plugin.

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 22nd Feb 2010 04:41
Hey Brendy Boy, I'm using this for team selection for my game with Multisync. I want to send whenever the user changes their selection in the combobox to the other clients, so the other clients can see the team selection. Would the best event to send data be WINDOW CLICKED?


Want to work on Desolation? Click my sig!!!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 22nd Feb 2010 05:00
Quote: "Hey Brendy Boy, I'm using this for team selection for my game with Multisync. I want to send whenever the user changes their selection in the combobox to the other clients, so the other clients can see the team selection. Would the best event to send data be WINDOW CLICKED?"

No, WINDOW CLICKED works only with windows created with MAKE WINDOW command. Wait for the next update, there will be a command to determine if the user changed selection in a combobox

God is real unless declared integer.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Feb 2010 11:04
Great Brandy, if there is something we can do in the while to help you...
Some tests, some other.

Ask to Brandy:
There will be the possibility to make windows inside the dbpro main but with no drag? Imagine the chat in a mmorpg on the left lower corner. Or window can be dragged but only in the dbpro window and no outside?


Ask To Fire:
Hey which kind of game are you developing, maybe we can work together using Brandy Plugin and exchange experiences.

I think for Brandy is also important in the first post a list of to-do like this:

Transparency
Inside main window style

Is only a suggestion to get the plugin tested by more peoples.

Regards to all.

The Power System Developer
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 22nd Feb 2010 21:33
Having a problem...

Quote: "//Make Tabs
toolbar=make window(0,0,300,700,"Toolbar",mainwindow, WS_OVERLAPPEDWINDOW)
tab=make tab control(0,0,300,700,TCS_FIXEDWIDTH,toolbar)

texturetab=make window(0,0,300,700,"Texture",tab, WS_CHILD)
tab insert item tab,"Texture",0,texturetab

tab insert item tab,"Models",1,modeltab

tab insert item tab,"Primitives",2,primitivestab

tab set item size tab,50,20
tab set selected item tab,2"


I get the windows not in the tabs but outside it, it works because if i click models then the texture window disapears. But i dont want a extra window i want it in the tab. Any thoughts?


FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 22nd Feb 2010 21:40 Edited at: 22nd Feb 2010 23:12
Quote: "No, WINDOW CLICKED works only with windows created with MAKE WINDOW command. Wait for the next update, there will be a command to determine if the user changed selection in a combobox"


Alright, thanks dude. I'll wait. I have plenty more to work on =]

@xGEKKOx: I'm working on an RTS. Which is going to take a really, really, really long time.


Want to work on Desolation? Click my sig!!!
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 22nd Feb 2010 23:09 Edited at: 22nd Feb 2010 23:09
Here is a screen of what i mean:




Attachments

Login to view attachments
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 23rd Feb 2010 16:58
I'm Working on a really new way of fighting in a Mmorpg.
I'm developing a game where the normal walking is in 2DIso (cause i can't paint in 3d) and the Fighting is in 2D like street fighter. This is a news, and is based on a skill. I already done the multiplayer and the linux server side.
But i need someone who work with me.
I do this cause my job is this ^^.
I have also a little web farm in my country.
So i search for people like Brandy and you, to exchange something and begin to work seriously selling a game.
I have a gamers community with 2600+ users and 22 millions visit each year. So we already can count on users that can help us to test and maybe buy our products.
We can work together if you want, we can open a new post for this, and maybe do some tests, sharing some parts we need.

This is only to present me to you, i like this post and the Brandy's work so why not.


The Power System Developer
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Feb 2010 19:57
Quote: "I get the windows not in the tabs but outside it, it works because if i click models then the texture window disapears. But i dont want a extra window i want it in the tab. Any thoughts?"

I tried your code, it works for me. Have you included BBBGUI_CONSTANTS.dba file in your project?

Quote: "Ask to Brandy:
There will be the possibility to make windows inside the dbpro main but with no drag? Imagine the chat in a mmorpg on the left lower corner. Or window can be dragged but only in the dbpro window and no outside?"

Windows with no drag maybe but thats a little harder to achieve. I will try to make something for one of the future updates. For draging windows only inside dbpro main window - thats even harder to achieve so i'm not sure - i will try but i can't promise anything.

As for transparency problems - Can you tell me how did you make that window with image and checkbox (which is non transparent) - you posted image showing it in one of your previous posts. I tried to recreate that by making a static image and placing checkbox on that image and it worked for me - checkbox was transparent. Did you do it in some other way?

As fow helping you on your game - since i'm currently developing my L&M Creator i don't have so much spare time and my experience on developing 2D games is very poor. But if i can somehow help you do tell i will try.

Quote: "Great Brandy, if there is something we can do in the while to help you...
Some tests, some other."

Well, lots of people are requesting help files. How are you going with msdn. Do you have time to make web pages as ones that are part of dbpro official help. I can make screen shots and write text but i need someone who can put that on a web page, make it look nice and update the keywords file so when you press f1 in dbpro editor the particular web page help opens in a new tab.

God is real unless declared integer.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 25th Feb 2010 18:36
Thanks that was it...

Another thing the imagelist example, how can i see wich image i have selected? This would be very usefull.

Thanks in forward,

Red Eye


FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 26th Feb 2010 04:20
Any news on when the update will be Brendy Boy?


Want to work on Desolation? Click my sig!!!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 26th Feb 2010 18:13
The question for trasparency is for me?
If is for me :
I paint a JPG image by dbpro with PASTE on sync not by static with plugin so i thinked that when we will do a mmorpg and we put over the windows we can't have transparency windows. Also for the boxes, is the same.

With MSDN is going bad, is too big and sometimes i lose myself.
But i can do the help for dbpro. I like the idea of the html pages like the official one.

What is L&M?

The Power System Developer
The Slayer
Forum Vice President
14
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 27th Feb 2010 01:21
Hi, Brendy boy, I would like to say that this is a great plugin!! Good job!
I have a little question: is it possible to have the main window (without adding others) at a certain position, and always make it one size (not maximizable) ?
Also, it would be nice to have some help files? *hint*

Thanx!

Cheers

Slayer rules!!! Yeaaah, man!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 27th Feb 2010 01:53
Quote: "The question for trasparency is for me?
If is for me :
I paint a JPG image by dbpro with PASTE on sync not by static with plugin so i thinked that when we will do a mmorpg and we put over the windows we can't have transparency windows. Also for the boxes, is the same."

Yeah, it was for you. The thing you are trying to do can't be done. You'll have to use static images.

Quote: "What is L&M?"

My Landscape & Map Creator program i'm making.



Quote: "I have a little question: is it possible to have the main window (without adding others) at a certain position, and always make it one size (not maximizable)"

Put 0 as window style parameter and you'll have a window without maximize button.

Quote: "Any news on when the update will be Brendy Boy?"

Probably today, maybe tomorrow.

Quote: "Another thing the imagelist example, how can i see wich image i have selected? This would be very usefull."

You can't select images in imagelists. Imagelist are "containers" of images that other controls like listview or tab control use. You can however find out which tab item or listview item is selected -> check the keywords file for a list of commands and find one that suits you needs.

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 27th Feb 2010 02:06
Sounds awesome =] Can't wait, because the next step in my game is for that combobox event


Want to work on Desolation? Click my sig!!!
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 27th Feb 2010 17:28
I found out that make button() doesnt return string.


Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 27th Feb 2010 20:41
Quote: "I found out that make button() doesnt return string."

It returns button handle. What did you think - what string it returns?

God is real unless declared integer.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 27th Feb 2010 21:40
Well i wanted to make something like:

for i=1 to checklist quantity()

button=make button(blablabla)

next i

cant do that, it just makes one, but it doesnt support strings to add something to it, so that for the next i he makes another button.


xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 27th Feb 2010 22:13 Edited at: 27th Feb 2010 22:14
It doesn't work in this way when you code with dlls.
Maybe you mean this:


You use array on handles to manage them, and to find them again.

The Power System Developer
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 27th Feb 2010 23:29
Good idea! Doesnt it needed this before loop then?

dim button(checklist quantity()) as integer


Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 27th Feb 2010 23:37
Sorry for double post:

Because this is still not working:




Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 28th Feb 2010 00:02
Quote: "Sorry for double post:

Because this is still not working:"

Can you post screenshot so i can see what happens? Does it not work at all or just doesn't work like you want it to work?

God is real unless declared integer.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 28th Feb 2010 09:27
I solved by making a treeview. This fully works, thanks!


Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Mar 2010 09:35
Update is finally done. You can download it in the first post.

God is real unless declared integer.
luskos
16
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 1st Mar 2010 11:54
Good work man!What else to say...just don`t know, it`s so nice!

I have a question about "window set tooltip s,0,"This is statusbar"".
What is supposed to do ?Because "statusbar.dba" in your examples contains it in line 19 and it not reconized as command.I check complete comand list and there is no such thing "window set tooltip".

Where there is a will, there is a way.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Mar 2010 20:06 Edited at: 1st Mar 2010 20:07
Quote: "Good work man!What else to say...just don`t know, it`s so nice!

I have a question about "window set tooltip s,0,"This is statusbar"".
What is supposed to do ?Because "statusbar.dba" in your examples contains it in line 19 and it not reconized as command.I check complete comand list and there is no such thing "window set tooltip"."

In the examples i have is window add tooltip, the same examples i uploaded so i don't know where did you find that. Change it to t=WINDOW ADD TOOLTIP(s,0,"This is statusbar")

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 1st Mar 2010 21:41 Edited at: 1st Mar 2010 21:45
Awesome Brendy Boy =] I'll test this later but great great work.

And I'm assuming UpDown is now the combobox? Just checking


Want to work on Desolation? Click my sig!!!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Mar 2010 21:57
Quote: "And I'm assuming UpDown is now the combobox? Just checking"

No, updown is updown and combobox is combobox. They are two completely different things.

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 1st Mar 2010 22:18
Oh lol I forgot what an updown was Is there a command for clicking on the comboboxes? I didn't see one in the updated command list or am I missing it?


Want to work on Desolation? Click my sig!!!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Mar 2010 23:31
Quote: "Oh lol I forgot what an updown was Is there a command for clicking on the comboboxes? I didn't see one in the updated command list or am I missing it?"

Check the combobox example. There is a command GET MODIFIED CONTROL which returns handle of last modified control, so when you click on a combobox it will return its handle. With GET MODIFIED CONTROL EVENT command you can find out which action did you do - confirmed selection in combobox, canceled it, changed the selected item, pressed return etc.

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 1st Mar 2010 23:34
Oh, ok thanks. Great work!


Want to work on Desolation? Click my sig!!!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 3rd Mar 2010 10:17 Edited at: 3rd Mar 2010 10:19
How can I use this plugin so I can have a console type window that accepts inputs of a string?
lets say f$ for example
so the db equiv would be input " enter a string ";f$
but of course i want this to be in another window from the dll
I just need to be able to input and output a string value to a seperate window!
Thanks for any help

Hail to the king, baby!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Mar 2010 20:43
Quote: "How can I use this plugin so I can have a console type window that accepts inputs of a string?
lets say f$ for example
so the db equiv would be input " enter a string ";f$
but of course i want this to be in another window from the dll
I just need to be able to input and output a string value to a seperate window!
Thanks for any help"

Check the editbox example. You can create a multi line editbox and write text to it. That's the closest thing to the console type window.

God is real unless declared integer.
Satchmo
18
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 4th Mar 2010 05:28
How would you go about scaling the web browser gadget?

shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 4th Mar 2010 11:03
ok but how do i then get he value/data from the editbox and store it in some string ..thanks

Hail to the king, baby!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Mar 2010 20:18 Edited at: 4th Mar 2010 20:19
Quote: "ok but how do i then get he value/data from the editbox and store it in some string ..thanks"

return_String$=WINDOW GET TEXT(editbox_handle). Call this command and editbox data will be stored in return_string$ string.

Quote: "How would you go about scaling the web browser gadget?"

Scale the web browser's host window using WINDOW SET SIZE command. Web browser will scale itself automatically when it's host window is being resized.

God is real unless declared integer.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 5th Mar 2010 00:07
Hi boys,

i was busy on my games servers to update some softwares of mine.
I will return in 2/3 days and i will start to do the html help.
Great Brandy, great!!!

The Power System Developer
luskos
16
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 7th Mar 2010 17:40 Edited at: 7th Mar 2010 18:01
Hi all!
I find little frustraiting that all the examples coming with BBB plugin are missing #include "BBBGUI_CONSTANTS.dba" at the first line of every example.If someone have problems with error when exit example something like "The memmory could not be read...", just add this line.Update of examples with #include will be good idea, because some of them didn`t work like they should.And if you have the problem presist after you do #include "BBBGUI_CONSTANTS.dba" then you need also to copy "USkin.dll" in TEMP directory of darkbasic or disable theme in line :"start bbb gui "Media\Ruby.msstyles""Without doing this stuff, you can`t use msstyles properly.I`m not sure but i think i read in some of Brandy boy`s post where he actually thinks there maybe is
bug in the DLL

Brandy boy can you write some of this stuff in your first post under possible problems solution or something and everyone can see what and why is happenig like this and how to make it right.We will avoid talking about this all the time in the future if someone ask.
EDIT: I love edits Because i often forget something and put it later...Brandy boy you may put "sync sleep" the end of each example, then it stops eating CPU.

Where there is a will, there is a way.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 7th Mar 2010 18:18
A strange bug is coming out after the new update.
On windows Vista 64 all the icons and desktop disappear at mouse passage. And the treeview now show bad icons.
Now the bar show colors in the buttons.

Bad bug!!!

The Power System Developer
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 7th Mar 2010 18:55
@ Brendy Boy,

With these gadgets is there any way to change the font, font size, font colour - within the gadgets?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 7th Mar 2010 20:57 Edited at: 7th Mar 2010 21:09
Quote: "I find little frustraiting that all the examples coming with BBB plugin are missing #include "BBBGUI_CONSTANTS.dba" at the first line of every example"

There shouldn't be need to do that if you included that file in the editor like i did, but ok i'll mention that in the first post.

Quote: "then you need also to copy "USkin.dll" in TEMP directory of darkbasic or disable theme in line :"start bbb gui "Media\Ruby.msstyles"""

"USkin.dll" needs to be in the same folder as your application exe. If you compile in debug mode then exe is located in temp folder. Don't compile with f6 button if you want to avoid this. But you're right, i should have mentioned that in the first post.

There isn't a bug in "USkin.dll", the problem is that i'm doing something wrong in my plugin. To fix the problem don't specify a theme file in START BBB GUI. Instead use the plugin that Newton made just for theming using "USkin.dll". His plugin works correctly and can be found in Program Announcements thread.

Quote: "A strange bug is coming out after the new update.
On windows Vista 64 all the icons and desktop disappear at mouse passage. And the treeview now show bad icons.
Now the bar show colors in the buttons.

Bad bug!!!"

Thanks for mentioning that. I thought that there's something wrong with my windows but that's obviously a bug.

Quote: "With these gadgets is there any way to change the font, font size, font colour - within the gadgets?"

Use WINDOW SET FONT command. You can change everything except color

God is real unless declared integer.

Login to post a reply

Server time is: 2024-04-20 10:46:19
Your offset time is: 2024-04-20 10:46:19