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
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Feb 2010 00:57
Quote: "Btw, where did you find that ruby.msstyle? Did you make it yourself?"

I found it here http://www.belchfire.net/index.php?automodule=downloads&showfile=8474

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 3rd Feb 2010 17:10
Is it possible to embed buttons in the main dbpro window? I changed the buttons example to this:



But the buttons are invisible.

Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Feb 2010 20:13
Quote: "Is it possible to embed buttons in the main dbpro window?"

Yes, it is. You have to call SET WINDOW ON command before START BBB GUI command and then it will work.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 3rd Feb 2010 20:32
That does seem to work, but then the window is very small. When I resize it manually everything's good. But when I resize it via set window size the buttons disappear.

Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Feb 2010 21:30
Quote: "That does seem to work, but then the window is very small. When I resize it manually everything's good. But when I resize it via set window size the buttons disappear."

SET WINDOW SIZE is dbpro's own command for resizing window. Use the one from bbb gui - WINDOW SET SIZE. Then it will work.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 3rd Feb 2010 21:38
Wonderful! This plugin is perfect! What's the license on it?

Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Feb 2010 22:49
Quote: "Wonderful! This plugin is perfect! What's the license on it?"

Its free for commercial and non commercial use.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 3rd Feb 2010 23:25
That's just plain awesome! Thanks!

Gunslinger
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 3rd Feb 2010 23:46
If it's in the main db window, it's gone on every sync.
How can i fix this without creating the objects again?
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Feb 2010 00:12
Quote: "If it's in the main db window, it's gone on every sync.
How can i fix this without creating the objects again? "

I don't understand this question. Who/what is in the main db window?

God is real unless declared integer.
Gunslinger
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 4th Feb 2010 12:26


The sync/loop kills the button.
is it possible to show the buttons after the sync?
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 4th Feb 2010 15:16
As he told me, you must use the "set window on" command before you start bbb gui. Then you must use the "window set size" command to properly size the window.

Gunslinger
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 4th Feb 2010 18:50
ah okay thank you
Using this great plugin, thanks!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 4th Feb 2010 22:45
@ Brendy Boy.

This plugin is awesome. Any chance of some help files???

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 5th Feb 2010 03:26 Edited at: 5th Feb 2010 03:27
Hey Brendy Boy, is there a way for a multiline editbox to automatically scroll with with the text? I'm working on the chat feature for the lobby of my game I made with Multisync, and it works. I just want it to scroll with the text that is inserted to the box. I have this:

N3wton
15
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 5th Feb 2010 09:36
The easiest way i also found of making a chat box that scrolls down (and can have the use a coloured text and smileys ect...) was via adding a webbrowser gadget, and update the html code (thus the smileys could be images wrapped with <img src = "happy.jpg"> ) and you could make it scroll down every time a message is recieved via a little bit of javascript.

Tho i don't think this plugin supports a webbrowser gadget yet, so it would be nice to have one.

but other than that I dont think you can, using a multiline edit box. you could also try using a list box, if there is a list box gadget (I havn't really played with this plugin yet, and i use bluegui, so these are solutions i used via that plugin) using a listbox, should mean you can add a line, and set the selected line.

OH! just had an idea, you could use an edit box, and is it the user32.dll and simulate a keypress of Page down every time a message is rcieved, but this would be a clumsy way of doing it

hope I made sense, i've only just woke up

yours
N3wton

Satchmo
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 6th Feb 2010 01:04
Hmm, is there any command to hide the gadgets?

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 6th Feb 2010 01:18 Edited at: 7th Feb 2010 05:04
Quote: "Hmm, is there any command to hide the gadgets?"


Try Hide Window

I may have to end up using a listbox N3wton. I could call page down or hitting the enter key with the dll, but id also have to set focus to the gadget/window. Ill figure something out. Thanks

Edit: Oh wait, there is a set window focus command. Ill mess around with it

Edit 2: N3wton, it did work using user32.dll xD For anyone wanting to auto-scroll a multiline textbox use this:




Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com ; Xfire: fireindy
Satchmo
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 6th Feb 2010 05:11
No not hiding a window, just a specific item(i.e. a button or input box)

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 6th Feb 2010 05:27
The Window commands apply to gadgets as well. Just use whatever you named your editbox. For instance:

window set text ChatTextBox, ""

That sets the text of my textbox ChatTextBox to an empty string. So use Hide Window.

Satchmo
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 6th Feb 2010 05:42
Oh, thanks.

Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Feb 2010 17:03
Just a hint. In the Windows API all 'Gadgets' are windows everything is a window Gadget was used to make it easier to understand.

New Site! Check it out \/
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 6th Feb 2010 20:24
I've tested a tip to go around the status bar auto width fix.
I've added variable for last width and height and if changed he rebuild the status bar.

Waiting your new update.
Great work for this plugin.

The Power System Developer
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 7th Feb 2010 01:35 Edited at: 7th Feb 2010 02:08
How can we destroy a edit box after we use button?
There is a destroy or delete command?

Thx for help.

Edit : I understand now that all "gadgets" are like windows, so to close a button, just use close window and other.
So repaint will be "Paint menu" and go on.

^^

The Power System Developer
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 8th Feb 2010 23:08
Ok now all is going.
I found a bug i think, i tried to use some of LISTVIEW command to try to get it work, but nothing.

LSV_LIST, LSV_REPORT, etc.
It wasn't stable, it runs or not runs (most of times) when it want.

Another thing we need, i think is to change the colors of text and trasparency in labels and in some other features, like in the TREEVIEW.

Great work Boy, you are giving us the possibility to grow and learn much.

Waiting for you.

The Power System Developer
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 9th Feb 2010 16:50
Sorry if i'm the one posting, but i'm working on a project of a game and other things so i'm testing this plugin totally.

I discovered that the problem on the LISTVIEW is only on the main window cause in the secondary it work more stable.
In the main it create the view but don't show the items.
So i will use the treeview to go around the problem and i will test the treeview too.

I'm developing a messenger that will be moved in a MMORPG game project and used as stand alone.
I already developed the server side for linux, and work charm.

I wanted to use the listview like the list of firends connected on the main win.

I will give you news, and with the help of Brandy Boy i think this will be the greatest plugin.

Long life to dark basic!!

The Power System Developer
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 9th Feb 2010 18:34 Edited at: 9th Feb 2010 18:38
I can't seem to make a trackbar inside of a tab window. This is the code I have



What happens is the trackbar is not adjustable and it stays visible regardless of the tab I'm on.

Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 9th Feb 2010 23:23 Edited at: 9th Feb 2010 23:49
Quote: "I discovered that the problem on the LISTVIEW is only on the main window cause in the secondary it work more stable.
In the main it create the view but don't show the items."

I fixed that.

Quote: "I've tested a tip to go around the status bar auto width fix.
I've added variable for last width and height and if changed he rebuild the status bar."

I fixed that.

Quote: "I can't seem to make a trackbar inside of a tab window."

I fixed that


Check out the first post, there's a new update!

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Feb 2010 03:25
Works! But now I realized it'd be sweet in my interface to have a vertical trackbar. Would that be possible to add?

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 10th Feb 2010 17:48
Is there anyway to get this to create gadgets in the main dbpro window in fullscreen? They work with Set Window On but they flash like theyre redrawing themselves when in fullscreen.


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Feb 2010 18:12
Windowed full screen works fine for me. Fullscreen exclusive does not draw any gadgets.

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 10th Feb 2010 19:03
Quote: "Windowed full screen works fine for me. Fullscreen exclusive does not draw any gadgets."


Same here. But my GUI and all my images look really bad in windowed full screen, because of the resolution. Then my gadgets are all mis-aligned. Is there anyway around this? I guess we have to wait for Brendy Boy.


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Feb 2010 19:14
Quote: "Same here. But my GUI and all my images look really bad in windowed full screen, because of the resolution. Then my gadgets are all mis-aligned. Is there anyway around this? I guess we have to wait for Brendy Boy."


I haven't noticed this when switching between resolutions to test it out. Send a screenshot.

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 10th Feb 2010 19:36 Edited at: 10th Feb 2010 19:37
I'm just saying that for instance, my background image at my main menu is 1024x768. That works fine with this and if it was in fullscreen exclusive:



If I switched to(thats how I assume you do it):


It looks terrible because it's stretching because of the maximize window. I guess have a couple options. Stick with a windows based GUI and redo my images, or write a GUI that isnt Windows based.


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 10th Feb 2010 20:06
I discovered some other bugs.
I'm trying to create a menu that come out or disappear when i press HOME buttone, like the one in the MSN messenger pressing ALT.

Well, when i try DELETE MENU function it say that isn't present in the DLL.
Can we have a change state for enable or disable menu view?

If i find others i will notice to you.

Thx for fixing the other bugs. You are the best!

The Power System Developer
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Feb 2010 20:21
Is it possible somehow to have right-aligned text (particularly on a label?)

@FireIndy - putting in your code indeed caused the bbb gadgets and stuff to stop showing up.

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 10th Feb 2010 22:38
Quote: "@FireIndy - putting in your code indeed caused the bbb gadgets and stuff to stop showing up."


So yeah, unless Brendy Boy replies, Im gonna have a lot of work to do Or Ill just work in windowed mode the rest of my life


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 10th Feb 2010 23:57
Ok, we miss another important thing : TREEVIEW GET DOUBLE CLICKED ITEM if we can have it is a great thing.

Treeview has already icons implemented better than the listview one, so we can use it to do some multi nested list with icons and so finally clickable double times.

Thx Brandy Boy.

The Power System Developer
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 11th Feb 2010 00:02
Quote: "Works! But now I realized it'd be sweet in my interface to have a vertical trackbar. Would that be possible to add?"

It seems that i forgot to add style parameter to make trackbar command. Temporary solution for that is: make trackbar as usual and then do this: window set style trackbar_handle,window get style(trackbar_handle)||TBS_VERT
At the beginning of you code add this: #constant TBS_VERT 0x0002


Quote: "I discovered some other bugs.
I'm trying to create a menu that come out or disappear when i press HOME buttone, like the one in the MSN messenger pressing ALT.

Well, when i try DELETE MENU function it say that isn't present in the DLL.
Can we have a change state for enable or disable menu view?"

I will fix that for the next update.


Quote: "Is it possible somehow to have right-aligned text (particularly on a label?)"

do this: window set style label_handle,window get style(label_handle)||SS_RIGHT
At the beginning of your code add this: #constant SS_RIGHT 0x00000002

This are all alignments that are possible:
#constant SS_LEFT 0x00000000
#constant SS_CENTER 0x00000001
#constant SS_RIGHT 0x00000002


As for problems where gui staff isn't visible in fullscreen exclusive mode - i don't know a solution for that.
If you want full screen with the gui visible use fulldesktop as a screen type and remove set window on command.

God is real unless declared integer.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 11th Feb 2010 01:05 Edited at: 11th Feb 2010 01:31
Great Brandy!!!
At the end of new update i will show my work, so you can be proud of your work too.

If you want we can exchange our MSN id to help each other.
I code 18 hour a day so i'm always connected.

Greetings again!!!



Edit: there is a way to set all windows inside a window centered related to the main win without using WINDOW SET POSITIONS on every WM_SIZE the loop catch?

The Power System Developer
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 11th Feb 2010 01:48
Quote: "If you want full screen with the gui visible use fulldesktop as a screen type and remove set window on command."


What exactly do you mean by use fulldesktop as screen type?


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 11th Feb 2010 02:55 Edited at: 11th Feb 2010 02:56
I'm woriking to give help to Brandy, reading some on MSDN site.
Ok another thing i think is important is the trasparency on the controls.
See images to see the work i'm doing and what is to add:



Checkbox is not transparent.



And this is the work i done after the big work on the server side in linux.
I go round some problems, so i added a toolbar to start to chat with the selected friend in the list, but i think we do better with the double clicked in the treeview.
I choosed treeview cause i think is best than the listview in this case.

I tried to see if there are some CB_ style to add with the SET WINDOW STYLE but they not work, mybe i don't understand where the code are posted in the MSDN site.



The Power System Developer
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 11th Feb 2010 03:22
Quote: "What exactly do you mean by use fulldesktop as screen type?"

In the editor (synergy or which ever you use) in properties tab you can set the application name, type, icon, media, screen type,resolution etc.

God is real unless declared integer.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 11th Feb 2010 03:36 Edited at: 11th Feb 2010 03:57
Quote: "In the editor (synergy or which ever you use) in properties tab you can set the application name, type, icon, media, screen type,resolution etc.
"


Hmm. That basically did what I did earler with the maximize window thing. It looks yucky because of my image res compared to my monitor res. Thanks Brendy boy for your help. I guess Ill have to think of something.

Edit: If anyone can think of a way to use this in fullscreen exclusive mode, please let me know


Want to work on Desolation?
Email: davekramer@live.com ; MSN: davekramer@live.com http://www.youtube.com/watch?v=8jv73JP8_44
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 12th Feb 2010 17:40 Edited at: 12th Feb 2010 17:44
I will do some try for fullscreen, and i will let you know.

For the rest:
I've done some routine to refresh all Messenger window by handle:

function RefreshWindow(handle got from get event)
window set width,height window set position
depending on the main_win widht, height
on WM_SIZE
end function

for the moment i'm going around the problem in this way, we will see if Brandy can put inside an auto arrange related to the main_win or the win where the "windows" are.

This is my hint for the moment.

The Power System Developer
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 12th Feb 2010 18:07
I don't see a way to set the updown controls up and down arrow values. I want to be able to increment or decrement by a variable value. Is it possible?

xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 13th Feb 2010 08:15
ANother bug is the images in the imageslist are supported in little colors. I don't understand wich type of file we can manage in it. They seems to be CGA old type with 4 colors ehehheh.

Is possible to have a list of supported files and in which format we can save them?

Thx Brandy!


The Power System Developer
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 14th Feb 2010 04:43
Quote: "I don't see a way to set the updown controls up and down arrow values. I want to be able to increment or decrement by a variable value. Is it possible?"

There will be a command for that in the next update.

Quote: "ANother bug is the images in the imageslist are supported in little colors. I don't understand wich type of file we can manage in it. They seems to be CGA old type with 4 colors ehehheh.

Is possible to have a list of supported files and in which format we can save them?"

The color format imagelist uses is ILC_COLOR8. This is a description of that format from visual studio: Use an 8-bit DIB section. The colors used for the color table are the same colors as the halftone palette.
Currently you can only add bitmap files to imagelist. You can't save the contents of an imagelist to a hard drive.

God is real unless declared integer.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 14th Feb 2010 23:11 Edited at: 14th Feb 2010 23:22
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?

Liopriwo
14
Years of Service
User Offline
Joined: 2nd Dec 2009
Location:
Posted: 15th Feb 2010 15:17
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.

Login to post a reply

Server time is: 2024-09-21 01:56:36
Your offset time is: 2024-09-21 01:56:36