ListBox height not taking variables

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
OlgaFB
Pro Scripter
Posts: 58
Joined: Mon Nov 01, 2004 3:04 pm
Contact:

ListBox height not taking variables

Post by OlgaFB » Wed Aug 23, 2006 1:56 pm

Hi Marcus,

I wanted to have two dialog sizes, for different screen sizes. So I defined two sets of variables, for each one of the screen sizes, and put the variable names instead of width, height, x, y etc.

It worked for everything, except for the listbox height. For some reason, ListBox doesn't appear, if its height is defined by a variable.

Not that I said that to be a serious bug... just a little inconvenience. :)

Thank you for everything in Sacro Scheduler, it's an amazing program!
Olga.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Aug 23, 2006 2:07 pm

Hi Olga,

Seems to be ok for me:

Try different values of h:

Code: Select all

Let>h=200

Dialog>Dialog1
   Caption=Dialog1
   Width=445
   Height=250
   Top=286
   Left=351
   Memo=msMemo1,72,40,185,h,msMemo1
EndDialog>Dialog1

Show>Dialog1,r
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

OlgaFB
Pro Scripter
Posts: 58
Joined: Mon Nov 01, 2004 3:04 pm
Contact:

Post by OlgaFB » Wed Aug 23, 2006 2:14 pm

:) It's because you tried Memo. That's what I said: it works for everything else.

Try to put instead of the Memo line,

ListBox=msListBoxDB,8,24,185,90,

or

ListBox=msListBoxDB,8,24,185,h,

See the difference?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Aug 23, 2006 2:17 pm

Oops. I thought I had placed a list box on the form! Yes, now, I see the problem with the list box.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts