Browser vs Fields?
-
- Posts: 42
- Joined: Wed Jul 29, 2015 3:53 pm
- My devices: Ipad
Iphone
Browser vs Fields?
I am building an educational app that will require a lot of text on screen. Right now, I am using a graphics screen and just representing all the text with fields. However, I do have some knowledge in HTML. I am wondering would it be better to write HTML and use a browser to display all of each of the screens or should I continue on using a graphics screen and fields. The only problem I am having with fields is that I feel as if sometimes I do not have the control I want over line-spacing and other small visual elements. What do you guys think?
- Attachments
-
- IMG_0374.PNG (226.91 KiB) Viewed 1665 times
- Dutchman
- Posts: 860
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Browser vs Fields?
I agree, text fields give little control over bold-face font-height etc.
Therefore I used browser-windows in my word-search program. I would welcome therefor, functions which write the proper commands to the browser windows. It is still on my "to-do" list
Therefore I used browser-windows in my word-search program. I would welcome therefor, functions which write the proper commands to the browser windows. It is still on my "to-do" list

- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Browser vs Fields?
Also using the browser instead, you can in many field sizes use percentages for size instead of fixed pixels, and that means running it on an iPad or iPhone, it will properly size itself.
But there are some HTML tags that you can't do that with, such as the IMG tag.
But there are some HTML tags that you can't do that with, such as the IMG tag.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- rbytes
- Posts: 1338
- Joined: Sun May 31, 2015 12:11 am
- My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
- Flag:
- Contact:
Re: Browser vs Fields?
It is possible using string concatenation to embed smart Basic variables into your HTML code. A simple example would be:
txt$="My HTML text"
tag1$="<H1>"
tag2$="</H1>"
html$=tag1$&txt$&tag2$
The text will print at heading level 1 (largest size).
Now just by changing the variables tag1$ and tag2$, you can change the size of the web text while your program is running. This same technique can be used to dynamically change colors, image sizes, links, tables and anything else in the HTML code. I have even modified javascript code within my HTML this way. If you need to insert a quote, just use a quote sandwiched between two other quotes to define it, e.g. """
txt$="My HTML text"
tag1$="<H1>"
tag2$="</H1>"
html$=tag1$&txt$&tag2$
The text will print at heading level 1 (largest size).
Now just by changing the variables tag1$ and tag2$, you can change the size of the web text while your program is running. This same technique can be used to dynamically change colors, image sizes, links, tables and anything else in the HTML code. I have even modified javascript code within my HTML this way. If you need to insert a quote, just use a quote sandwiched between two other quotes to define it, e.g. """
The only thing that gets me down is gravity...