PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WM22 - First window for phone/tablets
WM22 - First window for phone/tablets
Débuté par Giovanni Carella, 06 avr. 2018 09:49 - 4 réponses
Posté le 06 avril 2018 - 09:49
Hi,
i have set 2 different windows for my android application, one for phone and one for tablet.
Whene run on my mobile device the application open the phone window, always...

some of you have a working example with 2 different windows for phone and tablet

Thanks
Posté le 06 avril 2018 - 12:23
Hi.

In the project window tree you can indicate which is the initial window of each type of device.

Use the right mouse button over the windows to define which is the initial window for phone and which for tablet.


Rubén
Posté le 06 avril 2018 - 12:50
I have already set up the different window for the device, but not work...
Posté le 07 avril 2018 - 22:24
Hi Giovanni
First name your configurations, example:
1. Tablet configuration
2. Phone configuration
Decide which window belong to specific configuration

I do this in project initialization code

GLOBAL
gsMasterWindow is string of 16

IF ProjectInfo(piConfiguration) = "Tablet configuration" THEN
gsMasterWindow= "WIN_Tablet_Start"
ELSE
gsMasterWindow= "WIN_Phone_Start"
END
OpenMobileWindow(gsGlavniProzor)

Regards
Posté le 09 avril 2018 - 10:03
Perfect.... thanks ICI