Author |
Topic: Strange Button behavior (Read 86 times) |
|
Alincon
Full Member
member is offline


Posts: 147
|
 |
Re: Strange Button behavior
« Reply #22 on: Nov 2nd, 2016, 11:57pm » |
|
This strange effect may be due to some intricacy in Windows 7. But why do I not see it when I run the same programs in LB4.04 and 4.5?
r.m.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Strange Button behavior
« Reply #23 on: Nov 3rd, 2016, 02:57am » |
|
on Nov 2nd, 2016, 11:57pm, Alincon wrote:| This strange effect may be due to some intricacy in Windows 7. |
|
Now we understand it, to a degree, I don't think it can any longer be described as "strange"! What I see here, at least, is a perfectly ordinary transition animation.
Quote:| But why do I not see it when I run the same programs in LB4.04 and 4.5? |
|
Obviously I am not privy to the internal workings of LB 4, only Carl knows those details. But one possible explanation is that LB 4 does not enable Version 6.0 Common Controls in its manifest, and it may be that some of these animation effects are dependent on that setting. But there could be many other reasons; as I've said, Windows is enormously complex.
Richard.
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Strange Button behavior
« Reply #24 on: Nov 3rd, 2016, 9:42pm » |
|
The most straightforward workaround, to create an 'invisible' dummy button as the first item in the window - which can be animated as slowly as Windows wishes - seems to be effective on my Windows 7 PC:
Code: nomainwin
button #student, "", [], UL, WindowWidth, 0
button #student.btn6, "Get Student", [getStudentFile], UL, 100,50
open "Student File Maintenance" for window as #student
#student "font Microsoft_Sans_Serif 10"
#student "trapclose [studentEnd]"
#student.btn6 "!setfocus"
wait
[studentEnd]
close #student
end Richard.
|
|
|
|
|