Grid row height

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Re: Grid row height

Post by mol » Tue Jul 26, 2016 11:13 am

I want to share first draft of this system. Be nice to test and send me your opinions.
Marek

http://www.molsystemy.pl/hmg/touchsystem.zip

User avatar
dragancesu
Posts: 700
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 23 times
Been thanked: 149 times

Post by dragancesu » Tue Jul 26, 2016 12:59 pm

Maybe change position like

oMiniGrid := MiniGrid():New("MiniGrid", 350, 10, 750, 200, 1000, 5000, aHeaders, aWidths, aJust)

You have ID, name, quantity but you must add price, value and sumary on the screen

Problem is new line character (chr(10)) in article name, eliminate that in grid

And respect the hierarchy, move green button on top on always visible, and change blue button visible

EduardoLuis
Posts: 653
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 61 times

Post by EduardoLuis » Tue Jul 26, 2016 1:26 pm

Hi Mol:

First it's a nice sample and idea.-
I don't know if it's on my system, but multiline grid is very low speed.-
A suggestion: if you please next time post sample in english.-
Perhaps everyone who don't speak polish could understand easily commands.-
Again thanks for share your experience with us.-
With regards.
Eduardo

User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Post by mol » Tue Jul 26, 2016 1:33 pm

dragancesu wrote:Maybe change position like

oMiniGrid := MiniGrid():New("MiniGrid", 350, 10, 750, 200, 1000, 5000, aHeaders, aWidths, aJust)

You have ID, name, quantity but you must add price, value and sumary on the screen

Problem is new line character (chr(10)) in article name, eliminate that in grid

And respect the hierarchy, move green button on top on always visible, and change blue button visible
It's only first draft of app to create... Colors will be defined by users.

Eduardo, thanks for interesting. I had no time to translate everything to English. I will do it, if you need...
Regards

User avatar
serge_girard
Posts: 2346
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 589 times
Been thanked: 124 times
Contact:

Post by serge_girard » Tue Jul 26, 2016 2:13 pm

Hello Marek,

It looks good! As Eduardo already mentioned: the GRID is slow (when used with scrollbars).

Serge

User avatar
luisvasquezcl
Posts: 1143
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 14 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Tue Jul 26, 2016 3:13 pm

wow... a little slow but great job.
best regards,
luis vasquez

User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Post by mol » Tue Jul 26, 2016 4:26 pm

I'm interested if it's possible to hide system sliders and replace it with two buttons - UP and DOWN, which could scroll window for row height?

EduardoLuis
Posts: 653
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 61 times

Post by EduardoLuis » Tue Jul 26, 2016 9:56 pm

Hi Mol:

About hide system slider, i think that is not possible.-
I test puting a graphic over slider control, so end user must work over to buttons or labels to control up and down a number of rows, but to do this, grid must be dissabled.- I feel happy, but as i understood you need grid enable to respond to a touch screen, the proposal below won't be efficient.-
I'll continuing thinking if there is any other chance.-
With regards.
Eduardo

User avatar
andyglezl
Posts: 1161
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 35 times
Been thanked: 73 times
Contact:

Post by andyglezl » Wed Jul 27, 2016 1:55 am

Trucos, Trucos, Trucos...
--------------------------------
Tricks, Tricks, Tricks ...

Change in Main Window..

.....
// oMiniGrid := MiniGrid():New("MiniGrid", 20, 10, 230, 500, 250, 5000, aHeaders, aWidths, aJust)
oMiniGrid := MiniGrid():New("MiniGrid", 00, 785, 230, 600, 250, 5000, aHeaders, aWidths, aJust)
......

// @ nWiersz + nLiczbaWierszy*(nWysokosc+nPrzerwa), nKolumna+ (nLiczbaKolumn-1)*(nSzerokosc +nPrzerwa) LABEL L_Powrot ;
@ nWiersz + nLiczbaWierszy*(nWysokosc+nPrzerwa), 1 + (nLiczbaKolumn-1)*(nSzerokosc +nPrzerwa) LABEL L_Powrot ;

......
TouchDemo.jpg
TouchDemo.jpg (63.93 KiB) Viewed 2453 times
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Wed Jul 27, 2016 4:50 am

Really a wonderful idea.

IMHO, when you go for designing a new type of control, try to take control of everything possible.

For example, you don't need to define new labels all the time. (more the rows more the problems with system memory. Instead you can predefine the fixed number of labels in the particular panel. When you want to scroll, you can have a system of moving the data from one label to adjacent label.

We can adapt the functionality of virtual grid. It is so fast. Even though we have 1000000 records, the virtual grid deals only with that particular set of records to be shown on the screen. When you move or scroll it is not the grid moving, it is the data moving! Grid remains the same.

Marek, your MiniGrid is really a perfect candidate for an alternative for grid with customizable cell formatting. Kudos to you! Keep up. I will try to help.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply