PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Window Inserting Element by Coding
Window Inserting Element by Coding
Débuté par OGRP, 13 jan. 2018 21:18 - 1 réponse
Posté le 13 janvier 2018 - 21:18
Hi

Using Android, Windev mobile 22

I want to add additional items into a window. For example every time a button is pressed, it generates a random number and adds it to a list. However I always want every item to be visible and therefore have a scrolling window. I have three options

1. Add to a list (no vertical scroll bar) and increase the list height - This does not work. The Window scroll never appears.
2. Add to a table (no vertical scroll bar) and increase the table height - Same problem as 1.
3. Add elements directly below each other in a window - I am unable to find a way to do this.

Any help would be appreciated.
Posté le 15 janvier 2018 - 13:41
Hi

Considering that the size of your screen is finite, your requirement
"...However I always want every item to be visible ..." is impossible to
match.

so without knowing what you REALLY want, it's impossible to answer.

Several ways NEARLY matching your requirement:
- use a table or looper or list or text field anchored in height
(increases in size with the window)
- add to it
- the scrollbar will appear in the table or looper or list or text field
(not the window) when needed


Now, if what you want is to have the last generated item to always be
visible and not every item, then the problem is completely different.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

Le 1/13/2018 à 3:18 PM, OGRP a écrit :
Hi

Using Android, Windev mobile 22

I want to add additional items into a window.  For example every time a
button is pressed, it generates a random number and adds it to a list.
However I always want every item to be visible and therefore have a
scrolling window.  I have three options

1. Add to a list (no vertical scroll bar) and increase the list height -
This does not work.  The Window scroll never appears. 2. Add to a table
(no vertical scroll bar) and increase the table height - Same problem as 1.
3. Add elements directly below each other in a window - I am unable to
find a way to do this.

Any help would be appreciated.