Help get this topic noticed by sharing it on Twitter, Facebook, or email.

scaling buttons, etc.

I have a couple of devices, One is 800x1280, the other is 1600x2560. When properly setup, will the buttons scale correctly from one to the other? It appears that the buttons do not get rescaled. As a matter of fact, the buttons on the 800x1280 are larger than the 1600x2560, How do I properly scale buttons? Or do I have to use different size buttons per device?
1 person has
this question
+1
Reply
  • They don't get scaled.. they will be positionned proportionally but will be closer or farther from each other.. if you need the button to be different size you need to have different image / handset..

    I have a handset I share between a iPhone 4S and a iPhone5 and I create it for the iPhone4, it get little spaced out on the iPhone5 but still usable..
    • view 4 more comments
    • Some time ago I wrote something that extracted the IP address from the DHCP log/cache file from the MAC address, or was it the other way round. Can't remember now, but anyway, parsing the DHCP info to extract the Client ID would be fairly trivial and you could use that to indicate handset type.

      Or, here's another idea. Put the devices into the local DNS (I think mine are) with static IP address of course and put the device type into the DNS record. Add it as 'hardware' I think. Then a DNS lookup could be used to get at the device type.

      Luckily I run, and therefore have control over, my own DHCP and DNS services on my Mac Server. Can iRule send IP commands like DNS lookup and deal with the reply, or is that just wishful thinking?

      But having said that, how hard could it be to allow us to check for the device within iRule. Simpler for them to do that and benefit ALL their customers than each of us having to faff around inventing our own method.
    • You are describing Environment Variables:
      https://getsatisfaction.com/irule/top...

      For you IP command, Anything you could query via a webpage, you can set it as a Handset Get HTTP Device and build a Feedback out of it with Prefix/Sufix to parse the HTML Source and pinpoint the value you are looking for.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • When going from dis-similar devices, I had to recreate the panels with x1 buttons instead of x2. Its a bit of a pain editing all the buttons for pressed and selected. Possibly 3 edits per button. A bit time consuming. I spend more time searching for the button in the image list.. :-)
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • This often make me thik of just creating all the button image into the background image and put invisible clickable button over it.. would'nt have the nice button-press effect but would be way more easier than search all the buttons in the image library :P
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • What you are both experiencing is that the buttons retain their fixed pixel size. Their physical size (inches or centimeters) depends on the pixel density (ppi) of the subject device.

    It's like looking an 800x600 pixel photo on two different computer monitors: the photo will not appear the same size on both unless they share the same pixel-per-inch density.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Two factors at hand here. Like you say pixel density explains the different sized object for the same button going from device to device. The other issue is crowding of the buttons from not enough space. Since the buttons do not get scaled based on screen dimensions you have to replace all the buttons with smaller ones when going to a smaller device. At least thats what I have experienced going from a 10" to a 7" tablet after cutting and pasting the panels.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • It's all about the pixel.. usually smaller screen have less pixel.. but if you have a 12 inch Tablet that does 1600x2560, and a new phone with a high def screen that also does 1600x2560 pixel even if it's only 5 inch.. then it will be directly portable, won't look the same size but will display proportionally :)
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • yup... you are right. I am mixing the reason with the workaround. Indeed if my 7" tablet was 1600x2560, I wouldnt be going through this.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited