Set maximum dialog box size [SOLVED]

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
beetlenaut
Developer
Posts: 2814
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Set maximum dialog box size [SOLVED]

Post by beetlenaut »

I made a custom dialog with a listbox. As the list gets bigger, the dialog grows until it hits the edge of the screen. I can't figure out how to make it stop growing at a more reasonable size. (It has a scrollbar.)
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Set maximum dialog box size

Post by gfgtdf »

I don't know either it it possible to set the maximum height of a listbox, what your can do however is to set the maximum hight of the whole dialog.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
User avatar
beetlenaut
Developer
Posts: 2814
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Set maximum dialog box size

Post by beetlenaut »

Yeah, that's fine. I can't figure out how to do it though.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Set maximum dialog box size

Post by gfgtdf »

somethng like maximum_height = 600, in your dialogs wml should work i think
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
User avatar
beetlenaut
Developer
Posts: 2814
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Set maximum dialog box size [SOLVED]

Post by beetlenaut »

Oh. That was too easy. I thought I had create a definition for my grid with a default resolution or something like that. Thanks!
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Post Reply