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

UX Component - FormView Control - Pre-Defined Editors - TextArea

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

    UX Component - FormView Control - Pre-Defined Editors - TextArea

    UX Component - FormView Control - Pre-Defined Editors - TextArea - A new pre-defined editor for a FormView control is now available in the Defined Controls section of the UX toolbox. The [Editor-TextArea] pre-defined control creates an editor for a FormView value. The editor uses a TextArea control and it has a vertical scroller so that long text can easily be scrolled on touch devices.

    Is anyone using this? I have added it to my ux but it does not act any different than a textarea control. What am I missing?
    Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

    #2
    Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

    Looks pretty good to me. The Textarea Control set up for you in the Editor has Control Javascript built-in. This expands the slider area automatically when you touch it so that it's much easier for use.

    It's a normal Textarea control, but with smart slider code added.

    Comment


      #3
      Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

      Thanks David, I had to make a few adjustment so that I could use it. In my case the scroll bar was off to the right I had to scroll horizontally to get to it. Also I found that the scroll bar was activated in the onChange event of the textarea control. I want to scroll without having to make a change.

      I moved this line from the onChange to the onFocus event as well as setting the width of the control to 96% from 100%
      Code:
      {dialog.object}._functions.txt_descrip_wotsetScroller(this);
      I also added this line to the control javascript which move the scrollbar into view for me.
      Code:
      {dialog.object}._functions.txt_descrip_wotsetScroller = function(ele){
      	var h = ele.scrollHeight-ele.offsetHeight;
      	if({dialog.object}.txt_descrip_wottaScroller.max != h){
      		{dialog.object}.txt_descrip_wottaScroller.max = h;
      		{dialog.object}.txt_descrip_wottaScroller.refresh();
      	}
      	{dialog.object}.txt_descrip_wottaScroller.setValue(ele.scrollTop);
      }
      
      
      
      var cEle = {dialog.object}.getPointer('CONTAINER_txt_descrip_wot_SCROLLER');
      {dialog.object}.txt_descrip_wottaScroller = new A5.Scroller(cEle.id,{
      		flow: 'ttb',
      		theme: '{dialog.style}',
      		min: 0,
      		max: 0,
      		offset: {
      			top: '4px',
      			bottom: '4px',
      			[B][COLOR="#FF0000"]right: '20px'[/COLOR][/B]
      		},
      		slider: {
      			message: {
      				show: 'never',
      			}
      		},
      		onScroll: function(val){
      			var ta = {dialog.object}.getPointer('txt_descrip_wot');
      			ta.scrollTop = val;
      		}
      	});
      I really don't want to have to move into the control because it brings up virtual keyboard.
      I tried this code in the click event of a list control that sets the panel active that contains the scroll - text control. It shows the scroll bar but for some reason the scroll range is off. For example the scroll bar scrolls all the way to the bottom in the first 1/4".

      Code:
      var ele = $('{dialog.ComponentName}.V.R1.TXT_DESCRIP_WOT');
      {dialog.object}._functions.txt_descrip_wotsetScroller(ele);
      2017-05-21_17-56-38.png
      Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

      Comment


        #4
        Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

        I don't see the behaviours you're reporting. I don't need to tap into the textarea to see the scrollbar... it's already there. I can use the scrollbar without changing the textarea data. This is all with the default settings.

        Comment


          #5
          Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

          Not sure either. I am using the latest version 4346 - 4889? It works the same with several different android browsers and it worked the same in working preview.
          Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

          Comment


            #6
            Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

            Are we talking about the same control? I am using the TextArea-Mobile-Scrollable in the defined controls.
            Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

            Comment


              #7
              Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

              Sorry... in your original post you wrote... "Pre-Defined Editors - TextArea"... so I thought you meant the "Editor-TextArea" control... since it's the pre-defined TextArea control for use in a FormView Editor.

              Now that I know you're using a different control from mentioned... the TextArea-Mobile-Scrollable control... I had a look.

              The TextArea-Mobile-Scrollable control is almost identical to the Editor-TextArea control... however I don't know if they're handled any differently under the hood. The Edit-TextArea has an additional onSelect function running in the scroller section of the code...

              Code:
              onSelect: function(val){
              	var ta = {dialog.object}.getPointer('EDITOR_1_TXTBOX');
              	ta.scrollTop = val;
              }
              When I use the TextArea-Mobile-Scrollable control as an editor, it seems to function the same as the Editor-TextArea control.

              You'd have to post a sample UX indicating whatever issues you're finding.

              Comment


                #8
                Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

                My apologies. It looks like I am using the wrong control. I just grabbed this control out of the Defined Controls section I didn't even realize there is more than one. I will have to look at the control you have described perhaps it will do what I am looking for.
                Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                Comment


                  #9
                  Re: UX Component - FormView Control - Pre-Defined Editors - TextArea

                  I see now the other control requires using editor sets. I have not yet figured them out, or their purpose for that matter.
                  The reason that the scrollbar was off of my screen was because of the container that I put the TextArea-Mobile-Scrollable contol into.
                  I have made adjustments to the container and the scroll bar shows up properly. I was able to remove the additional 20px right margin setting that I added.
                  I was also able to wrap the code that shows the scrollbar in a timeout function that lets the control get populated first then activates the scrollbar.
                  Now when the panel is set active and the textarea control is populated by clicking a row in my list control, the scrollbar shows without me having to step into the control and the range is correct to the amount of text in the control.
                  Thanks for your help.

                  Here is the code in the onClick of the list control
                  Code:
                  setTimeout(function(){
                  var ele = $('{dialog.ComponentName}.V.R1.TXT_DESCRIP_WOT');
                  {dialog.object}._functions.txt_descrip_wotsetScroller(ele);
                  }, 500);
                  Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                  Comment

                  Working...
                  X