App-Design question, was: how to resize icons when resizing objects?

2012-03-15 Thread Tiemo Hollmann TB
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


 
 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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: App-Design question, was: how to resize icons when resizing objects?

2012-03-15 Thread Terry Judd

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
use-livecode@lists.runrev.commailto:use-livecode@lists.runrev.com
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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: App-Design question, was: how to resize icons when resizing objects?

2012-03-15 Thread Tiemo Hollmann TB
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: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] 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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode