PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WM22 - First window for phone/tablets
WM22 - First window for phone/tablets
Iniciado por guest, 06,abr. 2018 09:49 - 4 respuestas
Publicado el 06,abril 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
Publicado el 06,abril 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
Publicado el 06,abril 2018 - 12:50
I have already set up the different window for the device, but not work...
Publicado el 07,abril 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
Publicado el 09,abril 2018 - 10:03
Perfect.... thanks ICI