Page 1 of 1
[RPG]How to use ZINDEX
Posted: Wed Jul 03, 2019 12:57 pm
by MegumiSawada
Hi,
Could you pelase let me know how to use ZINDEX?
https://www.longrangemobile.com/docs/lr ... erties.htm
If I would like to use 3 different sub-form in the same position in a formview, can I use ZINDEX for these sub-forms?
I would like to switch these sub-forms by clicking on button.
If possible, could I have a sample code for them please?
Best Regards,
Megumi Sawada
Re: [RPG]How to use ZINDEX
Posted: Thu Jul 04, 2019 9:31 am
by jasonzhou
Hi Megumi,
Attached demo code shows how to use ZIndex with 3 sub-forms.
Re: [RPG]How to use ZINDEX
Posted: Thu Jul 04, 2019 12:02 pm
by MegumiSawada
Hi Jason,
Thank you for the sample code.
Can we use DDS as well?
In that case, how can we define 3 sub-forms in the same position?
Best Regards,
Megumi Sawada
Re: [RPG]How to use ZINDEX
Posted: Thu Jul 04, 2019 4:41 pm
by jasonzhou
Can you please try Layout.row and Layout.col in DDS see if it works as expected?
For example:
Code: Select all
A 20 20HTML('<<FORM1>>
A Type: Form
A Layout.row : 1
A Layout.col : 1
A Layout.Width : 50
A Layout.Height : 50
A BackColor : Gray
A ')
A 20 20HTML('<<FORM2>>
A Type: Form
A Layout.row : 1
A Layout.col : 1
A Layout.Width : 50
A Layout.Height : 50
A BackColor : Red
A ')
A 20 20HTML('<<FORM3>>
A Type: Form
A Layout.row : 1
A Layout.col : 1
A Layout.Width : 50
A Layout.Height : 50
A BackColor : Yellow
A ')
Re: [RPG]How to use ZINDEX
Posted: Thu Jul 04, 2019 4:58 pm
by MegumiSawada
Hi Jason,
Thank you for your reply.
It seems that only the last definision(e.g. FORM3) will be recognized becase 3 subforms are at the same position.
So the last difinision is shown initially and an error will occur when tapping buttons.
Layout.col and Layout.row doesn't seem to work as expected.
Regards,
Megumi