|
Post by scalion on Jul 24, 2023 17:29:46 GMT 1
Hi all, Here a help file compilation of some algorithm dedicated to geometry :
EDIT:
If you want have a shortcut to this file in extra menu, copy the chm file in the Gfawin32.exe dir and compile this code to .gll file than you can insert in the extra menu (Extra/Extension Manager or CTRL+M).
Sub Gfa_Init Global IdxMenuGeometryHelpFile IdxMenuGeometryHelpFile = Gfa_AddMenu("Help Geometry", Help_Geometry_func) Gfa_MenuDesc(IdxMenuGeometryHelpFile) = "Open the Help File dedicated to Geometry" End Sub Proc Help_Geometry_func(Index%) Global String GeometryHelpFile GeometryHelpFile = Gfa_BasicPath If Right(GeometryHelpFile) = "\" GeometryHelpFile = Left(GeometryHelpFile, Len(GeometryHelpFile) - 1) EndIf GeometryHelpFile = GeometryHelpFile & "\GB32-Geometry.chm" If Not Exist(GeometryHelpFile) Message "The file " & GeometryHelpFile & " is not present." Else System "hh " & GeometryHelpFile EndIf EndProc
|
|
|
Post by Roger Cabo on Jul 24, 2023 22:20:33 GMT 1
Amazing!!! the Examples are very useful!
|
|
|
Post by dragonjim on Jul 24, 2023 22:27:40 GMT 1
An excellent help file. Thanks for sharing.
|
|
|
|
Post by (X) on Jul 25, 2023 14:39:14 GMT 1
Same for me as webu
Ok I see!
Once we "open" the first compiled CHM file there is a Zipped file that must be unzipped and this creates a subdirectory: "\GB32-Geometry" If you put the help file in there then "All is revealed!"
Bravo Nic!
|
|
|
Post by dragonjim on Jul 25, 2023 14:58:00 GMT 1
The other way of doing it is to right click the .chm file and open the Properties box; if you see the option at the bottom to Unblock content, tick the box, Apply and you should see the full contents.
|
|
|
Post by (X) on Jul 25, 2023 15:25:15 GMT 1
Wow! Quel beau travail! Nice work!
|
|
webu
Full Member
Posts: 149
|
Post by webu on Jul 25, 2023 16:21:40 GMT 1
The other way of doing it is to right click the .chm file and open the Properties box; if you see the option at the bottom to Unblock content, tick the box, Apply and you should see the full contents. Correct, this is it.
|
|
|
Post by (X) on Aug 3, 2023 12:58:41 GMT 1
Hey Nic, as-tu pensé de l'ajouter au menu GFA via GLL?
Here is an example of how this might be implemented. It's totally possible for each programmer to customize this code to the way they like.
'################################################################################# ' ' DISCLAIMER: THIS CODE IS OFFERED AS IS FOR EDUCATIONAL PURPOSES. ' YOU ARE FREE TO USE, COPY AND DISTRIBUTE. ' THE USE OF THIS CODE IS AT YOUR OWN RISK. ' I ACCEPT NO LIABILITY NOR MAKE ANY CLAIM OF ' CORRECTNESS OR SUITABILITY IN PART OR IN WHOLE. ' '################################################################################# ' ' FILENAME GLL_MenuExtraGeometryHelp.G32 ' ' DESCRIPTION A GLL that adds a Menu Item under GFA Editor's 'Extra' menu ' called: 'Help Geometry', which was provided by 'scalion' (Nicolas Rey). ' You can download from the link below. If you create a shortcut ' you can call it easily as shown. Or a hundred other ways... ' https://gb32.proboards.com/thread/642/geometry-basic-help-file-format ' ' AUTHOR (X) ' EMAIL xman.gb32@gmail.com ' WEBSITE https://gfabasic32.blogspot.com/ ' FORUM https://gb32.proboards.com/ ' STARTED 2023-08-03 ' UPDATED <ISO date> '
Sub GFA_Init '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Menu Extra addition of: 'Help Geometry' by 'scalion' (Nicolas Rey)... ' Global IdxCreateCode% IdxCreateCode% = Gfa_AddMenu("&Help Geometry"#9"Alt+xh", P_MenuGeometryHelp) Gfa_MenuDesc(IdxCreateCode%) = "Calls 'Geometry Help' by Nicolas Rey (scalion GB32) https://gb32.proboards.com/thread/642/geometry-basic-help-file-format" EndSub
Sub P_MenuGeometryHelp(i%) ShellExec "<your_prefered_dir>\GB32-Geometry.chm - Shortcut" EndSub
|
|
|
Post by scalion on Aug 4, 2023 10:18:29 GMT 1
I added a copy to clipboard button to the GFA-Basic codes. I also completed the "graphic" section with a few things. I will open a new Thread for this version 2. This time i will indicate how to include it with GLL and how to pass the windows security.
|
|