TailBite 1.0 Preview, soon in PureProject and PureArea

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

sharkpeter
User
User
Posts: 11
Joined: Sat Oct 02, 2004 5:02 pm
Location: Chemnitz

Post 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
PB3.94 bis 5.xx / Win98/98SE/ME/XPProSP3/WINVista-X32/WIN7HP-X64/WIN8PRO-X32

Forum Falko und Jens

Portal / Projekt / Mallorca
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

hi,

New Version : TailBite V1.3PR1.846

- added Language support (TailBite\Catalogs\English.catalog)
- many minor bugs found
- have fun translating :D

Regards Klaus

Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

hi TS-Soft,

the TB_Libs can be removed. I think no one needs them :wink:

TB_GadgetExtension :?: MyPaintBoxGadget.pb has 3 polink errors
TB_ImagePlugin :?: MyXBMImagePluginTest.pb crashes
TB_Include2DDrawing :?:
TB_IncludeFont :?:
TB_Debugger library :arrow: works

for the next release i will remove them from the package.

Regards Klaus
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Maxus
User
User
Posts: 71
Joined: Thu Feb 16, 2006 9:35 am
Location: Russia
Contact:

Post 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.
Sorry my English, I'm Russian
AMT Laboratory
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

@Maxus,
Please supply a snippet for what is not working :wink:

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
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

No, this is not work, it's all play ;)
Sorry, couldn't help myself :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply