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
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 16th Aug 2011 03:41 Edited at: 16th Aug 2011 06:29
Ooh a BBBGUI Window Designer!

I downloaded BBBGUI some time ago and I don't think I looked through the posts, so I never discovered the window designer. I'm downloading it now.

You should make a WIP thread. Really. You would have many many more people downloading it if it wasn't half-way through the BBBGUI thread. Does look good, though

...

Yes! Finished downloading!

Now trying...

Ok, immediately after starting I noticed a bug. The DarkBASIC Professional window's title is "Dark Baisc Professional Window". Notice the word in bold.

Now, to test it properly...

New bug! Steps to easily crash the window designer:

Step 1: Open BBBGUI Window Designer
Step 2: Select Window Controls tab and place a TabControl
Step 3: Place a button inside the TabControl
Step 4: Select the TabControl and the Properties tab
Step 5: Under the text "Parent = Project Window", select Button3
Step 6: Click "Select Parent"

Good work, you just crashed BBBGUI Window Designer in 6 easy steps!

Clonkex

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 17th Aug 2011 02:51
Quote: "Ooh a BBBGUI Window Designer!

I downloaded BBBGUI some time ago and I don't think I looked through the posts, so I never discovered the window designer. I'm downloading it now.

You should make a WIP thread. Really. You would have many many more people downloading it if it wasn't half-way through the BBBGUI thread. Does look good, though "


I guess you're right, I'll make a thread when I have the next version ready.

Quote: "Ok, immediately after starting I noticed a bug. The DarkBASIC Professional window's title is "Dark Baisc Professional Window". Notice the word in bold."


All right I'll fix that.

Quote: "Good work, you just crashed BBBGUI Window Designer in 6 easy steps! "


Lol, thanks for the tutorial on that. Though why would you want to have a tab control on a button?

Anyway the crash happens for all controls when you set the selected controls parent to one of its child controls. Thanks for pointing that out.

Mugen Wizardry
User Banned
Posted: 20th Aug 2011 03:06
Can anyone PLEASE show me an example of how to change the text in an edit box to a password box? :/

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
16
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 20th Aug 2011 03:11
Anyone know where I can find the Plugin DBP TIME required for the BBB Windows DEsigner ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 20th Aug 2011 04:57
@Mugen Wizardry

When you create your editbox use ES_PASSWORD style.

@DemonHill

I just found out that his website does not exist anymore , so here is the plug-in attached to the download.

Attachments

Login to view attachments
Mugen Wizardry
User Banned
Posted: 20th Aug 2011 15:57
Thanks! Works a charm!

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 22nd Aug 2011 08:41
Quote: "Though why would you want to have a tab control on a button?"


I like to try and break new plugins. It helps find bugs

Clonkex

Mugen Wizardry
User Banned
Posted: 26th Aug 2011 19:34
BrendyBoy, can u PLEASE fix that bloody skin crash glitch?

Where it crashes when u try to exit an application with a skin loaded onto the window?

THANK you!

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 27th Aug 2011 02:09
It also crashes with IanM's plugin if you are using the find free object() command (none of the others, just that one). If you use that command then close the window it crashes the same way as with a skin loaded. Actually it might not do it any more, I recently downloaded the latest version and haven't tested it.

Clonkex

Mugen Wizardry
User Banned
Posted: 27th Aug 2011 14:21
No, it does it. I have the newest version. -.-

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 29th Aug 2011 03:24
Quote: "No, it does it. I have the newest version. -.-"


So it does still crash it?

Clonkex

Mugen Wizardry
User Banned
Posted: 29th Aug 2011 15:05
Yes...

CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
DemonHill
16
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 4th Sep 2011 15:43
Hi I'm trying to create a drop down menu which show options with check boxes against them. i.e

>Options(Submenu)
- Sound on x
- Tips on x
- RealTime

Any idea which combination of commands I use to there create this ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 5th Sep 2011 05:34
Yep, BBB MENU_CHECKITEM is the command. As for future reference, I would suggest to use the keywords file for the complete command list.

DemonHill
16
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 5th Sep 2011 12:14
Thanks, any example of how it's used ? cant see any example included with BB GUI that show it ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 5th Sep 2011 20:49
Sure, here is a example.



Guido Italy
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 14th Sep 2011 16:21
is there a possibility to change the color of a label?

Color/BackgroundColor ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 16th Sep 2011 01:45
At the current moment no. Though through DLL calls you should be able to do it.

Alternatively, you also could use static images with the text and color you want instead of using labels. Hopefully setting text color/background color command will be added in the future though.

Guido Italy
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 16th Sep 2011 16:06
Thank !
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 21st Sep 2011 20:58 Edited at: 21st Sep 2011 21:02
Brendy Boy,

I am not sure if your back yet but here are some more bugs I found.

1. BBB Toolbar_GetHighlightedButton() Should have a 'Toolbar' handle parameter in the keywords file.
2. Listview Set Highlight Color does not seem to work. Here are the current styles that I am using if that has anything to do with it. (LVS_EX_GRIDLINES||LVS_EX_DOUBLEBUFFER||LVS_EX_HEADERDRAGDROP||LVS_EX_ONECLICKACTIVATE,LVS_REPORT||LVS_NOSORTHEADER||LVS_SINGLESEL||LVS_OWNERDRAWFIXED)
3. Setting the window cursor to certain control (Button) will change the cursor for all controls of the same type.
4. In the keywords file, "LISTBOX SET ITEM HEIGHT=main.htm=Listbox, item index, height" should be "LISTBOX SET ITEM HEIGHT=main.htm=Listbox, height"
5. The BBB FolderBrowserDialog should return the path to the selected folder, not the folder name.
6. Listview Set Item State command is not found. (String table)
7. The two commands BBB Tooltip_Show and BBB Tooltip_SetText don't work.
8. Here is a bug for window properties. download the following code for you to test. (Could not post it here because of errors.)

1- Click the dropdown for control tooltip. And click "Set control tooltip"
2- Choose a style from the listbox, then add style.
3- Click cancel. Then reopen the dialog.
4- Now you should see the incorrect string in the listbox.

Attachments

Login to view attachments
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 21st Sep 2011 21:59
Quote: "I am not sure if your back yet but here are some more bugs I found."

I'm back.


Quote: "3. Setting the window cursor to certain control (Button) will change the cursor for all controls of the same type."

thats how the WINAPI function for setting the cursor works. I'm not sure if that can be fixed.

For everything else - i'll have a look and try to fix.

Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 4th Oct 2011 16:39
Hi Brendy Boy,
I am getting a really odd problem with the BBB GUI.dll which has occurred since I recently had to re-install my system.

Some (but not all) of the commands fail during compilation with either a 'Could not determine parameter type of...' or 'Could not understand command...' error. If I change the command to the BBB .... command style it then works.

For instance 'menu check item...' gives a 'Could not understand command...' error but if I change it to 'BBB menu_checkitem...' it works fine.

I have tried this with the latest version of your Library (that I could find, seems to be the one you posted here on 27th April 2011) and a couple of the earlier ones.

This must be something wrong with my setup but I`m stumped as to what.

Any suggestions would be much appreciated.

Regards,
RR

"Don`t try to engage my enthusiasm, I don`t have one"
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Oct 2011 21:35
Quote: "'menu check item.."

That was the old command syntax

Quote: "'BBB menu_checkitem..."

...and this is the new command syntax.

Is it possible that before re-installing your sistem you used older version of BBB Gui and now you are using the newest?

Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 5th Oct 2011 10:12
Darn, thanks Brendy, I had not been following posts here so had not noticed the change in syntax.

I assume the change is to get the BBB before each command so it cannot be confused with similar commands from other libraries (Matrix utils etc)?

What threw me was that I seem to have ended up with the old Keywords file, so the old syntax showed the help and got syntax highlighting in the editor, but the new did not.

Thanks for the quick reply, I`m off to get the latest Keywords file.
RR

"Don`t try to engage my enthusiasm, I don`t have one"
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 5th Oct 2011 15:30 Edited at: 21st Oct 2011 23:52
Quote: "I assume the change is to get the BBB before each command so it cannot be confused with similar commands from other libraries (Matrix utils etc)?"

that is correct


EDIT:
new keywords file

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 18th Oct 2011 20:24
Brendy boy,

Just to let you know if you can't find the bug for window properties, I could post different code that would reproduce it. (I am encountering this bug so much now that properties are unusable now.)

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Oct 2011 22:12 Edited at: 18th Oct 2011 22:22
Quote: "I could post different code that would reproduce it."

Unfortunately i currently don't have time for bug hunting (too much university work) but i did try your code and i couldn't compile it. Can you post a code that uses the newest version of BBBGUI?

EDIT:
I think i may found the cause of the error you may be experiencing. Here is the version with the possible fix. Tell me if it works.

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 19th Oct 2011 06:18
Quote: "Unfortunately i currently don't have time for bug hunting (too much university work) but i did try your code and i couldn't compile it. Can you post a code that uses the newest version of BBBGUI?"


I understand if you don't have time, so don't feel rushed when I post about some new bugs/suggestions.

Quote: "I think i may found the cause of the error you may be experiencing. Here is the version with the possible fix. Tell me if it works."


I can confirm that it works correctly now. Many thanks Brendy boy.

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 21st Oct 2011 23:51 Edited at: 21st Oct 2011 23:58
Today i found a little time for bug hunting, here are the results:

Quote: "1. BBB Toolbar_GetHighlightedButton() Should have a 'Toolbar' handle parameter in the keywords file. FIXED
2. Listview Set Highlight Color does not seem to work. THIS command can be used only if LVS_OWNERDRAWFIXED style is used. This functionality isn't currently implemented
3. Setting the window cursor to certain control (Button) will change the cursor for all controls of the same type.
4. In the keywords file, "LISTBOX SET ITEM HEIGHT=main.htm=Listbox, item index, height" should be "LISTBOX SET ITEM HEIGHT=main.htm=Listbox, height" It has to be as it is, but item index parameter has to be set to zero
5. The BBB FolderBrowserDialog should return the path to the selected folder, not the folder name. FIXED
6. Listview Set Item State command is not found. (String table) FIXED and renamed to BBB LISTVIEW_SETSELECTEDITEM
7. The two commands BBB Tooltip_Show and BBB Tooltip_SetText don't work.This one seems harder to fix. Don't know what's causing it "


Plugin is attached to this post, keywords file is attached to my previous post

Attachments

Login to view attachments
Manson_NS
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 3rd Nov 2011 17:21 Edited at: 3rd Nov 2011 17:37
3 quick questions:
1/ When deciding to switch from Blue GUI to BBB - It'd be nice to know if any further updates will be made to the plugin?

2/ Help files - what is actually available? (even the examples are incompatible with the latest dll and ini)

3/ Usage - when you make a window, how do you avoid the user closing it by hitting the X button? Though Clear Event is called, it seems the message is still passed to close the window.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Nov 2011 23:00
Quote: "1/ When deciding to switch from Blue GUI to BBB - It'd be nice to know if any further updates will be made to the plugin?"

I'm constantly updating it. Curently i'm busy with life/university so progress is slow but in the future you can expect more regular updates.

Quote: "2/ Help files - what is actually available? (even the examples are incompatible with the latest dll and ini)"

No help available yet, unfortunately. As for the help files i have the most updated version which works with the newest update. It's possible that i didn't upload them yet. Where did you download examples from? first page or from one of the latest pages in this thread?

Quote: "3/ Usage - when you make a window, how do you avoid the user closing it by hitting the X button? Though Clear Event is called, it seems the message is still passed to close the window. "

If you check the examples you'll see that close window event is handled in every example. In order to successfuly intercept window close message the window has to be set as main window (see SET MAIN WINDOW command). In order to stop more than one window from being closed you'll have to look at IanM matrix1Utils dll collection which provides the needed functionality. The way that BBB GUI handles window messages disables the possibility of stopping more than one window from being closed.

Manson_NS
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 3rd Nov 2011 23:56 Edited at: 4th Nov 2011 00:00
[double post]

But a usefull place to put in the positive remark that your plugin looks very promissing - but going from 3 years of blue gui is raising some conservative feelings
Manson_NS
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 3rd Nov 2011 23:57
1/ Fully understandable - I located some other site via google which seemed to have more recently updated links than the links on your first entry - adding to my confusion.

2/ Here and there - where am I supposed to find it? cos in all honesty of the 15 pages in here I've only read through page 1,2,14 and 15

Altogether from point 1 and 2 - where is the go-to place for this plugin?

3/ That sucks - I fail to see why clearing the event does not do the trick - does it somehow not delete the message from the query?
Also - Ian's functions are also based on the user clicking the main window.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Nov 2011 01:08 Edited at: 4th Nov 2011 01:10
Quote: "2/ Here and there - where am I supposed to find it? cos in all honesty of the 15 pages in here I've only read through page 1,2,14 and 15"

it seems that i didn't upload the newest version of the examples, so here they are atached to this post

Quote: "Altogether from point 1 and 2 - where is the go-to place for this plugin?"

First page, first post - the most stable version, tested, with the updated and working examples
Every other post that contains bbb gui download - the newset version which is heavily under WIP, untested, in most cases it's just dll without examples

The version that i attached to this post is still WIP, untested, some things don't work, rich editbox commands contain huge memory leak -> use it with caution

Quote: "3/ That sucks - I fail to see why clearing the event does not do the trick - does it somehow not delete the message from the query?
Also - Ian's functions are also based on the user clicking the main window. "

every time control send a message that message is put to a queue of messages and then send to it's destination control.

The event commands allow you to see what messages are in the queue. At the point in time when you check the queue with GET EVENT command the messages in the queue have already been dispatched so stoping them would't have any effect. In order to stop messages from dispatching, the EVENT command system would need to be done in a little different way

Attachments

Login to view attachments
Manson_NS
20
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 5th Nov 2011 00:41
Thanks, while I am lazy, it's still quite a stretch to accumulate the proper versions of files to compile up a working set of files from 15 pages.

Damn that's an anoyance then - that effectively restaints the useage for editors etc.
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 7th Nov 2011 09:25 Edited at: 7th Nov 2011 09:27
Hi, I've been playing with BBB gui and really like it, its really putting the polish on my current project.

I have however run into a problem in that I cant seem to get the Id of the selected dropdown menu option. (perhaps I'm being a dumbass and am missing something obvious)

ive tried menu get selected item id() but that stays on zero
ive tried menu get item state() that that too stays on zero

I have no problem with getting the id of buttons, just no drop down menus.

menu get selected item string() works fine and I could probably match strings to get the selected option. but I want to get this id check working.

for working it out I have used the menu example project that comes with the plugin and added

to the main loop.
what am I doing wrong?
thank you
kezzla

Sometimes I like to use words out of contents
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 8th Nov 2011 02:19
@Kezzla
You are doing everything right
This code

is correct. Are you wondering why is x always zero? Well, it isn't. At the point when you select an item from the dropdown menu x will be equal to the selected menu item id, but only at that specific frame. In the next frame it will be reset to zero. It works just like dbpro commands: MOUSEMOVEX and MOUSEMOVEY

Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 8th Nov 2011 12:52
ok, I was wondering how to utilize the id of the clicked menu option. what is the easiest way to do that?

I apologize if its a simple matter I have overlooked, my attempts to get it going have been unsuccessful. My trial and error is going nowhere.

thankyou

kezzla

Sometimes I like to use words out of contents
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 8th Nov 2011 16:32
Quote: "ok, I was wondering how to utilize the id of the clicked menu option. what is the easiest way to do that? "

i'm afraid i don't understand what are you trying to do

Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 11th Nov 2011 12:28
I want to select something from the menu and run a relevant subroutine.

eg click file/new
gosub new:

what function do i use to to find last clicked menu item?

thankyou

Sometimes I like to use words out of contents
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 11th Nov 2011 17:03
@Kezzla


Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 12th Nov 2011 10:44
Thankyou for your time brendy boy, I have had no success with accessing the menu get selected item id() command.

here is the entire code for my modified example


This should print a text statement to the top left corner of the screen, but all i get is the default which means x doesn't correspond to the selected menu id.

does this work for everyone else?

I get no change in the x variable.

what am I doing wrong?

Sometimes I like to use words out of contents
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 12th Nov 2011 15:36
Kezzla

it seams the commands you used to make menus have changed

I just updated to the latest version of BBB Gui Plugin and in the example

Menus.dba
Menus.dbpro



nun of the one's in your example light up

but in the code above they do and whats in yours is not
being accepted by dbp

from what I can tell your on the right track but
your going to have change the name to the correct one needed

to move side ways - is to move forward
Since a Strait line gets thin fast
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 12th Nov 2011 15:56
it defiantly seams you did not give the correct BBB Gui names

I have put the correct one's in place

I'm just down to what you built
and finding the correct names from the

do to the loop part

and from what I can see so far it should work

I'll post finished item when I get the
lines in your example set to the correct names

to move side ways - is to move forward
Since a Strait line gets thin fast
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 12th Nov 2011 16:09
all commands have been corrected

here is the finished example

to move side ways - is to move forward
Since a Strait line gets thin fast

Attachments

Login to view attachments
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 12th Nov 2011 16:13
ok a tiny fix is needed

it's going to take me a bit to get the next part going
unless some one else gives it a shot before me

to move side ways - is to move forward
Since a Strait line gets thin fast
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 12th Nov 2011 17:34
@Resourceful
Quote: "it defiantly seams you did not give the correct BBB Gui names"

he is using the last stable version of BBB GUI which is over a year old. that is not the cause of his problems.


@Kezzla
When you call x=MENU GET SELECTED ITEM ID() command
x will be set to the last selected menu item and internal variable inside bbb gui will be reset to zero so when you call that command again it will return zero. So the solution to your problem is to call that command only once per loop, store it in a variable and use that variable where you need

Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 13th Nov 2011 04:53 Edited at: 13th Nov 2011 09:12
ok now im up to speed, thankyou for your help and your patience. my menus now work beautifully.

for anyone else out there making the same mistake you need to add the condition
varible1 = MENU GET SELECTED ITEM ID()
IF variable1> 0 then variable2 = variable1


simple in hindsight and a silly thing to overlook but something that had me puzzled for a while, even with clear instructions

again thank you for your time and patience brendy boy and resourceful.

Great plugin.

kezzla

Sometimes I like to use words out of contents
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 13th Nov 2011 05:36
@Kezzla

glad to be of help

looking at the example you did helps me understand
how things fit together

I've not used BBB Gui Plugin but
with things I got planed this
will give my program more options at a quicker time

it takes time to put the peaces together

to move side ways - is to move forward
Since a Strait line gets thin fast
BlackChaos
14
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 7th Dec 2011 01:11
For combobox how do i get the index number for the selected item?

Check out my website -> Ameadus Project <- Free Project files, Examples and Over 2,000 textures

Login to post a reply

Server time is: 2024-05-10 12:27:44
Your offset time is: 2024-05-10 12:27:44