Page 1 of 1

scroll buttons tablet win10

Posted: Thu Oct 12, 2017 11:52 am
by Silvio.Falconi
I must create a dialog with buttons ( btnbmp flat) to simulate tables of restaurant on a tablet win10 pro

on screen I cannot insert all tables of restaurant because there's no space

I'm thinking to create only on a page 4X5 lines and only 20 buttons then two buttons to scroll pages up and down

I'm tinking no use a dbf but an array type aTable:= {numtable,place,mesero,opentime,closetime }

sample :

Table number : 1
Place : garden
mesero : Otto
Open table : 12:45

aTable:= {1,"garden","Otto","12:45:55","" }


each time the user can open a table and I can add a record on aTable array

at init the array a table is empty and the procedure must no show any tables

then when the user open a table it must show the btnbmp on dialog with the info of table

How I can make it ?

Re: scroll buttons tablet win10

Posted: Thu Oct 12, 2017 4:08 pm
by TimStone
Maybe you can use an xBrowse with a multi dimensional array. Put table bitmaps on the fields.

When a bitmap is selected, have it popup a diagram of the full table. Store the values for the tables in a dbf that is associated with the array of tables.

Your bitmaps in the browse can have three different symbols: Empty table, Full Table, Partial Table

This sounds like a fun project. Good luck.

Re: scroll buttons tablet win10

Posted: Thu Oct 12, 2017 5:17 pm
by Silvio.Falconi
I wish use buttons no xbrowse
I have the sources with sbutton but I wish use fw button flat

Re: scroll buttons tablet win10

Posted: Thu Oct 12, 2017 7:17 pm
by Otto
Hier is a Video:
http://atzwanger-software.com/fw/flatbtn.mp4

Hello Silvio,
I think FLATBTN is exactly what you need. Change or overwrite the painting method.
I do it for my dashbord where I show the free rooms in a hotel.
The graphic shows for how many days the room is free.
Depending on the width of the Dialog the buttons are rearranged.
This dialog is a kind of responsive.
This is a work in progress.


Please post a picture/sketch of what you want.

Best regards,
Otto

Image

Re: scroll buttons tablet win10

Posted: Thu Oct 12, 2017 7:24 pm
by Gale FORd
What about using Tabs/Folder?
Each tab could hold so many tables/buttons.

Re: scroll buttons tablet win10

Posted: Sat Oct 14, 2017 4:14 pm
by Silvio.Falconi
gale,
a restaurant have many saloon and each saloon have many tables
i wish show only 4 buttons for saloon scrolled and only 20 tables buttons scrolled
I think it cannot hard to make
all can be show on a table win 10