Card Buttons in Windows

Ken Ray kray at sonsothunder.com
Fri Jan 27 10:12:56 EST 2012


On Jan 26, 2012, at 11:47 PM, Peter Bogdanoff wrote:

> Hi,
> 
> I have a bizarre issue that I can't figure out.
> 
> I have a stack created in OS X that I brought over to Windows. In Windows, card buttons are 12% wider and moved to the right 7 pixels.
> 
> For example, 4 card buttons, touching side by side. After opening the stack in Windows I see the first button moved 7 pixels to the right and stretched 16 pixels wider. The three remaining buttons continue to be touching their sides but each 12% wider.
> 
> 1. Card button heights are the same
> 2. Background buttons are normal size
> 3. The stack size is unchanged and was locked
> 4. No live resizing enabled
> 5. The same stack brought back to OS X had the new sizes of the card buttons
> 6. I did a test with a new stack with similar size and buttons--Created in OS X but showing unchanged in Windows, problem not replicated
> 7. Working with LC 5.0.0, but a runtime created in 4.6.3 showed the same anomaly.
> 8. Testing in Windows XP & 7 using Virtual Box for 7 and VMWare Fusion for XP on my Mac OS X Snow Lion
> 9. Nothing in my scripts that resize anything
> 10. The stack was originally created in HyperCard, converted to LC in 4.6.3
> 11. New buttons created in the Mac OS X stack also show the same resizing when the stack is brought to Windows.
> 
> Anybody have anything on this???

Just a few questions:

1) Are you using LiveCode property profiles to manage font changes between platforms, or are you changing the textFont/textSize/textStyle/textHeight of your buttons manually?
2) What is the style of the buttons?
3) Does it change anything if you set the lockLocation of the buttons to true?
4) Make sure that no code runs in the affected stack when it opens (like temporarily commenting out any code that would run) and then try to open it on Windows. Do you still see the same issue?

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	




More information about the use-livecode mailing list