Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding new lines at the bottom of a grid
#1
I have two questions regarding adding new rows in a QM-Grid when the display is almost full :

(1) Is it possible to massively add a few empty row at the bottom of the display, to avoid adding new lines at the bottom under uncomfortable conditions?

(2) Each time you enter a new row at the bottom of the display the display is automatically scrolled to the first line. As a consequence you have to manually scroll again to the bottom line of the display. Is there any way to avoid it?

Many thanks in advance.
#2
(2) Sample routine to scroll down. It can be triggered in several ways, solving my current problem :

Function tempf
Trigger SF8     Help - how to add the trigger to the macro
Code:
Copy      Help
str si.getmacro(getopt(itemid) 1)
str caller.getmacro(getopt(itemid 1) 1);err    caller=si
if ideb; min 0; err out "<>%s : <open ''%s /%i''>%s</open> - Called by : <open>%s</open>%s" NowT si _error.place si caller

int w=wait(1 WV win("CNS Data Base :" "#32770"))
Acc a.Find(w "PUSHBUTTON" "Line down" "class=QM_Grid[]id=4" 0x1025 1)
err
,_s=F"{_error.description} : <c 172>Info</c> - Caller : <open>{caller}</open> "

,min 0; err out "<>%s : <open ''%s /%i''>%s</open> - %s" NowT si _error.place si _s
,mac "Warning_QM" si 0
,end
a.Mouse(0)

int x y cx cy

a.Location(x y cx cy)

mou+ 0 -(cy/2)-1
lef


Any comments are mostly welcome.


Forum Jump:


Users browsing this thread: 1 Guest(s)