CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Lock indicator placement

General discussion

by magosk » 24 Jan 2014 09:46

I have a lock indicator with Control set for the "page" TIWCGJQMRegion. On a form with a listview in the content region, the placement of the lock indicator is dependent on the number of items in the listview and the current scroll position. If you have many items, I don't see the indicator at all unless you scroll near the middle of the list. I would like the indicator to always be screen centered (or possibly a fixed offset from the top), but I do not know how to accomplish this. I tried e.g. setting top="40%" in the Css property, but that did not seem to help.
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41

by Jorge Sousa » 24 Jan 2014 11:15

Hello

The item has many other properties besides css

http://www.cgdevtools.com/docs/_html/IWCGJQLockIndicatorBase.TIWCGJQLockIndicatorItem.htm
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by magosk » 24 Jan 2014 12:15

Yes, I had tried around with various properties but with no apparent effect on the issue, css top was just an example of one of the things I attempted. This is the code I use currently:

Code: Select all
  Indicator := IWCGJQLockIndicator1.Indicators.Add;
  Indicator.Control := Page;
  Indicator.ImageSetting.Image := jqlidiLoading1;
  Indicator.BaseZ := 2000; // Make sure shown on top of e.g. popups
  Indicator.ShowOverlay := False;   
  Indicator.ImageSetting.Alignment := jqliiaTop;
  Indicator.Css := '{cursor:"wait",textAlign:"center",left:"10%",width:"80%",backgroundColor:"#fff",border:"3px solid #aaa"}';
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41

by Jorge Sousa » 24 Jan 2014 12:25

Hello

Di you try these

published property CenterX
Set this property to true to have the message automatically centered (Required: property CenterY = True) Only effects element blocking (page block controlled via css)
published property CenterY
Set this property to true to have the message automatically centered (Required: property CenterX = True)

And remove textAlign, left and width from css

Also if you this

Indicator.ShowOverlay := False;

you're disabling the locking feature of LockIndicator, ie, user will be able to click while the indicator is being displayed.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by magosk » 24 Jan 2014 13:42

Yes, CenterX and CenterY were True (by default). Removing properties from css does not change the behaviour either.

I have attached a small demo project with minimum changes to the default values. Click to add items a few time, and you'll see the indicator being shown further and further down, and then finally not shown at all (unless you scroll the listview).

Thanks for the tip on ShowOverlay!
You do not have the required permissions to view the files attached to this post.
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41

by Alexander Bulei » 24 Jan 2014 19:30

Hi magosk,

It have correct behavior, the plugin calculate with scroll area.

I will give you the solution on Monday.

Have a nice weekend.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 27 Jan 2014 19:07

Hi magosk,

Was checking here and at this moment it's impossible to do this.
It's require some changes in jquery plugin.

Can you create the ticket in our feature tracker please?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by magosk » 28 Jan 2014 09:58

Done. Until there is a fix I use a semi-transparent overlay. This way you at least see that something is happening when you tap something that has an ajax event handler.
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.