- Jun 6, 2020
- 11,559
- 4,422
At first glance SetWindowSizeLimits doesn't seem to work perfectly, but I suppose that with it you set the minimum and maximum of the internal size of the Form, not the total ones, including the borders. This is probably because there are various Form styles, even without borders.
So, assuming what I just wrote, I tried this code:
B4X:
but both that variables return zero (the Form style is Default, with borders) and, for example, the minimum height allowed is 372 instead of the desired 410.
Log(frm.WindowWidth) writes a not so nice: NaN = Not a Number
I suppose (too many suppositions) I have to move that code where the Form has already been displayed but I don't think there...
So, assuming what I just wrote, I tried this code:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
but both that variables return zero (the Form style is Default, with borders) and, for example, the minimum height allowed is 372 instead of the desired 410.
Log(frm.WindowWidth) writes a not so nice: NaN = Not a Number

I suppose (too many suppositions) I have to move that code where the Form has already been displayed but I don't think there...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید