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
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 2nd Mar 2011 20:00
That black out happens when the dbpro window doesn't have the WS_CLIPCHILDREN style applied. Maybe it's getting removed somehow?

[b]
A r e n a s
15
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 3rd Mar 2011 19:07 Edited at: 3rd Mar 2011 19:30
I remember editing the code to try to solve a problem a while ago, and i definitely remember removing this line in the debugging process. Thanks for the help

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 4th Mar 2011 17:53 Edited at: 4th Mar 2011 17:54
Whenever you have time Brendy boy, a new command you might want to add this is plugin is...

Window Get Keystate(Window)

Or

Windows Get Keystate()

Since DBPro's keystate commands don't work in the BBB GUI created windows, I thought this will be a nice command to add. Since it will also help with editboxes to find out when the user presses enter.

Also, I'll just show you some code what keystates don't work with the new windows.

A r e n a s
15
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 4th Mar 2011 20:02 Edited at: 5th Mar 2011 20:33
What i think would be useful is a way of selecting text through the computer so a piece of text can be highlighted and effectively this can lead to syntax highlighting (in conjunction with rich edit boxes).

Also, is it possible to rename a tab? It would save so much time if this was possible, i dont want to delete and remake, purely rename, thanks

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 7th Mar 2011 23:29 Edited at: 8th Mar 2011 22:24
@ A r e n a s

Quote: "Also, is it possible to rename a tab? It would save so much time if this was possible, i dont want to delete and remake, purely rename, thanks "


I don't think there is a command yet for renaming tab titles. since the "window set text" won't work on a tab item index. So deleting tab is the only way you can do it for now until that command is added.

@ Brendy boy

Quote: "There are available commands to determine if a mouse is being clicked inside a control, such as: GET CLICKED STATIC(), STATIC GET STATE(static) etc.."


Isn't that for static images? Since I have been testing this, and it does not return anything on other controls.



If it is supposed to work on everything, how would you use it then?


[Edit]

I have some more bug reports.

1. Just a small thing, but on your keywords file for your next update there some command that are repeated.




Since I use the keywords as my help file, I guess that's why I found them.

2. On toolbar style, "TBSTYLE_WRAPABLE" (I don't know about other styles) on every last item before a new row starts, the button state is always 2. And you can't get the state of that button as well. Here is a attached example.

Attachments

Login to view attachments
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 9th Mar 2011 01:00
Quote: "I don't think there is a command yet for renaming tab titles."

That command will be added in the next update

Quote: "Isn't that for static images?"

You're right, it is. I'm currently working on functionality that will allow to determine if mouse is being clicked inside most of the controls, if not all.

Quote: "What i think would be useful is a way of selecting text through the computer so a piece of text can be highlighted and effectively this can lead to syntax highlighting (in conjunction with rich edit boxes)."

I will try to add that command for the next update.

Quote: "Whenever you have time Brendy boy, a new command you might want to add this is plugin is.."

I started working on this but it isn't that simple so it won't be done for the next update.

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 9th Mar 2011 21:32
Quote: "I started working on this but it isn't that simple so it won't be done for the next update."


Allright, after some testing, if you use a DBPro window you can still get keystates and mouseclicks over gadgets.

Also what about the toolbar bug I said on my last post?

Thanks again for all your support Brendy boy.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 9th Mar 2011 21:47 Edited at: 9th Mar 2011 22:03
Quote: "Also what about the toolbar bug I said on my last post?"

I didn't see that you edited your post, i will check the attached example right now

EDIT:
That is a bug caused by my try to simplify the use of the command.
That command will have to be changed a bit

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 10th Mar 2011 21:29 Edited at: 10th Mar 2011 21:30
Ok then.

Also the "Progressbar Set Color" command does not work. I tested on XP and Windows 7. I am not sure if the Windows GUI supports progressbar color change. (at least I have not seen any programs use different colors on progressbars.)

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 10th Mar 2011 22:02
Quote: "Also the "Progressbar Set Color" command does not work. I tested on XP and Windows 7. I am not sure if the Windows GUI supports progressbar color change."

that command works when visual styles aren't applied to progressbar.
since visual styles are applied by default on every control that command is now useless

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 11th Mar 2011 03:12 Edited at: 11th Mar 2011 06:26
Found another bug.

The command "Update Window" is missing from the DLL string table (Could not understand command at line...)

[Edit2] Never mind about this question. I had the wrong syntax for the command.

And I have on question. Here is the following code.



If I move the child window over the label, the window will not redraw. And if you use the "Paint Window" command, it will only draw the label on the child window. Am I missing a window style to make the window draw correctly?

[Edit]

Is this also a bug?



This works if you use the newly made window "w" but if you use the DBPro window, it does not work.

[Edit 3]

I also wanted to let you know about two more things.

The command "Mouse On Toolbar Button" only works if the toolbar has the toolbar style. "TBSTYLE_TOOLTIPS" So I am not sure if you meant that command to only work with that style. So I just wanted to let you know about it.

The command "Get Clicked Toolbar Button ID" does not seem to return anything. Only sometimes it returns 0 instead of -1. Add it to your toolbar example you made to see if it returns anything.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 12th Mar 2011 01:28
Quote: "If I move the child window over the label, the window will not redraw. And if you use the "Paint Window" command, it will only draw the label on the child window. Am I missing a window style to make the window draw correctly?"

No, it's a feature of windows, i can't fix that. It would require a specific fix for that specific situation.

Quote: "Is this also a bug?"

No, it's a feature but it can be extended to work on dbpro window as well.

Quote: "
The command "Mouse On Toolbar Button" only works if the toolbar has the toolbar style. "TBSTYLE_TOOLTIPS" So I am not sure if you meant that command to only work with that style. So I just wanted to let you know about it."

Yes, it was meant to work only with that style

Quote: "The command "Get Clicked Toolbar Button ID" does not seem to return anything. Only sometimes it returns 0 instead of -1. Add it to your toolbar example you made to see if it returns anything. "

The command works correctly, it just returns the id only once so you dont see because it happens very quickly

Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 12th Mar 2011 10:26
this is great just started using it yesterday and starting to get to grips with it making things similar to the examples but one thing that i cant see an example for is how to get your GUI objects into the main window created by DBPro is this possible or does it have yo be put in seperate windows
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 12th Mar 2011 11:19
Quote: "...but one thing that i cant see an example for is how to get your GUI objects into the main window created by DBPro is this possible..."

just set the dbpro window as parent window and that's it. Yo ucan get the handle to dbpro window with GET DBPRO WINDOW() command

Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 12th Mar 2011 11:33 Edited at: 12th Mar 2011 15:01
thanks for the quick reply, i knew it would be something like that just couldnt get it to work, this is great btw

EDIT: Found a bug not sure if it has been mentioned yet but when i close an application that uses this plugin when i make changes to the code and try to compile again it fails just saying "Compilation Failed syntax errors" in the IDE

so i close the IDE and when i reopen it the application appears again as if it has been closed
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 15th Mar 2011 02:13 Edited at: 15th Mar 2011 06:30
Teh Stone,

Quote: "EDIT: Found a bug not sure if it has been mentioned yet but when i close an application that uses this plugin when i make changes to the code and try to compile again it fails just saying "Compilation Failed syntax errors" in the IDE

so i close the IDE and when i reopen it the application appears again as if it has been closed "


Are you closing your program with the command "End BBB GUI"? also, maybe you could show a code snippet?


Brendy boy,


Quote: "No, it's a feature but it can be extended to work on dbpro window as well."


Well I guess I should have said then that it does not work on a DBPro window. However after more testing, at least it can work on a child window that is on a DBPro window.


Here are some more questions/Bug reports.

1. The keyword "Windows SET FONT=main.htm=[Size, font name, italic, underline, strikeout, bold] [Font handle]" should be "Windows SET FONT=main.htm=[Size, font name, underline, strikeout, italic, bold] [Font handle]". (rearranged the parameters as the original parameters were in the wrong order.)

2. The "Windows Set Icon" works, (Thanks for fixing that ) but it does not work on a child window.

3. You did not include the listbox constants and a example for it in your plugin. (I would help out with that, but see below on what I am working on.)

Even though you know where to look, but here is the link to the msdn listbox styles. Link

4. You have the command "TREEVIEW DELETE ITEMS" but you don't have the command. "Treeview Delete Item" (Since the command "Delete Window does not work, and you have it for listviews, listboxes, ect...")

[Edit] 5. The Command "Window Set Color" seems buggy. When this command is call repeatedly, it sometimes crashes. If you need it I'll post some code.


I guess with all these questions you must be wondering that I am using this plugin for. So here is what I am working on. I am planning to make a program like windows forums designer, so it will make it much easier to place the windows controls. it will be open source for anyone to add whatever they want to the program.

When you finish you update to fix some of the bugs I listed on the posts above, then around that time I'll release the program.

A image is attached of the program. Comments and suggestions are welcome also.

Attachments

Login to view attachments
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Mar 2011 21:59
Quote: "The "Windows Set Icon" works, (Thanks for fixing that ) but it does not work on a child window."

Child windows can't have icons.

Quote: "3. You did not include the listbox constants and a example for it in your plugin. (I would help out with that, but see below on what I am working on.)"

Maybe for one of the future updates

Quote: "4. You have the command "TREEVIEW DELETE ITEMS" but you don't have the command. "Treeview Delete Item" (Since the command "Delete Window does not work, and you have it for listviews, listboxes, ect...")"

I will try to add this command for the next update

Quote: "5. The Command "Window Set Color" seems buggy. When this command is call repeatedly, it sometimes crashes."

Can't fix that. The command calls two WINAPI functions which both need to be called so there's no space for bug hunting there

Quote: "I guess with all these questions you must be wondering that I am using this plugin for. So here is what I am working on. I am planning to make a program like windows forums designer, so it will make it much easier to place the windows controls. it will be open source for anyone to add whatever they want to the program."

It looks great, keep it up, I myself planned to create something like that but i don't have enough of free time

Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 15th Mar 2011 22:17
yeah i added an END BBB GUI and it works now silly me
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Mar 2011 22:17
And here's the newest partial update

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 16th Mar 2011 22:49 Edited at: 16th Mar 2011 22:49
Quote: "And here's the newest partial update"


Once again, many thanks for your help and support.

Quote: "Child windows can't have icons."


They can if you have the style. "WS_CAPTION" At least the command "Windows Set Icon" works on child windows.

Quote: "It looks great, keep it up "


Thanks.


And now 2 more questions.

1. I am doing something wrong or is this a bug. Here is the following code...



The button works fine. But the editbox, you can't type anything. And for the combobox you can only type things in if you click the dropdown, then type. So somehow the editbox is not getting the focus as it should.

Also to note that if I don't make the window a child, everything will work fine.

2. When you create a listbox. is your DLL code are you using the style "LBS_MULTICOLUMN" to create the listbox? since I am asking because I am trying to use the style WS_VSCROLL for the listbox (Thats one of the styles in LBS_STANDARD) and it will not work. (I am guessing since it still has multiple columns even though I did not use that style)

Soon I'll update your BBBGUI_CONSTANTS file with the listbox styles for you.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 17th Mar 2011 17:44
Quote: "WS_CHILD||WS_BORDER||WS_CAPTION) "

Quote: "...But the editbox, you can't type anything..."

It seems that some window styles can't be combined together, what you have here is obviously one of those combinations that doesn't work together. Remove one of them and then it will work.

Quote: "And for the combobox you can only type things in if you click the dropdown, then type"

Thats a feature of combobox, I can't change that.

Quote: "2. When you create a listbox. is your DLL code are you using the style "LBS_MULTICOLUMN" to create the listbox?"

Yes, I'm using that style, should I remove it?

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 17th Mar 2011 20:35 Edited at: 17th Mar 2011 21:30
Quote: "It seems that some window styles can't be combined together, what you have here is obviously one of those combinations that doesn't work together. Remove one of them and then it will work."


It seems that any style that includes the window header the editbox does not work.

Quote: "Yes, I'm using that style, should I remove it?"


I would prefer that, since you can add LBS_MULTICOLUMN style anyway when you create the listbox.


Here is a bug I found.



The tooltips don't display the correct strings. (maybe memory address wrong?) Also if I remove the arrays one of the tooltips shows up. (but on wrong buttons)

The media is in the download.

[Edit] The command "Listview Set Highlight Color" does not seem to work. Does it work only with a certain style?


Also as a future feature request would be nice to be able to add styles to toolbar tooltips.

By the way, are you going to fix the TBSTYLE_WRAPABLE bug by your final version of 1.4.0.0?

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 17th Mar 2011 20:39
Also here are the listbox constants.

Here is what was added.

Attachments

Login to view attachments
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 17th Mar 2011 21:59 Edited at: 17th Mar 2011 22:02
Quote: "Here is a bug I found... The tooltips don't display the correct strings. (maybe memory address wrong?) Also if I remove the arrays one of the tooltips shows up. (but on wrong buttons)"

Fixed

Quote: "Also as a future feature request would be nice to be able to add styles to toolbar tooltips."

I will add that in the next update

Quote: "By the way, are you going to fix the TBSTYLE_WRAPABLE bug by your final version of 1.4.0.0? "

Yes

Quote: "I would prefer that, since you can add LBS_MULTICOLUMN style anyway when you create the listbox."

Removed

Quote: "[Edit] The command "Listview Set Highlight Color" does not seem to work. Does it work only with a certain style?"

Yes, only with: LVS_REPORT||LVS_OWNERDRAWFIXED

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 18th Mar 2011 22:36
Here is question, here is the following code.



If I resize the child window at a certain point it will stop. I don't think its page size or the "Window_Limit" height as making them larger does not work.

What I am trying to get is to be able to resize the child window to the end of the scrollbar. Am I doing something wrong? or did you but a limit on how far you can go on the scrollbar?
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Mar 2011 22:50 Edited at: 18th Mar 2011 22:58
never mind

EDIT:
After a little testing it seems that window maximum height is is a little bigger that desktop height. Why? I have no idea and can't fix it.

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 21st Mar 2011 01:02
Here's the newest partial update. It fixes the bug in returning the toolbar button styles.

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 22nd Mar 2011 20:25
Quote: "Here's the newest partial update. It fixes the bug in returning the toolbar button styles."


Thanks for the update. Now since the toolbars are fixed, now I'll be able to release the forms designer soon.

Also a feature request would be to add a command "Treeview Expand Items Treeview, Item" for expanding and child items.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 22nd Mar 2011 21:58 Edited at: 22nd Mar 2011 22:34
Quote: "Also a feature request would be to add a command "Treeview Expand Items Treeview, Item" for expanding and child items. "

Done

Here the newest partial update

EDIT: I forgot to comment some code in BBBGUI Constant file, here's the updated version

Attachments

Login to view attachments
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Mar 2011 10:41
hi
I went to run the latest version of
BBB Gui examples 1.4.0.0

so far the only command not accepted was

position window ww,x,y+diff

this was from
WebBrowser.

other than that every thing worked

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Mar 2011 11:09
umm it seems even with "position window" out every thing runs fine
I tried "WINDOW SET POSITION ww,x,y+diff"

nothing changed
worked like it should

If a thought is Just a thought ~ so whats the main thought ?
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd Mar 2011 13:56
Quote: "hi
I went to run the latest version of
BBB Gui examples 1.4.0.0

so far the only command not accepted was

position window ww,x,y+diff"

I just checked the WebBrowser example and you're right->POSITION WINDOW is a command from Matrix1 Utils, it should be WINDOW SET POSITION which is a command from BBB GUI, i'll corect that for the next update

gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Mar 2011 18:20
Brendy boy

an error of a command from anther files is no biggy )

but when it's your own program then it's unexpected

at least it every thing worked like it was needed too

If a thought is Just a thought ~ so whats the main thought ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 24th Mar 2011 00:37
Also there is a command you can remove from your keywords file "BBB Toolbar_CheckButton" (It also does not compile.) since there is BBB "Toolbar_SetButtonState".

Also I like your example on the Toolbars that you redone. It looks good, as it has also helped me out on the toolbar states that you redone.
gwheycs62egydws
14
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 24th Mar 2011 01:43
now if only some one would only update
Dark Physics then DBP would be better than the other

ms junk

or at least create dll
for the missing and not working as good as it could parts

If a thought is Just a thought ~ so whats the main thought ?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 26th Mar 2011 00:03 Edited at: 26th Mar 2011 00:40
@ Resourceful

Quote: "now if only some one would only update
Dark Physics then DBP would be better than the other

ms junk

or at least create dll
for the missing and not working as good as it could parts"


Well I agree that Dark Physics needs to be updated. I hope TGC will do that soon, since it has so much potential of being a great plug-in.


@ Brendy boy

I have a few more things to let you know about.

1. If I use the command "BBB Treeview_DeleteItem" on the first child item of a parent item, it will delete both the parent and the child (which I want only the child item deleted) items. Is this a bug or did you program it that way?

2. I tested the rebar example on XP OS and the rebars don't show up.

3. The command "Window Set EXStyle" or Window Get EXStyle" does not work. Here is the following code.



[Edit]
4. The command "Window Set Style" does not seem to work on editboxes or comboboxes, but it does work on windows and listboxes. (And maybe others that I have not tested.)


Also Here is one of the styles I forgot to add to the listbox constants.

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 26th Mar 2011 00:42 Edited at: 25th Jul 2011 02:17
BBB GUI Windows Designer V1.2

This program is meant for designing you user interface on your program then to export the code needed to load it in DBPro.

Currently supported features.

Saving and loading projects
Mouse selectable controls.
Window controls able to place, modify, and export.

Window
Button
Label
Checkbox
Radiobox
Combobox
Groupbox
Listbox
Treeview
Listview
Updown - New!
TabControl - New!
Trackbar - New!
Menus

More features will be added in future releases of this program.

Changelog:




Notes:
The old file format will not be compatible in V1.2. (In the future I'll try to make it convertible.)

Here are some bugs that you might want to be aware of. Though, these will be fixed in future updates on this program.

1. Some styles will not update in the editor, though it will still export with the styles listed.
2. There might be a few bugs with the menu editor (such as not updating the menu bar, or a menu item (Submenu) appearing at the start of the menu bar when it's not supposed to. So in future updates the menu editor code will be revised. Also to note that if you get a duplicate item on the menu bar, it will not affect your exported code.



Enjoy the program!
A screenshot of the program is in next post.

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 26th Mar 2011 00:43 Edited at: 24th Jun 2011 23:02

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 26th Mar 2011 00:46 Edited at: 24th Jun 2011 23:04
Screenshot showing the menu editor.

Attachments

Login to view attachments
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 26th Mar 2011 00:47 Edited at: 24th Jun 2011 23:04
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 26th Mar 2011 06:28 Edited at: 26th Mar 2011 06:30
Quote: "1. If I use the command "BBB Treeview_DeleteItem" on the first child item of a parent item, it will delete both the parent and the child (which I want only the child item deleted) items. Is this a bug or did you program it that way?"

the command calls the coresponding function from WINAPI, which unfortunatelly works in that way

Quote: "2. I tested the rebar example on XP OS and the rebars don't show up."

I deleted a part of the code that made the rebar function properly because it made something else not work properly so now i have to make rebars function properly in some other way

Quote: "3. The command "Window Set EXStyle" or Window Get EXStyle" does not work. Here is the following code."

Both commands call the coresponding function from WINAPI so they must function properly. If you don't get the desired results it's probably because you are trying to combine window styles that can't be combined together ->can't think of anything else that would cause the problems

Quote: "4. The command "Window Set Style" does not seem to work on editboxes or comboboxes, but it does work on windows and listboxes. (And maybe others that I have not tested.)"

The same as above

Quote: "Alright I decided to release the program now, though still not complete it should be usable by now."

Tried it, it looks great.

Quote: "There is still much more planned for this program such as...
Selecting windows controls by mouse."

I started playing with these, it can be done very easily. As soon i get some free time(next weekend perhaps) i'll give you the documented code for that unless you want messy code and figure out everything by yourself

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 28th Mar 2011 20:00
Quote: "Both commands call the coresponding function from WINAPI so they must function properly. If you don't get the desired results it's probably because you are trying to combine window styles that can't be combined together ->can't think of anything else that would cause the problems"


Strange... I know that the syntax is right, and on the code snippet I posted used the right styles. Guess I'll have to do some more testing.

Quote: "I started playing with these, it can be done very easily. As soon i get some free time(next weekend perhaps) i'll give you the documented code for that unless you want messy code and figure out everything by yourself"


Thanks for your offer. Though I already have partly done. (Actually it's in the program, but since I did not have time to finish it, I took it out.) Selecting the them by mouse is easy, what takes longer is the code for resizing the gadget. I should have done soon though.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 28th Mar 2011 20:15
Quote: "Thanks for your offer. Though I already have partly done. (Actually it's in the program, but since I did not have time to finish it, I took it out.) Selecting the them by mouse is easy, what takes longer is the code for resizing the gadget. I should have done soon though. "

i have both codes working

here they are [uncommented though]



you will also need the newest version of bbb gui

Attachments

Login to view attachments
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 28th Mar 2011 20:44
( BTW. You'r plugin owns )

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 29th Mar 2011 19:29 Edited at: 29th Mar 2011 20:31
Quote: "i have both codes working

here they are [uncommented though]"


Wow the code is great! I'll be able to use some of code for the editor then. Thank you.

By the way, the "Get Mouseclick" does not seem to work if the mouse is over a menu.

[Edit]
It seems that it does not work over rebars also. But as for menus I did some more testing and it only works for the DBPro window. But not other windows that have menus.

Also as a feature request, it would be nice for the drawing operation commands "draw rectangle, ect..." to be able choose which color you would want.
Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 31st Mar 2011 02:10
I've looked through this thread. I can't find a help file, or even a keyword/syntax list that is easy on the eyes. Are there any known help files? That would be appreciated, thanks.

If life were like a box of chocolates, I'd know what I would get... The one that got dropped on the floor and put back in the box.

Iye nehvur yoose spehl chehk, ahn mie tippyng izz fiyne.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 31st Mar 2011 03:03
@ Admiral MH
Quote: "By the way, the "Get Mouseclick" does not seem to work if the mouse is over a menu."

Quote: "[Edit]
It seems that it does not work over rebars also."

GET MOUSECLICK command works only on controls that are in the code i posted above. I didn't have time to make it work on every control, but now i have so it will be done in a day or two.

Quote: "Also as a feature request, it would be nice for the drawing operation commands "draw rectangle, ect..." to be able choose which color you would want. "

I will try to implement that feature.

@ Amo Deus Man
Quote: "I can't find a help file,"

No help files exist ...yet, but i'm working on them.
Quote: "or even a keyword/syntax list that is easy on the eyes"

Check the first page of this thread, or download a rar file from first post on the first page of this thread, in the "editor\keywords" folder there is a keyword file with all the commands and their syntax

Quote: "Are there any known help files?"

for the plugin itself, no but you can get a lots of info about control styles on the msdn page, just google for it

Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 31st Mar 2011 19:02
Ok. Thanks.

If life were like a box of chocolates, I'd know what I would get... The one that got dropped on the floor and put back in the box.

Iye nehvur yoose spehl chehk, ahn mie tippyng izz fiyne.
A r e n a s
15
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 31st Mar 2011 23:50 Edited at: 1st Apr 2011 00:10
Hi, me again.

Is it possible to detect the position of the cursor inside an editbox? I ask only cause at the moment there are issues with finding exactly where the users mouse is clicked in the box. It will only pay attention to changes made, and not to where the cursor has been placed.

Im also getting a strange problem in the new editbox style you made for us, when loading lines of code seperated by the two windows characters which act as a new line (chr$ 13 and 15), after one open of a file of text (displayed line by line with the new line seperating), it will display fine, but when i open the file a second time (or further times) the newlines are not placed into the editbox... I dont have any issues with this in a normal editbox, just the new version of the rich edit box you made for us. If you could solve that then it would be great, i'll attact an image to demonstrate what i mean.

NB, It seems that the length of the string i am inserting into the rich edit box may have an effect on this bug.

Thanks,

Attachments

Login to view attachments
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Apr 2011 23:49 Edited at: 2nd Apr 2011 00:04
Quote: "Is it possible to detect the position of the cursor inside an editbox?"

EDITBOX GET SELECTED CHAR(editbox, which char) should return the position of the caret if there is no selected text inside the editbox

Quote: "Im also getting a strange problem in the new editbox style you made for us, when loading lines of code seperated by the two windows characters which act as a new line (chr$ 13 and 15), after one open of a file of text (displayed line by line with the new line seperating), it will display fine, but when i open the file a second time (or further times) the newlines are not placed into the editbox.."

Can you provide the sample code, the error is happening probably because the text can't be set or get using the commands from editbox. Rich editbox has different way for setting and retrieving text -> I will add those commands

EDIT:
Quote: "By the way, the "Get Mouseclick" does not seem to work if the mouse is over a menu."

this can't be done unfortunatelly

Login to post a reply

Server time is: 2024-05-10 07:33:20
Your offset time is: 2024-05-10 07:33:20