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 Memo & Styles 1 to 8

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

    #16
    RE: RTF Memo & Styles 1 to 8

    I will see if I can clarify (sorry if I am repeating myself):

    1.I have the FULL development version 6.0
    2.The field on this form is in RTF Memo format.
    3.When I open the form aka type something in it DEFAULTS to Tahoma 8 (style 1).
    4.I DON'T want to have to change/set the font everytime to 10. I can do that.
    5.I want to CHANGE the default font when I first go to this Memo field on this FORM to "Arial 10".

    Seems simple to me.

    If there is anything that needs clarification, please ASK.

    Thanks for the discusssion but can anybody tell me how to make Style 1 which is the default one, to be Arial 10.

    It should be easy to set the DEFAULT on an RTF memo field on a form without jumping thru so many hoops.

    If not then why are there 8 styles listed in the RTF Toolbar window?

    DeWayne

    Comment


      #17
      RE: RTF Memo & Styles 1 to 8

      Have you tried "RTF".SET_FONT() method?

      Comment


        #18
        RE: RTF Memo & Styles 1 to 8

        Hello Dewaye,

        The good new is that it is quite doable. The bad news....... there's always a 'gotcha'. In short, to do what you want put the following on the onArrive event of your RTF memo field, I'm using the name "RTFTest" for your field. Replace this with your fields real name:

        Fld = parentform:RTFTest.this
        FLD.rtf.set_font("Arial,10","black")

        The 'gotcha' with this is that the user can, as they type into the field, change the font and color. Lets say they bold and highlight some text in red. Now the next time that you enter this field, the above code will reset the font, size, and color at the insertion point which may not match what a user has done. The answer of course it to check if there is existing data in the field, and if so, do nothing (which will leave the existing style as it is), if the field is empty, then set the default as above.

        I would think that setting the default in the settings would take care of this, but it appears that this only effects the popup RTF editor.

        Good luck,
        Jim

        Comment


          #19
          RE: RTF Memo & Styles 1 to 8

          Thanks for all the comments but I am still stuck. Lets do a walk-around again.

          Can the folks at ALPHA5 change their "hard coded" Tahoma 8 to say Tahoma 10? 8 is far TOO small for us "older guys & gals". I am lucky they did not set it at "6".

          Example with another app. I set my default font in Word Perfect at Arial 12. When I create a new doc, I don't have to change the font everytime I start one UNLESS I want to change the font of this doc to another style.

          BTW, what good are the different STYLES 1 to 8 in the popup if it is IMPOSSIBLE to change them? I would have expected Style 1 mite be your DEFAULT that you can readily change (like Arial 10) then Style 2 could be Arial 12 etc.

          I wish ALL the Alpha Community a JOYOUS, HEALTHY & PEACEFULL Christmas & 2005.

          Comment


            #20
            RE: RTF Memo & Styles 1 to 8

            At the risk of missing something already covered and boosting everyone's blood pressure...

            If you want to set the default font when you start typing in a Rich Text Memo (RTF Memo) you can do so but only if you open the RTF Memo Editor before you start typing. Is this the issue...you just want to start typing when the cursor enters the RTF Memo field (but before clicking the Pencil/opening the Editor)?

            If opening the RTF Memo Editor window is NOT the issue, then simply using View-"Settings-"System Fonts-"RTF Memo Fields works for me as long as you always open the Editor before you start typing.
            - John O
            John Oesterle
            ToolBytes, LLC

            Comment


              #21
              RE: RTF Memo & Styles 1 to 8

              Howdy.

              Thanks that does what I want. I knew that BUT why if you change every font known to mankind in settings-"system font to NOT show Tahoma 8, when the RTF toolbar pops up it shows Tahoma 8 & the starting font is this?

              From an Engineering stand-point that does NOT make sense.

              I want to have a user type in the memo field & immediately get ARIAL 10 without having to click the pencil on the right to get the Editor window.

              It sud be easy. Allow me to set STYLE 1 as Arial 10 & whenever I type in a NEW RTF memo field, I start with this style. Where do I change the RTF toolbar style 1 setting of TAHOMA 8 or is this engraved in stone?

              I am sure I am missing something very obvious. Will not be the first time.

              Comment


                #22
                RE: RTF Memo & Styles 1 to 8

                It should be easy, but it's not. A long time ago Selwyn said that RTF memos would be replaced w. HTML - presumably in v.7. As far as I am concerned, the RTF rulers are buggy & unreliable. In any case, you can't set fonts w. them.
                Peter
                AlphaBase Solutions, LLC

                [email protected]
                https://www.alphabasesolutions.com


                Comment


                  #23
                  RE: RTF Memo & Styles 1 to 8

                  Thanks.

                  Maybe the easiest way is to change these memo fields back to NON-RTF ones like before.

                  It was an exercise in futilty to add RTF-format memos in our app.

                  d2c

                  Comment


                    #24
                    RE: RTF Memo & Styles 1 to 8

                    Yeah, I use them in a couple of places, but I'm not too happy with them. Regular memos are more reliable overall.
                    Peter
                    AlphaBase Solutions, LLC

                    [email protected]
                    https://www.alphabasesolutions.com


                    Comment


                      #25
                      RE: RTF Memo & Styles 1 to 8

                      For what it is worth, the help editor has the same problem.

                      I am talking about the custom help that creates a help file, not the bubble help.

                      You can't set the styles, even though the system seems to be designed that way.

                      Comment


                        #26
                        RE: RTF Memo & Styles 1 to 8

                        I wish it were that easy. However, when changing the RTF to Memo in the table, it still retains the RTF format, including the rich text tool bar.

                        Is ther a way to remove the RTF w/o deleting the field and creating a new one?

                        Thanks,

                        kenn
                        TYVM :) kenn

                        Knowing what you can achieve will not become reality until you imagine and explore.

                        Comment


                          #27
                          RE: RTF Memo & Styles 1 to 8

                          Kenn:
                          ""Is ther a way to remove the RTF w/o deleting the field and creating a new one? ""
                          Yes: The BLOB
                          No: I never tried it !
                          Gabe

                          Comment


                            #28
                            RE: RTF Memo & Styles 1 to 8

                            OK, I'll give it a try.

                            Thanks,

                            kenn
                            TYVM :) kenn

                            Knowing what you can achieve will not become reality until you imagine and explore.

                            Comment


                              #29
                              RE: RTF Memo & Styles 1 to 8

                              Gabe,

                              I took a look at the Blob but don't see any way to use it as a text field.

                              Am I missing something or....

                              Thanks...kenn
                              TYVM :) kenn

                              Knowing what you can achieve will not become reality until you imagine and explore.

                              Comment


                                #30
                                RE: RTF Memo & Styles 1 to 8

                                Kenn:
                                I can not remember the exact syntax, I think it was something like "rtfmemo"write and "rtfmemo"set but here is another way to insert the blob contents into a field:

                                The "TBL".RECORD_DATA_SET() method copies all the field values from the blob variable, Record_Data, into the current record which must be in enter or change mode.

                                Note: You can use PROPERTY_TO_STRING() and PROPERTY_FROM_STRING() to move data between tables with different structures, or in your case, copy the data to the blob variable, delete the data from the field then copy it back from the blob. I suggest you back up before doing any of this. Even after you do that, the field may or may not retain it's RTF characteristics. As I said, I never tried it before. In my own personal opinion, creating a new field and updating it with the contents of the RTFmemo is the easiest and safest way to go.

                                Example

                                This script copies the current record to a blob variable. It then opens a table with an identical structure and pastes in a new record. The script is attached to a button on a form.

                                dim record_data as B
                                dim tbl as P
                                tbl = table.current()
                                record_data = tbl.record_data_get()
                                target = table.open("clone")
                                target.enter_begin()
                                target.record_data_set(record_data)
                                target.enter_end(.T.)
                                target.close()
                                A form has two buttons: "Copy record" and "Paste record" which allow a user to copy the current record and then navigate to another record and paste into this record. The following script is for the "Copy record" button:
                                dim shared blob as b
                                dim t as P
                                t = table.current()
                                blob = t.record_data_get()
                                'The following script is for the "Paste record" button:
                                response = ui_msg_box("","Are you sure you want to overwrite the existing data? ", UI_YES_NO_CANCEL)
                                if response = UI_YES_SELECTED then
                                choice = "YES"
                                elseif response = UI_NO_SELECTED then
                                choice = "NO"
                                else
                                choice = "CANCEL"
                                end if

                                If case upper("YES") == upper(choice)
                                dim shared blob as b
                                t = table.current()
                                mode = t.mode_get()
                                If mode = 0 'Form is in view mode
                                t.change_begin()
                                t.record_data_set(blob)
                                t.change_end(.T.)
                                parent.resynch()
                                Else 'Form is already in change or enter mode
                                t.record_data_set(blob)
                                parent.commit()
                                parent.resynch()
                                end if
                                end if

                                Gabe

                                Comment

                                Working...
                                X