Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

RTF default font size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    RTF default font size

    I have not found a way to change the default font and size in a RTF. I need this for a browse column. In the RTF editor an individual cell can be changed, but that is not a technique for dealing with every single cell.

    Looking at a stylesheet there is nothing that mentions RTF or memo. So exported a stylesheet and changed every occurrence of font size. It does not change the RTF defaults.

    Bill.

    #2
    Re: RTF default font size

    This not working for you Bill?
    alpha01.PNG
    See our Hybrid Option here;
    https://hybridapps.example-software.com/


    Apologies to anyone I haven't managed to upset yet.
    You are held in a queue and I will get to you soon.

    Comment


      #3
      Re: RTF default font size

      I thought I had scoured the settings, but obviously not. Thanks. I rarely (never) use RTF fields so this will work fine as a system wide setting.

      I hoped to use the table OnEnterRecord or the form OnEnter for a finer level of control. On a form, for a RTF object,
      Code:
      parentform:note.font.color = "red"
      parentform:note.font.size = 11
      
      parentform.Commit()
      does not work. Well, it does set some "object" properties, but that is not the RTF.

      I could not find a syntax that worked in OnEnterRecord.

      Bill.

      Comment


        #4
        Re: RTF default font size

        If you can live with standard fields and not RTF, the the Color and Font equations will give you the control you need I believe.
        What exactly are you aiming for?
        See our Hybrid Option here;
        https://hybridapps.example-software.com/


        Apologies to anyone I haven't managed to upset yet.
        You are held in a queue and I will get to you soon.

        Comment


          #5
          Re: RTF default font size

          Reply 2.
          Have you explored this?
          <RTF>.GET_FONT()
          There is a whole load of info about fonts etc. in the example.
          See our Hybrid Option here;
          https://hybridapps.example-software.com/


          Apologies to anyone I haven't managed to upset yet.
          You are held in a queue and I will get to you soon.

          Comment


            #6
            Re: RTF default font size

            No luck with methods, but global settings accomplish mostly what I need.
            Code:
            dim obj1 as P
            obj1 = parentform:Note.this
            
            vRecno = table.current().recno()
            
            'obj1.rtf.set_cursor(1)
            'obj1.rtf.set_font("Arial,10","Red")
            'vFont = obj1.rtf.get_font()
            '
            'obj1.rtf.insert_text("This is RTF text")
            'vFont = obj1.rtf.get_font()
            '-------------------
            obj2 = parentform:control_browse1:Note.this	'immediate end of debug mode with "no such object" error
            
            obj2.rtf.set_cursor(1)
            obj2.rtf.set_font("Arial,10","Red")
            vFont = obj2.rtf.get_font()
            
            obj2.rtf.insert_text("This is RTF text")
            vFont = obj2.rtf.get_font()
            Tried similar on both form OnEnter and button on form. Getting the font retrieved the system setting, not what was set in script.

            Xbasic explorer does not expose any of these rtf methods. Don't know if that is a clue.

            But again, I'll declare (partial) victory and move on.

            Bill.

            Comment


              #7
              Re: RTF default font size

              Glad you can accommodate the workaround.
              However, I have been experimenting with Conditional Objects (CO).
              These are very useful if you haven't used them before, which indeed you may have done.

              I created a CO with 2 different RTF field characteristics and depending on the text in a field, displayed Red or Green text/border.Large Font.
              They fit over each other so there is no wasted space.
              This allows you to set the RTF as you wish without globally changing the style.

              Don't know if this will help or confuse, so ignore me if I'm howling at the moon (again).
              See our Hybrid Option here;
              https://hybridapps.example-software.com/


              Apologies to anyone I haven't managed to upset yet.
              You are held in a queue and I will get to you soon.

              Comment


                #8
                Re: RTF default font size

                Yes, I have some places where conditional objects were needed. I assumed you were talking about changing the object border and fill color, which are object properties, not RTF properties. But you also said Large Font, which is an RTF property. Is any RTF property being changed?

                Bill.

                Comment


                  #9
                  Re: RTF default font size

                  Yes but at design time.
                  It's not a dynamic change.
                  Each RTF field can have varying Fonts and Borders - both size, shape and colour, so you can set up the font/colour mix which will show depending upon other factors like field content or a variable.
                  I have a council meeting tonight, but if you want an example I can do one tomorrow.
                  See our Hybrid Option here;
                  https://hybridapps.example-software.com/


                  Apologies to anyone I haven't managed to upset yet.
                  You are held in a queue and I will get to you soon.

                  Comment


                    #10
                    Re: RTF default font size

                    Please, because I think I am missing something. It seems border is an object property, but font is a RTF property. I don't see a place to change default RTF properties for a table field at design time. The user would still make font, etc. changes during use of the form.

                    Bill.

                    Comment


                      #11
                      Re: RTF default font size

                      In settings for each machine there is a default RTF font and size.

                      Applying that to an existing record is a different issue.
                      Al Buchholz
                      Bookwood Systems, LTD
                      Weekly QReportBuilder Webinars Thursday 1 pm CST

                      Occam's Razor - KISS
                      Normalize till it hurts - De-normalize till it works.
                      Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                      When we triage a problem it is much easier to read sample systems than to read a mind.
                      "Make it as simple as possible, but not simpler."
                      Albert Einstein

                      http://www.iadn.com/images/media/iadn_member.png

                      Comment


                        #12
                        Re: RTF default font size

                        Hi Al. Yes, I set that, and I can live with only that. But who says we can't have it all!

                        I had been trying to use blob methods and Ted pointed me to RTF methods. Ultimately was not able to get any xbasic manipulation to work. Although rtf_to_text() has been very helpful in querying a rtf memo.

                        Bill.

                        Comment


                          #13
                          Re: RTF default font size

                          Originally posted by Bill Parker View Post
                          Hi Al. Yes, I set that, and I can live with only that. But who says we can't have it all!

                          I had been trying to use blob methods and Ted pointed me to RTF methods. Ultimately was not able to get any xbasic manipulation to work. Although rtf_to_text() has been very helpful in querying a rtf memo.

                          Bill.
                          I haven't tried, but have you tried RTF_TO_HTML(), manipulate WITH STRING REPLACEMENTS and then HTML_TO_RTF()?
                          Al Buchholz
                          Bookwood Systems, LTD
                          Weekly QReportBuilder Webinars Thursday 1 pm CST

                          Occam's Razor - KISS
                          Normalize till it hurts - De-normalize till it works.
                          Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                          When we triage a problem it is much easier to read sample systems than to read a mind.
                          "Make it as simple as possible, but not simpler."
                          Albert Einstein

                          http://www.iadn.com/images/media/iadn_member.png

                          Comment


                            #14
                            Re: RTF default font size

                            As promised. I might have misunderstood your actual requirements Bill, but have a look at the attached and see if it works regarding presentation.

                            BillP.zip
                            See our Hybrid Option here;
                            https://hybridapps.example-software.com/


                            Apologies to anyone I haven't managed to upset yet.
                            You are held in a queue and I will get to you soon.

                            Comment


                              #15
                              Re: RTF default font size

                              Thanks Ted. Yes, my situation involves table fields that are RTF while your table fields are character. But this thread has broadened my perspective. For at least one report where I don't need the rtf formatting, I can use rtf_to_text() and then set object properties as a text field.

                              Bill.

                              Comment

                              Working...
                              X