asGrid 3.0 problem - Forum

Forum Navigation
You need to log in to create posts and topics.

asGrid 3.0 problem

For @as3856 - Andrei

Hi Andrei,

In last couple of days i have a problem with asGrid 3.0 - see attached picture.
Windows 10 and Neobook.

Any idea ?
Thanks!

 

 

Uploaded files:
  • You need to login to have access to uploads.

@dglojnar

To understand the problem, you need the code in which it occurs.

Send the source code of the project.

Describe at what stage the error occurs.

 

P.S.

You can also try to perform some steps yourself:
1 - Remove all plugins that are installed in VisualNeo
2 - Reinstall asGrid 3 and check if the error occurs.

 

Regards as3856

@as3856

Hi Andrei !

Thank you very much for your quick answer:-)

Here is my code, it's a very simple - one button and rectangle.

 

asGridCreate "Rectangle1" "Create"

asGridSetStyle "Rectangle1" "Light" "Windows10"
asGridCellCountSize "Rectangle1" "FixedCountRows" "1"
asGridCellCountSize "Rectangle1" "FixedLeftCountCols" "0"
asGridOptions "Rectangle1" "True|True|True|True|False|" "|False|True||True|" "True||False|False|True|"
asGridAutoSizeCol "Rectangle1" "0,1,2,3"
asGridAutoGrowColumns "Rectangle1" "True" ""
asGridAutoFitColumns "Rectangle1" "True"
asGridLoadFromCSV "Rectangle1" "" "" "[pubdir]b.csv"

asGridExecuteOnSelect "Rectangle1" "subname"

:subname
asGridSelectGetCoordinates "Rectangle1" "[cx]" "[cy]"
asGridGetCellContent "Rectangle1" "[cx]" "[cy]" "[cell_content]"
return

As you see, idea is very simple - set up some grid parameters, load CSV file and get content of cell by click on cell.

After investigating I found command:
asGridExecuteOnSelect "Rectangle1" "subname"

make this problem and error.

After starting a code, everything works OK until I try to scroll down with mouse wheel, the complete table starts to behave strangely and become half responsive, I mean I can click on any cell and get a content, but table is freeze and content of table is changed, display random values from cells.

I presume problem is with my code, not with plug-in.
I also try work without asGridExecuteOnSelect "Rectangle1" "subname" and there is no errors, everything works perfect - I get a coordinates, mouse wheel scrolling works without problems.

Is asGridExecuteOnSelect "Rectangle1" "subname" positioned correctly?
Should I maybe put it all in a loop?
Or something else ?

Is there any other way to get a cell content by click ?
I was trying with all commands related to, but no success, probably  I'm doing something wrong :-(

I really appreciate any tip/advice how to fix this :-)

Cheers!

P.S. I of course did your recommended steps and the result is always the same - if I don't use asGridExecuteOnSelect "Rectangle1" "subname" everything works OK.

Hello

Use this command: asGridClickMouseDown "Rectangle1" "Left" "" "subname"

alangonzalez91 has reacted to this post.
alangonzalez91

@iretz

THANK YOU VERY VERY MUCH !!!!!!!

IT works like a charm!
I was thinking about this command, but , somehow, lost it...

Anyway, thank you again, you make my day!

Have a nice evening and peaceful weekend :-)

Cheers!

luishp, alangonzalez91 and iretz have reacted to this post.
luishpalangonzalez91iretz