StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Button Location Changes Between Design and Run
Button Location Changes Between Design and Run
Post Reply
Like
1
Button Location Changes Between Design and Run
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
William Fields
William Fields
posted 10 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 80,
Visits: 239
I've got a button on a form that won't stay put. At design time, the button is in one spot, when I run the form, it's in a different spot. Attached image shows design on left and running form on the right. I've turned of AutoSize and it is not anchored...
Any ideas?
Attachments
Button Location.PNG
(
115 views,
125.00 KB
)
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 10 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
William,
That may be caused by the font size in the workstation where the application is running.
You can use a Toolbar with a single button instead.
Edhy Rijo
Reply
Like
1
William Fields
William Fields
posted 10 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 80,
Visits: 239
Shouldn't the running form look the same as the design time form when they're running on the same workstation?
FYI - the button in question is the "Pre-Built Dialogs" button in Form1 in the Database Installer sample app. I'm not familiar with the "ThemedGroupBox", but I think that's part of the issue.
Thanks.
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 10 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
William Fields (12/3/2014)
Shouldn't the running form look the same as the design time form when they're running on the same workstation?
Yes, but that will depend on the font size used in the workstation where the application is running.
Are you testing this in the same computer you are using for developing?
I don't remember the code in that sample application, but other than the font, the only thing is that some code is moving the position of that button.
Edhy Rijo
Reply
Like
1
Larry Caylor
Larry Caylor
posted 10 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 592,
Visits: 3.7K
If you're testing on a Windows 7 machine make sure the font size is set to the default (100%). Anything else my cause unexpected results.
-Larry
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search