jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Yeah, it's great.

Thanks Gon.

- np
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Hello Gnozal, thanx again for your effort.

Just an idea :idea:

Can it be possible to support hyperlinks (http:, mailto:, ...) directly in the source code :?:

In the scintilla documentation, i find this function - it might do the trick :
SCI_STYLESETHOTSPOT(int styleNumber, bool hotspot)
This style is used to mark ranges of text that can detect mouse clicks. The cursor changes to a hand over hotspots, and the foreground, and background colours may change and an underline appear to indicate that these areas are sensitive to clicking. This may be used to allow hyperlinks to other documents.
SCI_STYLESETHOTSPOT(int styleNumber, bool hotspot)
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:Hello Gnozal, thanx again for your effort.

Just an idea :idea:

Can it be possible to support hyperlinks (http:, mailto:, ...) directly in the source code :?:

In the scintilla documentation, i find this function - it might do the trick :
SCI_STYLESETHOTSPOT(int styleNumber, bool hotspot)
This style is used to mark ranges of text that can detect mouse clicks. The cursor changes to a hand over hotspots, and the foreground, and background colours may change and an underline appear to indicate that these areas are sensitive to clicking. This may be used to allow hyperlinks to other documents.
SCI_STYLESETHOTSPOT(int styleNumber, bool hotspot)
I made a little experiment :
I added SCI_STYLESETHOTSPOT(#Style_Constant, #True) in jaPBe, so that constants are hotspots. And yes, the constants are underlined when the mouse cursor is over and I get a SCN_HOTSPOTCLICK notification if I click on the constant BUT the mouse cursor disappears (no hand cursor, no cursor at all) on my NT4 ?
Could you make a test on your PC ?
Just add SCI_STYLESETHOTSPOT(#Style_Constant, #True) in jaPBe.pb in procedure SetSciEdiParameter() like

Code: Select all

...    SetSCIStyle(#STYLE_BRACEBAD)
    SetSCIStyle(#STYLE_LINENUMBER)
    SetSCIStyle(#STYLE_INDENTGUIDE)
    
    ; //////////////////////
    ; HOTSPOT
     SCI_STYLESETHOTSPOT(#Style_Constant, #True)
    
    
    SendMessage_(GadgetID(#gadget_main_bookList),#LVM_SETBKCOLOR,0,style_Back(#Style_Procedure))
SendMessage_(GadgetID(#gadget_main_bookList),#LVM_SETTEXTCOLOR,0,style_Fore(#Style_Procedure))
...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

ok gnozal, i will try at home...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Thanks to Gnozal for the great work your putting in on jaPBe :)

Silly Question if I wanted to do Multi Line Rems can this be done with jaPBe...

Regards :wink:
Kevin
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Select the lines you wants and then Ctrl+B. Is that you need ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Select the lines you wants and then Ctrl+B. Is that you need ?
Yes thats all, I am easy to please :roll: :lol: :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:ok gnozal, i will try at home...
Thanks.
I tried Win98SE and it works : there is a 'hand' cursor when the mouse cursor is over the hotspot.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
PureBoy
User
User
Posts: 17
Joined: Mon May 01, 2006 8:13 pm
Location: Urumqi China
Contact:

here is chinese language file

Post by PureBoy »

here is chinese language file
http://www.purebasic.cn/files/Chinese.txt
PureBasic Super Designer
http://www.purebasic.cn/pbsd
VB6--->PB4
make pb4 form in vb6
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: here is chinese language file

Post by gnozal »

PureBoy wrote:here is chinese language file
http://www.purebasic.cn/files/Chinese.txt
Thanks, I will add it in the next release.

2Flype : the hotspot thing is starting to work quite well ; I will add optional hotspots for some styles like variables, structures and constants (so you only have to click on a variable to start the 'Find variable' tool or on a structure to launch the structure viewer).
If the user clicks on an URL, should jaPBe start the explorer like ShellExecute_(#NULL, "open", MyClickedURL.s , #NULL, #NULL, #SW_SHOWNORMAL) ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Re: here is chinese language file

Post by Flype »

gnozal wrote:If the user clicks on an URL, should jaPBe start the explorer like ShellExecute_(#NULL, "open", MyClickedURL.s , #NULL, #NULL, #SW_SHOWNORMAL) ?
yes, it would be perfect :)
and also formatted (underlined) if possible.
and it should only work in 'commented' blocks i think (or optional).

ShellExecute() is ok for me :

Code: Select all

Macro OpenLink(link)
  ShellExecute_(#Null, "open", link, #Null, #Null, #SW_SHOWNORMAL)
EndMacro

OpenLink("www.google.fr")
OpenLink("http://www.google.fr")
OpenLink("http://www.purebasic.com/beta/")
OpenLink("mailto:support@purebasic.com")
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: here is chinese language file

Post by gnozal »

Flype wrote:and also formatted (underlined) if possible.
and it should only work in 'commented' blocks i think (or optional).
In the beta I am working on, the URL hotspot is activated in both comments [; blabla http://www.google.com blabla] and strings ["blabla http://www.google.com blabla"], and it has it's own style (wich can be set in preferences). To avoid multiple string checks (slowing syntax highlighting down), it only checks for 'http://'.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Re: here is chinese language file

Post by Dummy »

gnozal wrote:
Flype wrote:and also formatted (underlined) if possible.
and it should only work in 'commented' blocks i think (or optional).
In the beta I am working on, the URL hotspot is activated in both comments [; blabla http://www.google.com blabla] and strings ["blabla http://www.google.com blabla"], and it has it's own style (wich can be set in preferences). To avoid multiple string checks (slowing syntax highlighting down), it only checks for 'http://'.
a second check for 'mailto:' would be nice ;)
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: here is chinese language file

Post by nicolaus »

gnozal wrote:
Flype wrote:and also formatted (underlined) if possible.
and it should only work in 'commented' blocks i think (or optional).
In the beta I am working on, the URL hotspot is activated in both comments [; blabla http://www.google.com blabla] and strings ["blabla http://www.google.com blabla"], and it has it's own style (wich can be set in preferences). To avoid multiple string checks (slowing syntax highlighting down), it only checks for 'http://'.
and can you also check for "www."?
So a lot of peoples writen only www.bla.com and not http://www.bla.com :wink:

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

Re: here is chinese language file

Post by gnozal »

nicolaus wrote:and can you also check for "www."?
Well, a correct http url has to begin with 'http://'. An advantage of this : if you don't want an url to be clickable in jaPBe, just omit the 'http://'.
dummy wrote:a second check for 'mailto:' would be nice
Hum, yes, will see.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply