Button behavior
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Button behavior

5 Posts
2 Users
0 Reactions
65 Views
(@tacod)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

Hi Glenn,

First, great that we now have timezone support, avoiding an immense script with multiple evaluations.

But as a downside, I need to convert all my CONTROLs to BUTTONs. Although the functionality seems the same, I just cannot get the formatting of the buttons correct.

I must have tried 25 options to make the text fit in the box, but it keeps showing huge letters (only Remote shows in Bold Italic, while that is not configured)

BUTTON=wide:1,display:Start Remote Help,style:font-size:8,button-color:6B6A61,uri:C:\Program Files\Remote Help\RemoteHelp.exe


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1811
 
BUTTON=wide:1,display:Start Remote Help,style:font-size:8,button-color:6B6A61,uri:C:\Program Files\Remote Help\RemoteHelp.exe

I see a stray "style" property in amongst that. the style may contain a combination of b i u w.  eg  "style:biuw"

if you remove the "style:" characters it will probably start looking the way you want.

BUTTON=wide:1,display:Start Remote Help,font-size:8,button-color:6B6A61,uri:C:\Program Files\Remote Help\RemoteHelp.exe

   
ReplyQuote
(@tacod)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

Thanks, removing style allowed me to set the font-size within the button (I don't think we can do text align inside the button, but that is ok).

BUT.... if I use hyperlink:1, I get scrambled text, as you can see from the screenshot above. I am unable to format font size. As soon as I try to fix that with width or height setting, it stops behaving like a hyperlink; it doesn't underline or align left.

So:
BUTTON=wide:1,width:200,hyperlink:1,display:US:+1 609 000 000,type:1,font-size:9,uri:callto:+1609000000
gives a button without bezel, text centered

and

BUTTON=wide:1,hyperlink:1,display:US:+1 609 000 000,type:1,font-size:9,uri:callto:+1609000000

gives a scrambled underlined, left-aligned text (showing only the bottom 7 pixels) that doesn't respect the font-size parameter nor the WIDE parameter


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1811
 

Posted by: @tacod

Thanks, removing style allowed me to set the font-size within the button (I don't think we can do text align inside the button, but that is ok).

BUT.... if I use hyperlink:1, I get scrambled text, as you can see from the screenshot above. I am unable to format font size. As soon as I try to fix that with width or height setting, it stops behaving like a hyperlink; it doesn't underline or align left.

So:
BUTTON=wide:1,width:200,hyperlink:1,display:US:+1 609 000 000,type:1,font-size:9,uri:callto:+1609000000
gives a button without bezel, text centered

and

BUTTON=wide:1,hyperlink:1,display:US:+1 609 000 000,type:1,font-size:9,uri:callto:+1609000000

gives a scrambled underlined, left-aligned text (showing only the bottom 7 pixels) that doesn't respect the font-size parameter nor the WIDE parameter

I'm guessing you have auto-scale switched on?

 


   
ReplyQuote
(@tacod)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

I ended up reverting back to DTI version 3.18.1 as that did support the time zones, but doesn't give the issues with CONTROL to BUTTON conversion.  As an added benefit, all my powershell scripts are working again too.


   
ReplyQuote
Glenn's Page