GRID - COLUMNCONTROLS

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

GRID - COLUMNCONTROLS

Post by Pablo César »

srvet_claudio wrote:
Pablo César wrote:Hi HDT (HMG Development Team),

Is it posible to add a new property for SPINNERs at GRID when is defined at COLUMNCONTROLS ?
Screen1.png
For COLUMNCONTROLS:

We use to declare like this: aCtrl_06 := { 'SPINNER', 1, 20 }
The suggested is to accept fourth parameter, like this: aCtrl_06 := { 'SPINNER', 1, 20, 5 }
This is to make INCREMENT at spinning in Grids, it could be important and optional too.

For this propose, shall it be implemented at _HMG_PARSEGRIDCONTROLS function too (around line # 1352).

I would like to receive any return (if yes or not) in order to make facilities at InputWindow(), otherwise this option will be fixed to increment always be +1. :?

Thank you for you attention.
Done!
Thank you Claudio. :D

I think this will be useful for many of us.
Hi Claudio,

And regarding others points like as:
  1. Passwords at Grid by ColumnControls -> { 'TEXTBOX', "PASSWORD" }
  2. EditBox at Grid by ColumnControls (not exclusive for only ROWSOURCE with database) -> {"EDITBOX"}
I know this requirements are unsual out of HMG policy to preserve HMG with the API standard.

But is there any chance to be approved ?

Is this interesting for many others ? :roll:
(seems nobody wish these implementations) :(
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

GRID - COLUMNCONTROLS

Post by Pablo César »

I believe this is important demand, my POW concerned in these:
  1. Passwords at Grid by ColumnControls -> { 'TEXTBOX', "PASSWORD" }
  2. EditBox at Grid by ColumnControls (not exclusive for only ROWSOURCE with database) -> {"EDITBOX"}
In InputWindow function for Grid, will try to work in some cases but not complete due the missing implementations t HMG library.

I have used at long time ago, a browse in Clipper displaying user names and passwords (but of course passwords were displayed like a "•"). Actually in this case for HMG is not posible to do this in Grids.

I also use different files for each register and it be posible to edit with EditBox. But in HMG, this not is working. Only works when your grid is with MEMO field in your DBF.
Is something strange not be allowed to edit in Grids when is for arrays for example.

I have not problem personally if all of these is not approved, but I believe, user will loose.

How would you do in your grids for arrays when is a field (like MEMO in dbf) i.e. when you need to make observations/remarks/write any text ? NO WAY. Almost you can do it by TEXTBOX but not in EDITBOX. So no samples for this case. :(

In InputWindow, I expected memo fields (even not been thru DBFs) and can be edited by EditBox which is better visualization instead textbox.

Don't you think ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: GRID - COLUMNCONTROLS

Post by Javier Tovar »

+1 Pablo César!
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: GRID - COLUMNCONTROLS

Post by Pablo César »

Thank you Javier for your support ! :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID - COLUMNCONTROLS

Post by serge_girard »

Pablo,

Great!

Individual ContextMenu (right-click) for each column would also be great !


Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

GRID - COLUMNCONTROLS

Post by Pablo César »

serge_girard wrote:Individual ContextMenu (right-click) for each column would also be great !
Hi Serge !

Always nice to attend you and read your messages ! :)

For this case (is not regarding COLUMNCONTROLS but...) to get a individual ContextMenu (of course by right-click in the grid), I suggest to make thru events in the grid.

I've prepared a enhanced demo which it could be useful to make your own implementations.
I think you know how to do different ContextMenu right ? So I think will be easier to use this code.

Image

I'm not expert in Events (Dr. Soto is !), but if you have any difficulty to optimize events routine (in this demo) and your code for ContextMenu, please do not hesite to tell us.

Best regards,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID - COLUMNCONTROLS

Post by serge_girard »

Thanks Pablo !

This comes near to what I suggested.

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

GRID - COLUMNCONTROLS

Post by Pablo César »

serge_girard wrote:This comes near to what I suggested.
Is it this one what are suggestting, Serge ?

Image

I think events come cut off unecessary code for this only propose.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID - COLUMNCONTROLS

Post by serge_girard »

Yes Pablo, it is and it's great !

Thank you!

Serge
There's nothing you can do that can't be done...
Post Reply