[RPG]How to use ZINDEX

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

[RPG]How to use ZINDEX

Post by MegumiSawada » Tue Jul 02, 2019 9:57 pm

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

jasonzhou
Posts: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: [RPG]How to use ZINDEX

Post by jasonzhou » Wed Jul 03, 2019 6:31 pm

Hi Megumi,

Attached demo code shows how to use ZIndex with 3 sub-forms.
Attachments
FORMZIDX.txt
(5.86 KiB) Downloaded 4 times

MegumiSawada
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

Re: [RPG]How to use ZINDEX

Post by MegumiSawada » Wed Jul 03, 2019 9:02 pm

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

jasonzhou
Posts: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: [RPG]How to use ZINDEX

Post by jasonzhou » Thu Jul 04, 2019 1:41 am

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                                      ')               

MegumiSawada
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

Re: [RPG]How to use ZINDEX

Post by MegumiSawada » Thu Jul 04, 2019 1:58 am

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

Post Reply