Change dialog height
Change dialog height
How I can change fiakog height in runtime like moai.Set("dlg3", "height",preferencesh)?
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Change dialog height
Just set Window.Height when creating the dialog. You cannot change it at runtime.
Re: Change dialog height
It is not good!
Is it possible to use variables in xml like this
preferencesh=200
Function p_OpenDialogPreferences()
moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?>
<dialog id="dlg3" title="Preferences" width="300" height= preferencesh > ???
Is it possible to use variables in xml like this
preferencesh=200
Function p_OpenDialogPreferences()
moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?>
<dialog id="dlg3" title="Preferences" width="300" height= preferencesh > ???
Re: Change dialog height
As the CreateDialog() uses simple string for the xml, you can use it like this:
Code: Select all
preferencesh=200
Function p_OpenDialogPreferences()
moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?>
<dialog id="dlg3" title="Preferences" width="300" height="]] .. preferencesh .. [["> ???