tofro wrote:Yep, appman is a bit awkward to handle, but still very useful. Small Recipe:
- Open appman
- Add your menus ("load"->"Menu", assign some proper names (last column). Your Window should look like this: APPMAN0.png
- Save as an extension (Set "Command" to "APPA0", which should be the default, then save as an appendix (e.g. "charmap_app", FILES->SAVE->APPENDIX). Don't try and mess with the "append" option or something - That's a bit of a nuisance in compiled programs, IMHO.
- LRESPR the app file you made to check it.
- PRINT appa0('charmap') (Or whatever you called a menu in the app file) must return a reasonable value. x = FOPEN ("con") : MDRAW #x,APPA0("charmap") must display the menu - otherwise, repeat previous steps until you succeed.
- Up to here, you got it working in S*BASIC. Now you need to be able to use it in a compiled program. This is what I do with Turbo: "200 REMark %%dos2_charmap_app,0,60". For liberated programs, you would probably use something like 400 REMark $$asmb=win1_dev_charmap_app0_app,0,60 (The 60 works for me, but may depend on your appman version. In case 60 doesn't work, provide your _app file for analysis, please)
Hope this helps!
Done! And I still get the same errors when I run the compiled program...
After Lrespr win1_dev_charmap_char_app x = FOPEN ("con") : MDRAW #x,APPA0("charmap") displays the menu
I have attached the char_app (just delete the .zip extension)
What APPMAN version are you using?
I use v4.02, latest version from EasyPtr4 package from Dilwyn's site - and it refuses to run on QPC2 in high colour modes!!!! It only runs in QL colors mode
Later Edit: I noticed that qlib_ext is not corectly linked to the obj when I use QLiberator 3.45 - but it is linked when I use Qliberator 3.36.
This may be because the init and table values are not correct for v3.45
Code: Select all
40 REMark $$asmb=win1_QLiberator_qlib_ext,0,12
I have attached the qlib_ext (just delete the .zip extension) Please , can you tell me the correct values?