jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

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

Post by gnozal »

Update

Changes :
- jaPBe.pref : 'CodePage' is now in 'DefaultOptions' section
- added manual indent+folding marks ';[' and ';]'
Example :

Code: Select all

Pn_x = PanelGadget(#PB_Any, 15, 175, 225, 220) ;[
  AddGadgetItem(Pn_x, 1,"Tab 1") 
  Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget") 
  St_x = StringGadget(#PB_Any, 15, 60, 150,30,"StringGadget") 
  AddGadgetItem(Pn_x, 2,"Tab 2") 
  Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget") 
  St_x = StringGadget(#PB_Any, 15, 60, 150, 30,"StringGadget") 
CloseGadgetList() ;] Close PanelGadget
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

To follow a bit the GPI-way, I would recommend to implement ;{> and ;}<
rather than ;[ and ;], just look at the other examples:

Code: Select all

; A normal comment
;- A Bookmark – recorded in the list-panel
;/ A title line – only an additional style (background color)
;{ Beginning of a manual fold
;} Finish of a manual fold
;{-  A manual fold combined with a Bookmark
;{/ A manual fold with the title style
;> Force indentation depth + 1  
;= For this line, indentation depth - 1  
;< Force indentation depth - 1  
Athlon64 3700+, 1024MB Ram, Radeon X1600
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Gnozal;
- added manual indent+folding marks ';[' and ';]'
its very useful......

Thanks a lot....... :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

remi_meier wrote:To follow a bit the GPI-way, I would recommend to implement ;{> and ;}<
rather than ;[ and ;], just look at the other examples:

Code: Select all

; A normal comment
;- A Bookmark – recorded in the list-panel
;/ A title line – only an additional style (background color)
;{ Beginning of a manual fold
;} Finish of a manual fold
;{-  A manual fold combined with a Bookmark
;{/ A manual fold with the title style
;> Force indentation depth + 1  
;= For this line, indentation depth - 1  
;< Force indentation depth - 1  
One character more to type ? I will see. What do the other users think ?
I chose ';[' because it's 2 bytes long like ';{' and ';>' : I just had to duplicate some lines :wink:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

It's ok for me, but I would like if it would be possible to mix ALL comments,
also ;-{, ;={, ;{= in any way, it would just make sense :wink:

If you have the time...
Athlon64 3700+, 1024MB Ram, Radeon X1600
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- use SDK help : now can also use MSDN (instead of PSDK) ; see the checkbox in 'Preferences'
Code not tested : I have no SDK installed
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 »

hello,

i have PSDK installed and it works with PB IDE.
But under jaPBe, why the entire line 'Use SDK instead of Win32 Help [] MSDN' is grayed, disabled and not checked ?
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
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Just a few tips for people using jaPBe with the latest PB 4 Beta 9 ...

1. After installing PB, you have to run the PB ide before running jaPBe.
2. When running jaPBe for the first time, it will give a fake error about not finding PureBasic (It doesnt even search ...), so you will need go into preferences and manually set the PureBasic "installation" path.
3. The set associations doesnt work in jaPBe so you will need to manually set each file extension in explorer ...

That's all I have found so far :) I think something must have changed since my last version. It had a installer that does all of the above :)
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Hmm, no problems here :?

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

Post by gnozal »

Shannara wrote:Just a few tips for people using jaPBe with the latest PB 4 Beta 9 ...

1. After installing PB, you have to run the PB ide before running jaPBe.
2. When running jaPBe for the first time, it will give a fake error about not finding PureBasic (It doesnt even search ...), so you will need go into preferences and manually set the PureBasic "installation" path.
3. The set associations doesnt work in jaPBe so you will need to manually set each file extension in explorer ...
That's all I have found so far :) I think something must have changed since my last version. It had a installer that does all of the above :)
- jaPBe searches for PB path in the registry ; if PB is not properly installed (beta : no installer, registry keys are set by IDE I guess), it is not found.
- if Purebasic.prefs is not found in the path, it tells you to run Purebasic.exe at least one time to choose your (coloring) options.
- about the associations, please download last version.
Last edited by gnozal on Tue Apr 04, 2006 3:42 pm, edited 2 times 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 »

Flype wrote:hello,
i have PSDK installed and it works with PB IDE.
But under jaPBe, why the entire line 'Use SDK instead of Win32 Help [] MSDN' is grayed, disabled and not checked ?
Do you have jaPBe.exe MD5:039dc4abc455f5d8e52cb96cbd62d35b ?
Could you execute both procedures below and tell me the value of ValueName$ ?

Code: Select all

Procedure SDK_PSDK_IsAvaiable()
  Protected IsAvaiable
  IsAvaiable = 0
  ; PSDK
  If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\7.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
    index = 0
    Repeat
      ValueName$ = Space(260)
      ValueNameSize = 260
      ValueData$ = Space(260)
      ValueDataSize = 260
      Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
      If Result = #ERROR_SUCCESS And ValueType = #REG_SZ
        If Left(LCase(ValueName$),17) = "ms-help://ms.psdk"
          Debug ValueName$
          IsAvaiable = 1
          Break
        EndIf
      EndIf
      index + 1
    Until Result <> #ERROR_SUCCESS
    RegCloseKey_(NewKey)
  EndIf
  ProcedureReturn IsAvaiable
EndProcedure
Procedure SDK_MSDN_IsAvaiable()
  Protected IsAvaiable
  IsAvaiable = 0
  If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS 
    index = 0 
    Repeat 
      ValueName$ = Space(260) 
      ValueNameSize = 260 
      ValueData$ = Space(260) 
      ValueDataSize = 260 
      Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
      If Result = #ERROR_SUCCESS And ValueType = #REG_SZ 
        If Left(LCase(ValueName$),17) = "ms-help://ms.msdn"
          Debug ValueName$
          IsAvaiable = 1 
          Break 
        EndIf 
      EndIf 
      index + 1 
    Until Result <> #ERROR_SUCCESS 
    RegCloseKey_(NewKey) 
  EndIf
  ProcedureReturn IsAvaiable
EndProcedure
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, i will test this tonight.
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 »

Update

Some fixes for the SDK Help (PSDK : MS.PSDKSVR2003SP1.1033 and MS.PSDK.1033)

For details, see http://www.purebasic.fr/german/viewtopi ... 1&start=90


EDIT 16h30 GMT+2
- added 'EXTRN' ASM keyword
- changed file association
Last edited by gnozal on Wed Apr 05, 2006 7:50 am, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Yeah, thats one of the things mentioned in the other thread concerning the beta. If you installed 3.94 first, then copy the beta over it, everything would work ... But it's not the recommended way by the team.

I downloaded the newest version as of my post. Is there a newer version since my post?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

gnozal,

at home, it returns MS.PSDKSVR2003SP1.1033
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
Post Reply