Resizing stack window by scaling

Bob Sneidar bobsneidar at iotecdigital.com
Fri Oct 20 18:30:29 EDT 2017


This is probably too simple an answer, but for database applications, resizing of windows is not a feature they allow, and there is almost always a "minimum monitor size" requirement so that the form fits inside any window the system might draw. 

Windows has a feature to increase the monitor scaling, but beyond a certain point this can cause issues with software, and even Microsoft has issues drawing it's own windows when the scale factor is above a certain level! 

Apple has an Accessibility feature which allows screen zooming which those who have serious vision problems and own a Mac probably already know how to use. 

I guess I am saying that providing application scaling is not very common. What I would do is define several scales, and then allow users to choose a scale, then have procedures that redraw everything accordingly. Alternately, some have been able to create scrolling groups, so every stack/card would have one of these scrolling groups, so that if the window was made smaller than the smallest size you allow, you would revert to usign the scrolling group. 

Another thing I have been doing in my app is creating tabs. I group all controls belonging to a tab then name the group like the tab, so selecting a tab hides all the groups then shows it's respective tab. This has worked really nicely, so that no I can have a card that can display customers, sites, devices, contacts etc. all by selecting a tab. 

The moral of the story is that you can never get ten pounds of potatoes in a five pound sack. Either your sack is too small or you have too many potatoes. But you CAN have more sacks! 

Bob S


> On Oct 20, 2017, at 15:14 , Peter Bogdanoff via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi,
> 
> I’m needing to allow the user resize a stack window using scaleFactor and am needing advice about interface.
> 
> First of all, I see that some Livecoders are using scripts to scale controls and text when the user drags the stack size larger or smaller. In my case, there are too many controls and text layout is too sensitive, and I really don’t need the improvement in resolution to use that method. In my case:
> 1. Default size is good for most people
> 2. Some have 12” laptops that make the window just a tad too large to fit
> 3. Some have larger screens whereby they might want to expand the window to fill more space
> 
> For the too-small issue, I can automatically scale the window at start up. However, how do I present the choice to the user to manually make the window larger/smaller?
> 
> Clicking on the zoom box resizes the window, not scales it—no good. Is there a message that can be intercepted to scale instead of zoom?
> 
> Do I otherwise (working with the stack with size locked) add drag controls to the edges of the window that scales when dragged? Does anyone have scripts for that?
> 
> Or should this be some kind of preference item?
> 
> Thanks,
> 
> Peter Bogdanoff
> ArtsInteractive



More information about the use-livecode mailing list