Hi Terry, Thanks Terry, thats how I could do it, though it's a lot of work with all buttons and all states of icons... But would you do that? Actually I haven't seen much interfaces of this kind, is it absolutely unusual or would it be helpful? What do you think? Tiemo
> -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:use-livecode- > [email protected]] Im Auftrag von Terry Judd > Gesendet: Donnerstag, 15. März 2012 10:36 > An: How to use LiveCode > Betreff: Re: App-Design question, was: how to resize icons when resizing > objects? > > > On 15/03/2012, at 07:42 PM, Tiemo Hollmann TB wrote: > > Perhaps I've asked the wrong question. If you have a resizable screen- > layout > (with additionally chooseable textsize), is there an approach to also > resize > the buttons, if they have graphical icons? Ok, most programs I know don't > resize the buttons, when resizing the window or the fields, but I would > like > to resize also the buttons proportional to the window. But the buttons have > graphical icons, which don't resize, when resizing the button. And even if > I > could resize the icons they would lose their quality when resizing. > What I am thinking about is to make the app / buttons better accessible for > example on a touchpad (Windows 8) when scaling my app window to full > screen. > The only approach I see right now, would be to create at least two sets of > buttons (or at least of the icons) and switch them at a certain size of the > window, but that doesn't look very straight forward. > Am I looking for a no go or don't I see the obvious? Any experiences? > Thanks > Tiemo > > If the image you use for the button icon is at least as large as the > largest size icon that you want to display then you can resize it within a > resizeControl or resize stack handler. Just lock the image (it can be > invisible, off screen or on another card or stack) and then adjust its size > proportional to your new stack or object size in your handler. > > For example > > on resizeControl > set the width of image id (the icon of me) to the width of me > set the height of image id (the icon of me) to the height of me > end resizeControl > > Terry... > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
