Automatically re-sizing datagrid

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Automatically re-sizing datagrid

Post by tasdvl9 » Thu May 01, 2014 4:32 pm

Hello All,

When adjusting the size of my card window I notice that my horizontal scroll bar is no longer visible on my data grid.

When I maximize the card window I see both the vertical and horizontal bars. Minimizing the Window only shows
the vertical scroll bar and not the horizontal scroll bar.

Is there something extra I can do in my resize handler to ensure both bars are always visible?

Thanks!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Automatically re-sizing datagrid

Post by dunbarx » Thu May 01, 2014 5:54 pm

HI

I am not understanding. When you resize a card window to be smaller than the datagrid (or any object or group), that object is simply partially "off" the page, no? Are you trying to rescale the datagrid itself, so that it fits into the new, smaller card? You can always resize the group, but then that might obscure rows and columns. You can always resize those as well, I suppose.

Or am I missing your issue?

Craig Newman

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Automatically re-sizing datagrid

Post by tasdvl9 » Thu May 01, 2014 6:18 pm

Hi Craig,

Actually the issue I am experiencing is when I 'restore' my card window using the upper right corner restore button.

For example, when my card window comes up the data grid fills with data and I see my vertical and horizontal scroll bars.
All is good at this point. However, when I 'restore down' the card window my vertical scroll bar on my data grid is still present
but I can no longer see my horizontal scroll bar. It is only when I maximize my card window I see both scroll bars.

Thanks!

Post Reply