with the following code I can create e.g. TextGadget from DLL to my
initialize window.
Code for EXE:
Code: Select all
OpenWindow(0,0,0,600,260,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"")
CreateGadgetList(WindowID(0))
container = ContainerGadget(#PB_Any,0,0,295,170)
CloseGadgetList()
OpenLibrary(1, "pb.dll")
CallFunction(1,"initPB", GadgetID(container))
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver
CloseWindow(0)
CloseLibrary(1)
Code: Select all
ProcedureDLL initPB(hWnd)
UseGadgetList(hWnd)
TextGadget(10,0,00,100,20,"hello world!")
EndProcedure
Has someone collect some experience with this such of problem
or know where I can find more information about this problem?
Background:
I'd like to use DLL as a Plugin. With this Plugin I want to set
additional Gadgets(Text, String, Panel) in the existing window.
Many thanks in advance for each suggestion.
Cheers
Daniel