Page 37 of 40
Posted: Sat Jun 02, 2007 11:58 am
by sharkpeter
Hi ABBKlaus,
good work

Thank you!
I have tested first with 1.3 PR 843 and i have some trouble by using with PB 4.10.
Falko say to me, that you have finisd a new version for PB 4.10, TB1.3 PR 844.
Than I had the error with the function SetGadgetItemText ...
This ist now OK with TB 1.3.PR 845. Also OK is the restart of compiler after
create the new libraryfile.
Greatings Jens
Posted: Sat Jun 02, 2007 1:36 pm
by ABBKlaus
@TSSoft: Commandlineparameter is already added !
You can call TailBite.exe with the switch /SUBS:SubSystems\UserLibUnicode\PureLibraries\
@Sharkpeter: I really don´t know of an error with SetGadgetItemText, but maybe this is related to
PureBasic V4.10B1, where the path to PureBasic.exe is not updated in the registry.
And therefore TBManager.exe started TailBite.exe from your old TailBite folder !
Also OK is the restart of compiler after
create the new libraryfile
TailBite can not restart the compiler, something has changed internally so this :
Code: Select all
PostMessage_(#HWND_BROADCAST, RegisterWindowMessage_("PB_MSG_ID"), #PB_MSG_Restart_Compiler, 0)
isn´t working anymore
I made another testversion please download again
TailBiteV1.3PR1.845.zip
which shows the TailBite folder.
For now TailBite starts PBCompiler without /SUBSYSTEM "Name" should i change this ?
Regards Klaus
Posted: Tue Jun 05, 2007 7:27 pm
by ABBKlaus
hi,
New Version :
TailBite V1.3PR1.846
- added Language support (TailBite\Catalogs\English.catalog)
- many minor bugs found
- have fun translating
Regards Klaus

Posted: Tue Jun 05, 2007 7:42 pm
by ts-soft
Thanks for the new version
A Question: the TB_GadgetExtension work with PB4?
And the other TB_ ? or can i remove this
Posted: Tue Jun 05, 2007 11:20 pm
by ABBKlaus
hi TS-Soft,
the TB_Libs can be removed. I think no one needs them
TB_GadgetExtension

MyPaintBoxGadget.pb has 3 polink errors
TB_ImagePlugin

MyXBMImagePluginTest.pb crashes
TB_Include2DDrawing
TB_IncludeFont
TB_Debugger library

works
for the next release i will remove them from the package.
Regards Klaus
Posted: Thu Jun 14, 2007 12:11 am
by nicolaus
OK after a very long time i have work with TailBite i wond use it now but the TailBite was comse with jaPBe have no help file and examples for Tailbite.
So my question is wat is with the function TB_UsedWindow() and so from the old TailBite?
Examples to see how i must use it now was very nice.
regards,
nico
Posted: Thu Jun 14, 2007 12:23 am
by ts-soft
>> TB_UsedWindow()
this doen't work with PB > 3.94
This should do the trick:
Code: Select all
Procedure GetGadgetParent()
!EXTRN _PB_Object_GetThreadMemory@4
!EXTRN _PB_Gadget_Globals
!MOV Eax,[_PB_Gadget_Globals]
!push eax
!call _PB_Object_GetThreadMemory@4
!MOV Eax,[Eax]
ProcedureReturn
CreateGadgetList(0)
EndProcedure
Posted: Thu Jun 14, 2007 12:29 am
by nicolaus
ts-soft first thanks for the code. Now the next question about TB_SetGadget().
This also don´t wotk right now?
Wat is with all the TB_* functions fromTailBite?
regards,
nico
Posted: Thu Jun 14, 2007 12:36 am
by ts-soft
For TB_SetGadget() you can simple use the CreateGadget Lib from PBOSL,
the do the same in easier way for the new object management of PB4
TB_UsedWindow and TB_RegisterGadget is implementet in the new way in
one function! For more infos see the pbosl examples.
Posted: Thu Jun 14, 2007 12:41 am
by nicolaus
ok thats a way but have you any order ways without useing PBOSL or other libs? I dont want that my lib is dependent from other libs
thanks,
nico
Posted: Thu Jun 14, 2007 12:48 am
by ts-soft
>> I dont want that my lib is dependent from other libs
TB_SetGadget is not another lib? PBOSL is updated after a short time, so i
see no problem, but you can found the old includefiile with the old source for
this lib, but is no more supported, only the lib-version in pbosl is supported,
The source from pbosl doesn't work correctly as include!
Posted: Thu Jun 14, 2007 12:51 am
by ts-soft
Posted: Mon Jul 09, 2007 10:57 am
by Maxus
You can make your function accept variable arguments. To do so, you must include two or more ProcedureDLL's with the same name and an index number
This not work.
Posted: Mon Jul 09, 2007 11:24 am
by ABBKlaus
@Maxus,
Please supply a snippet for what is not working
This is from the TailBite manual and should work :
You can make your function accept variable arguments. To do so, you must include two or more ProcedureDLL's with the same name and an index number:
Code: Select all
ProcedureDLL MyFunction(arg1, arg2)
result = Pow(arg1, arg2)
ProcedureReturn result
EndProcedure
ProcedureDLL MyFunction2(arg1, arg2, arg3)
result = Pow(arg1, arg2)/arg3
ProcedureReturn result
EndProcedure
The only thing thats not working is this : (Optional parameters PB v>=4.02)
Code: Select all
ProcedureDLL MyFunction(arg1,arg2,arg3=1)
result = Pow(arg1, arg2)/arg3
ProcedureReturn result
EndProcedure
Regards Klaus
Posted: Mon Jul 09, 2007 11:27 am
by GeoTrail
No, this is not work, it's all play

Sorry, couldn't help myself
