Ok, here are the updated keyword file. and the changes are listed below.
--------------------------------------------------
-------------BBB GUI Keywords Update--------------
--------------------------------------------------
Old keywords file command total = 365
New keywords file command total = 372
Removed commands
TREEVIEW INSERT ROOT - Function was not exported to the DLL file.
--------------------------------------------------
Modified commands
-----
Old...
EDITBOX SCROLL CONTENT=main.htm=Editbox, horizontal, vertical
EDITBOX SCROLL CONTENT=main.htm=Editbox, action
New...
EDITBOX SCROLL CONTENT=main.htm=[Editbox, horizontal, vertical] [Editbox, action]
-----
-----
Old...
TREEVIEW INSERT ITEM=main.htm=(Treeview, title, image number, selected image number, parent item)
New...
TREEVIEW INSERT ITEM=main.htm=[(Treeview, title, image number, selected image number, parent item)] [(Treeview, title, image number, selected image number)]
-----
--------------------------------------------------
Added commands
GET CLICKED RADIOBOX=main.htm=(*No parameters*)
TOOLBAR SHOW BUTTON=main.htm=Toolbar, index, state (0 or 1)
LISTBOX ADD FILE LIST=main.htm=Listbox, Style, Path
MAKE RICHEDITBOX=main.htm=(Position x, position y, width, height, style, parent)
MAKE CHARFORMAT=main.htm=(*No parameters*)
CHARFORMAT SET EFFECT=main.htm=CharFormatPTR, mask, style
EDITBOX SET CHARFORMAT RichEditbox, style, CharFormatPTR
--------------------------------------------------
By the way, the command. Listbox_Set_Selected_Item(struct HWND__ *,char *) What is the "char *" parameter? I know the version, "Listbox, item_index" but not the "Listbox, char *" version.
Also the command. Listview_Insert_Group(struct HWND__ *,int) what is the parameters for that as well?
I'll add these commands to the keywords file after I know the parameters.
Now some of the commands don't compile for me.
1. Enumerate System Fonts
2. Editbox Get Selected Char
3. Editbox Get Line From Char
4. find_window2
These are exported functions, but when I try to compile them, they don't work.
Here is a test for you to try.
(Note these functions are not in the updated keywords file yet.)
Rem Using latest DLL version.
Rem Just compile these commands.
Rem DLL function viewer says...
Remstart
struct HWND__ * __cdecl Find_Window2(int,int,char *,char *)
int __cdecl Editbox_Get_Line_From_Char(struct HWND__ *,int)
int __cdecl Editbox_Get_Selected_Char(struct HWND__ *,int)
void __cdecl Enumerate_System_Fonts(class CStringList *)
Remend
Rem Now try to compile them.
`Enumerate System Fonts TEST_STRINGLIST
`NULL_RETURN = Find Window2(NULL_INT,NULL_INT,"Null","Null")
`Line_Index = Editbox Get Line From Char(NULL_EDITBOX, 1)
`Char_Index = Editbox Get Selected Char(NULL_EDITBOX, "a")
So as you will see they will not compile.
-------------------------
Bug reports.
1. The commands "Get Clicked Radiobox " and "Get Clicked Checkbox" always return 0. I assume the command should return the ID of the clicked Radiobox or Checkbox.
Rem Bug Report 1
Start BBB GUI
Sync On
Sync Rate 60
Sync
DBPRO_Window = Get DBPro Window()
Label = Make Label(0,0,640,480,"",DBPRO_Window)
Check_1 = Make Checkbox(50,50,100,20,"Check_1",Label)
Check_2 = Make Checkbox(50,80,100,20,"Check_2",Label)
Radio_1 = Make Radiobox(200,50,100,20,"Radio_1",Label)
Radio_2 = Make Radiobox(200,80,100,20,"Radio_2",Label)
Text_Label_1 = Make Label(320,140,200,20,"",Label)
Text_Label_2 = Make Label(320,170,200,20,"",Label)
Do
Window Set Text Text_Label_1,"Checkbox clicked = " + Str$(Get Clicked Checkbox())
Window Set Text Text_Label_2,"Radiobox clicked = " + Str$(Get Clicked Radiobox())
If Escapekey()= 1 Then End BBB GUI
Sync
Loop
2. The command "Window Set Icon" does not work.
Rem Bug Report 2
Start BBB GUI
Sync On
Sync Rate 60
Sync
Win_Icon$ = "dbpro_icon.ico"
DBPRO_Window = Get DBPro Window()
`Windows Set Icon Win_Icon$ ` <--- This works
Window_1 = Make Window(200,100,"Window_1",DBPRO_Window)
Position Window Window_1,10,10
Window_2 = Make Window(200,100,"Window_2",DBPRO_Window)
Position Window Window_2,300,10
Window Set Icon Window_1,Win_Icon$ ` <--- This does not work :(
Wait Key
End BBB GUI
3. The command "Toolbar Show Button" does not work. (Could not find function '?Toolbar_Show_Button@@YAHPAUHWND__@@HH@Z' in 30:bbb_gui.dll)
-------------------------
Feature request.
So whenever you have the time, here are some features I would like to see in this great plugin.
1. Help files. (I might be able to help you out on some of it if I have the time. First though I am working on something else for this plugin, I'll post about it soon.)
2. For the commands, "Window Set Icon" and "Windows Set Icon" I would like to see it be able to use BMP files. (Even though I like ICO better
)
3. Adding the "BBB" prefix to all commands.
4. Adding icon support for menus.
5. And other various things could be added...
Panel gadgets
Font Dialog
Rich Editbox
ect...
And that's all I can think of for now.