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... Hello, I have a stack, which the user may resize and all objects are resized and positioned dynamically. This works fine. Up to now, I kept the size of the buttons with assigned icons locked, because I didn't find an approach, how to resize the assigned icons dynamically? Or don't you do that at all in a dynamic layout and am I looking for a no go? Thanks for any hints Tiemo _______________________________________________ use-livecode mailing list [email protected]<mailto:[email protected]> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne _______________________________________________ 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
