Page 17 of 104
Posted: Sat Apr 01, 2006 9:23 am
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
Posted: Sat Apr 01, 2006 12:24 pm
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
Posted: Sun Apr 02, 2006 5:13 am
by chen
Gnozal;
- added manual indent+folding marks ';[' and ';]'
its very useful......
Thanks a lot.......

Posted: Sun Apr 02, 2006 11:09 am
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

Posted: Sun Apr 02, 2006 11:16 am
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
If you have the time...
Posted: Mon Apr 03, 2006 1:19 pm
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
Posted: Mon Apr 03, 2006 9:10 pm
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 ?
Posted: Tue Apr 04, 2006 5:03 am
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

Posted: Tue Apr 04, 2006 5:15 am
by rsts
Hmm, no problems here
cheers
Posted: Tue Apr 04, 2006 7:55 am
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.
Posted: Tue Apr 04, 2006 7:59 am
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
Posted: Tue Apr 04, 2006 8:13 am
by Flype
ok, i will test this tonight.
Posted: Tue Apr 04, 2006 12:35 pm
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
Posted: Tue Apr 04, 2006 5:07 pm
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?
Posted: Tue Apr 04, 2006 6:07 pm
by Flype
gnozal,
at home, it returns MS.PSDKSVR2003SP1.1033