Re: SBASIC Programming
Posted: Wed Dec 25, 2024 11:36 pm
Why not just use WMON ,x, y instead of all those lines of code?
Sorry can't remember, why I wrote this. BUT: I remember there was a problem (don't know what). BTW: Is it possible with WMON to set the top left corner of the screen (was not possible on a BBQL and TK2, as it has had only 512x256).pjw wrote: Wed Dec 25, 2024 11:36 pm Why not just use WMON ,x, y instead of all those lines of code?
Im not sure what you mean..ql_freak wrote: Thu Dec 26, 2024 1:46 am <> BTW: Is it possible with WMON to set the top left corner of the screen (was not possible on a BBQL and TK2, as it has had only 512x256). <>
When programs, like the recent Christmas tree one, messes up my screen (myEdit: Found it
With WMON x,y the colors (and eventually borders) of the windows are not set. This can look horrible.
Code: Select all
ERT HOT_KEY('B', "CLOSE:PAPER#0;0:INK#0;4:PAPER 2:INK
7:PAPER#2;7:INK#2;2:WMON ,512,0:CLS#0:CLS:CLS#2" & CHR$(10))
Code: Select all
ERT HOT_THING(CHR$(236), 'SBASIC'): REMark F2 = New SBasic
ERT HOT_PICK(CHR$(238), 'SBASIC'): REMark Shift+F2 = Pick SBasic
Code: Select all
ERT HOT_KEY('b',
"OUTLN#0,512,242,SCR_XLIM-512,14:WINDOW#0;512,62,SCR_XLIM-512,194:BORDER#0-
;1,255:WINDOW#1;256,178,SCR_XLIM-256,14:BORDER#1;1,255:WINDOW#2,256,178,SC-
R_XLIM-512,14:BORDER#2;1,255:CLS#0:CLS#1:CLS#2" & CHR$(10))
Code: Select all
ERT HOT_THING('z', 'Button_Sleep')
Code: Select all
ERT HOT_THING('=', 'Button_Pick')
Agree - in most setups I've seen, the potential of the Hotkey System is just about scratched, if at all (and I would absolutely not claim that my own one couldn't be improved a lot). You can make your QL life so much easier with a few hotkeys.pjw wrote: Thu Dec 26, 2024 12:26 pm
I dont know who invented this kind of functionality. I cant remember
anything half as useful in Windows back in the day, let alone Linux. Mac,
perhaps? From the little Ive gleaned of other people's setups, It doesnt
seem to have arrived on a lot of QL desktops yet either..
Merry Christmas!
Code: Select all
ERT HOT_KEY('B', "CLOSE:PAPER#0;0:INK#0;4:PAPER 2:INK 7:PAPER#2;7:INK#2;2:WMON 4:CLS#0:CLS:CLS#2" & CHR$(10))
Im glad you agree! I wonder how many others do. Perhaps many are just mystified, or think it too complicated, or are too uncurious to even try, or have tried but simply dont like it.. Or maybe they know something far superior that we've never even heard of or are too dumb to understand..tofro wrote: Thu Dec 26, 2024 2:49 pm <>
Agree - in most setups I've seen, the potential of the Hotkey System is just about scratched, if at all (and I would absolutely not claim that my own one couldn't be improved a lot). You can make your QL life so much easier with a few hotkeys.
No idea what that is, but Intuition was really easy. But I think you are talking on different levels, Intuition is widget based, as far as I can see the PE is more like X11 and window based!But how many Amiga experts actually understand Institution
yes sorry, there is widget based system on the QL, I mean QPAC2, ProWesS is not the same thing.XorA wrote: Thu Dec 26, 2024 6:48 pmNo idea what that is, but Intuition was really easy. But I think you are talking on different levels, Intuition is widget based, as far as I can see the PE is more like X11 and window based!But how many Amiga experts actually understand Institution