Page 2 of 2
GRID - COLUMNCONTROLS
Posted: Thu Mar 05, 2015 7:38 pm
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.
I think this will be useful for many of us.
Hi Claudio,
And regarding others points like as:
- Passwords at Grid by ColumnControls -> { 'TEXTBOX', "PASSWORD" }
- 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 ?
(seems nobody wish these implementations)

GRID - COLUMNCONTROLS
Posted: Fri Mar 06, 2015 3:58 pm
by Pablo César
I believe this is important demand, my POW concerned in these:
- Passwords at Grid by ColumnControls -> { 'TEXTBOX', "PASSWORD" }
- 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 ?
Re: GRID - COLUMNCONTROLS
Posted: Fri Mar 06, 2015 4:59 pm
by Javier Tovar
+1 Pablo César!
Re: GRID - COLUMNCONTROLS
Posted: Fri Mar 06, 2015 5:02 pm
by Pablo César
Thank you Javier for your support !

Re: GRID - COLUMNCONTROLS
Posted: Sat Mar 07, 2015 8:39 am
by serge_girard
Pablo,
Great!
Individual ContextMenu (right-click) for each column would also be great !
Serge
GRID - COLUMNCONTROLS
Posted: Sat Mar 07, 2015 2:32 pm
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.
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,
Re: GRID - COLUMNCONTROLS
Posted: Sat Mar 07, 2015 2:55 pm
by serge_girard
Thanks Pablo !
This comes near to what I suggested.
Serge
GRID - COLUMNCONTROLS
Posted: Sat Mar 07, 2015 4:13 pm
by Pablo César
serge_girard wrote:This comes near to what I suggested.
Is it
this one what are suggestting, Serge ?
I think events come cut off unecessary code for this only propose.
Re: GRID - COLUMNCONTROLS
Posted: Sun Mar 08, 2015 8:08 am
by serge_girard
Yes Pablo, it is and it's great !
Thank you!
Serge