jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

NoahPhense wrote:
gnozal wrote:Update

Changes :
Added procedure tooltips : if the mouse cursor is over a procedure and sits still over 1 second, a tooltip appears (it provides the same information as the calltips in the jaPBe status bar).
Where are these updates being posted?

- np
Go to the first page of this topic..... look where:

Download jaPBe V3
Download sources
Download Last BETA [EXE only]

the first option is the jaPBe to download..... :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Flype special edition :wink:
- added two styles for URLs in comments (bookmark and title)
- added 'CTRL+Click' option for URL hotspots
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

j'ai eu un petit soucis avec JAPBE 3.6.10.566 !!

si on désactive "Activer les Hotspots pour les url"
le code ci dessous ne marche pas !! :?

par contre si on active cette option , meme si l'option attenante
"Toujours visible" est décoché le code marche tres bien

c'est peut etre normal , mais ça méritais d'etre signalé :D

ce code se connecte sur la française des jeux et recupere les numero de l'euromillion (ça va me servir pour updater mon prg "Euro million")
les chiffres sont inscrit en bas de page du gadget editeur !! :D
si l'option est coché , on a des caracteres incoherent qui s'affichent


Sorry : Web Translation :lol:
I had small a concern with JAPBE 3.6.10.56 6!! if one decontaminates “To activate Hotspots for the URL” code Ci below does not go!! :? on the other hand if one activates this option, same if the contiguous option “Always visible” the code is stripped goes very well it east can be normal, but that deserved to be announced: D this code is connected on the Frenchwoman of the plays and recovers the number of the euromillion (that will be useful to me for updater my prg “Euro million”) the figures are registered at the foot of the page of the gadget editor!! : D if the option is notched, there are characters incoherent which are posted : D




;/ Author : Pille
; Proxy like this : "192.168.0.1:8080"
Global Site.s= "http://www.fdjeux.com/jeux/euromillions ... tirage.php"
;Global Site.s="http://michel.dobro.free.fr/index.htm"



ProcedureDLL.s Url2Text2(Url.s, OpenType.b,ProxyAndPort.s)
     ; 1 INTERNET_OPEN_TYPE_DIRECT Resolves all host names locally.
     ; 0 INTERNET_OPEN_TYPE_PRECONFIG Retrieves the proxy Or direct configuration from the registry.
     ; 4 INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY Retrieves the proxy Or direct configuration from the registry And prevents the use of a startup Microsoft JScript Or Internet Setup (INS) file.
     ; 3 INTERNET_OPEN_TYPE_PROXY Passes requests To the proxy unless a proxy bypass list is supplied And the name To be resolved bypasses the proxy. In this Case, the function uses INTERNET_OPEN_TYPE_DIRECT.
    
    isLoop.b=1
    INET_RELOAD.l = $80000000
    hInet.l=0
    hURL.l=0
    Bytes.l=0
    Buffer.s= Space (2048 )
    RES.s= ""
    
    
    
    hInet = InternetOpen_ ( "" , OpenType, ProxyAndPort, "" , 0)
    hURL = InternetOpenUrl_ (hInet, Url, #Null , 0, INET_RELOAD, 0)
    
     Repeat
         InternetReadFile_ (hURL,@Buffer, Len (Buffer), @Bytes)
         If Bytes = 0
            isLoop=0
         Else
            RES = RES + Left (Buffer, Bytes)
         EndIf
     Until isLoop=0
    
     InternetCloseHandle_ (hURL)
     InternetCloseHandle_ (hInet)
     ProcedureReturn RES
EndProcedure

ProcedureDLL.s Url2Text(Url.s)
     ProcedureReturn Url2Text2(Url,1, "" )
EndProcedure

Procedure.s recup_loto() ; toute la page web est dans "Url2Text(#Site)"
    
    Position = FindString (Url2Text(Site.s), "<DIV CLASS=" + Chr ($22)+ "numero" ,1) ; on va filtrer les ligne de text
    ligne$= Mid (Url2Text(Site.s),Position,220) ; pour trouver nos chiffres
     For i= 1 To Len (ligne$)
        car$= Mid (ligne$,i,1)
         If Asc (car$)>48 And Asc (car$)<57 ; si on tombe sur des chiffres
            car2$=car2$+car$ ; on garde
         Else
            car2$=car2$+ "" ; sinon on ecrit rien
         EndIf
         If car$= "<"
            car2$=car2$+ ","
         EndIf
     Next i
     ; ***** petite bidouilles pour virer les virgules en trop ***********
    car2$= ReplaceString ( car2$, ",," , "," )
    car2$= Right (car2$, Len (car2$)-1)
    car2$= ReplaceString ( car2$, ",," , "" )
     ; ****************************************************
     ProcedureReturn car2$
EndProcedure



;/ Test
 
MessageRequester (Site.s,Url2Text(Site.s))
OpenWindow (0,10,10,800,600, "resultat" , #PB_Window_SystemMenu )
CreateGadgetList ( WindowID (0))
EditorGadget (2, 10, 10, 800,580)


AddGadgetItem (2, -1, Url2Text(Site.s))
AddGadgetItem (2, -1, "les chiffres de l'euro million : " +recup_loto())


Repeat
    event= WindowEvent ()
    
Until event = #PB_Event_CloseWindow

Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

gnozal wrote:Update

Flype special edition :wink:
- added two styles for URLs in comments (bookmark and title)
- added 'CTRL+Click' option for URL hotspots
I am not able to download the latest beta..?

- np
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

NoahPhense wrote:
gnozal wrote:Update

Flype special edition :wink:
- added two styles for URLs in comments (bookmark and title)
- added 'CTRL+Click' option for URL hotspots
I am not able to download the latest beta..?

- np
There is no current beta, I am updating the stable version.

Direct link : http://people.freenet.de/gnozal/jaPBeForPB400.zip
Last edited by gnozal on Sat Oct 14, 2006 6:24 pm, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

dobro wrote:j'ai eu un petit soucis avec JAPBE 3.6.10.566 !!
No problem here.
<french>
Pas de problème ici (testé avec le build 573 et toutes les options URL cochées).
La dernière ligne est "les chiffres de l'euro million : 2,32,38,41,25,5,3" ; cela me semble correct ?
</french>
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

gnozal wrote:
NoahPhense wrote:
gnozal wrote:Update

Flype special edition :wink:
- added two styles for URLs in comments (bookmark and title)
- added 'CTRL+Click' option for URL hotspots
I am not able to download the latest beta..?

- np
There is no current beta, I am updating the stable version.

Direct link : http://people.freenet.de/gnozal/jaPBeForPB400.zip
Kewl.. thanks.

- np
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Bug fix : a click on a structure hotspot now starts the structure viewer as it should.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
mknjc
New User
New User
Posts: 4
Joined: Sun Oct 15, 2006 11:08 am

Post by mknjc »

Hi,

after updating to the new jaPBe Version it crashes often.

When I not working.
When I writing.
When I create a file.
When I save.

The Message is:
Crashed jaPBe wrote:An attemped read or write to/from an address to which thats process isn't allowed
I working under Win XP SP2.

Mfg mknjc
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

gnozal wrote:Pas de problème ici (testé avec le build 573 et toutes les options URL cochées).
La dernière ligne est "les chiffres de l'euro million : 2,32,38,41,25,5,3" ; cela me semble correct ?
</french>
oui c'est ça ! :D Merci ! , je recupererai donc la 573 :D
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

mknjc wrote:Hi,

after updating to the new jaPBe Version it crashes often.

When I not working.
When I writing.
When I create a file.
When I save.
Please download the debug version (EXE only) wich will give you a more precise error report (error module, error line...) : http://people.freenet.de/gnozal/jaPBeForPB400_DEBUG.zip
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- added : jaPBe will automatically enable the 'UserLibUnicode' subsystem to use the unicode versions of the installed userlibraries.
- added : jaPBe will automatically enable the 'UserLibUnicodeThreadSafe' subsystem to use the unicode+threadsafe versions of the installed userlibraries.
- updated 'Tailbite' tool in Project menu accordingly.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I am wondering why you add extra subsystems for unicode and thread.
All the functions can be compiled into a single library. Just read the readme in the LibrarySDK.
quidquid Latine dictum sit altum videtur
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

freak wrote:I am wondering why you add extra subsystems for unicode and thread.
All the functions can be compiled into a single library. Just read the readme in the LibrarySDK.
Sure, with the _THREAD _UNICODE postfixes ?
It's easier to build them with one click (custom Tailbite) without coding anything special. And Tailbite doesn't support unicode/threadsafe in one library (yet?).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I don't think it is a good idea to invent your own system just out of lazyness.

You can easily add stuff like the _UNICODE postfix with a macro, and compile
the same code multiple times with the different flags. (its what we do with the PB libraries as well.)

The problem i see is that by adding it to jaPBE, you are encouraging others to do the same with
their libraries, instead of using the proposed way. (which is much better for the users of
the libraries, as everything is in one file, no subsystems etc to worry about.)

Why not simply edit your custom tailbite to handle this, instead of forcing
your users to use your own system ?
quidquid Latine dictum sit altum videtur
Post Reply