06-07-2022, 08:04 PM
(This post was last modified: 06-07-2022, 08:05 PM by Kernelpanic.)
"Locate" in the program
|
Are you trying to get the width of the screen you are using?
If so it is _Width in text screens maybe even console, _Width/8 for graphics screens. (Assuming default font when get _Width and _Height) Likewise _Height gives you rows in text screens not console! and _Height/16 for graphics screens. So: DistanceToEdgeInChars = _Width/8 - ColumnYouAreAt ' for graphics screens or DistanceToEdgeInPixels = _Width - Xpixel ' for graphics
b = b + ...
06-08-2022, 05:30 PM
Sorry, I do not really understand what you are after. If you are trying to control output printing onto the screen, you could look into Window or View Print.
b = b + ...
06-08-2022, 07:26 PM
Right align a number input:
Code: (Select All) _Title "Right align a number input to a column number" ' b+ 2022-06-08
b = b + ...
06-08-2022, 08:39 PM
Yes, apparently I really have a problem describing what I mean in English.
I'll write the program to end and then show the result. Then one can see what I meant.
06-08-2022, 08:41 PM
Or you could keep me guessing and I could write up all kinds of utilities ;-))
b = b + ...
06-08-2022, 09:49 PM
(06-08-2022, 08:39 PM)Kernelpanic Wrote: Yes, apparently I really have a problem describing what I mean in English. Oder beschreibe dein Problem einfach mal auf deutsch, vielleicht kan ich dir ja weiterhelfen. Schon mal ein paar Infos vorweg: - LOCATE ist Satzaktiv, nicht modal, d.h. ein LOCATE für ein PRINT (USING) - Wenn du immer 2 Zeichen Rand haben willst, dann kannst du entweder deine PRINTs mit TAB kombinieren, z.B. TAB(2);PRINT USING .... - oder füge einfach 2 Leerzeichen am Anfang der Ausgabetexte ein: " Fertigungsmaterial" " +8% Gemeinkosten...." " -----------------------"
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32 Libraries & useful Functions: https://staging.qb64phoenix.com/forumdisplay.php?fid=23
06-09-2022, 01:50 AM
(06-07-2022, 08:04 PM)Kernelpanic Wrote: Hello, is there a way to set the distance from the edge for the whole program with "Locate"? Is this what you re looking for? Code: (Select All) PRINT "horse" Pete
06-09-2022, 03:40 AM
(06-09-2022, 01:50 AM)Pete Wrote:(06-07-2022, 08:04 PM)Kernelpanic Wrote: Hello, is there a way to set the distance from the edge for the whole program with "Locate"? And extending that symmetrically the other way: Code: (Select All) Print "horse"
b = b + ...
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)