DrawImageEx :) - Page 2 - Forum

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

DrawImageEx :)

PreviousPage 2 of 2

I don't understand :

CreateArray [myMap] 11,10,11,24,28
ArrayLen [myMap] [nbr]  <-- 5 ok
SetVar [nbr] [nbr]-1  <-- 4 ok

Loop 0 [nbr] [idx]
GetCompVar [tn] [myMap[idx]]
AlertBox "Debug" "tn=[tn]" ""      <-- undefined ??
EndLoop

---EDIT---

SetVar [tn] "[myMap([idx])]"

What is the work of GetCompVar?

FitAppToScreen true "middle" "center"

When I use this procedure, the application happily overflows the screen...
My chosen resolution: w=640, h=960

---EDIT---

Replace true by false (it's the opposite of what is recommended...)

I use FitAppToScreen true "top" "center"

When I click on a container (left=25 and top=25), GetObjectXY give me 19 and 19.
I guess it's a ratio between the original positions and the screen positions. How to know the ratio automatically?
NAB.MouseX gives the position of the mouse relative to the application.
However, I want to know the coordinates of the mouse in relation to the container that I am hovering over (MouseX-Container.Left).

@patrik too many questions with no sample app to check.

What is the work of GetCompVar?

Its purpose is to be used as it's in VisualNEO Win. VisualNEO Win doesn't have real arrays but you can create composed variables as explained here.

I solve my problems one by one :)
I'm slowly getting used to the internal logic of VNWeb.
Basically, I'm a Fortran programmer who later switched to C, Delphi etc.
A long time ago, I also programmed with Forth and Lisp.

luishp has reacted to this post.
luishp
PreviousPage 2 of 2