FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour scroll buttons tablet win10
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
scroll buttons tablet win10
Posted: Thu Oct 12, 2017 11:52 AM

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 ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: scroll buttons tablet win10
Posted: Thu Oct 12, 2017 04:08 PM

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.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: scroll buttons tablet win10
Posted: Thu Oct 12, 2017 05:17 PM

I wish use buttons no xbrowse
I have the sources with sbutton but I wish use fw button flat

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: scroll buttons tablet win10
Posted: Thu Oct 12, 2017 07:17 PM
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

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: scroll buttons tablet win10
Posted: Thu Oct 12, 2017 07:24 PM

What about using Tabs/Folder?
Each tab could hold so many tables/buttons.

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: scroll buttons tablet win10
Posted: Sat Oct 14, 2017 04:14 PM

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

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion