Cursor Positioning

new BookmarkLockedFalling
tg
New Member
*

tg Avatar

Posts: 1Male

StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Gordon
New Member
*

Gordon Avatar

Posts: 22

Post by Gordon on Aug 18, 2018 15:07:36 GMT -5

tg Avatar

Hi,

Just started with RB.

I am trying to position TEXT at a specific row/column on screen.

Wanted to know of there is a way to position the cursor as such.

None of commands I saw allowed for that.

Thx.





Hi,
Here is a listing that does everything you asked.
The listing places jpg pictures on every spot you want.
The listing places text at every spot you want.
The listing uses fancy fonts like asimov and algerian.

There are two things still missing in RB?
1. To place a imagebutton on every spot you want ... you need HTML.
(with some CSS and DIV)
2. After RENDER a gif picture will lose its transparent background.
so here you need HTML again.

I guess that Carl is working on both items right now.

Gordon





call setCSS

RX=280:RY=500
X=320:Y=300

#fwin place(X,Y)
#fwin color("red")
#fwin font("asimov",14,"italic")
#fwin "\ flip flop froggie"

loadgraphic #fwin,"public\camel\wnd01.jpg"
loadimage "kruis", "public\kruis2.gif"
#fwin drawimage("kruis",200,430)
gosub [gifplaatjes]
gosub [imgbuttons]

render #fwin
wait

[richting]
r = val(right$(EventKey,1ドル))
select case r
case 1
RX=RX-90
case 2
RX=RX+120
case 3
RY=RY-40
end select

#fwin color("black")
#fwin font("algerian",14,"italic")
#fwin place(RX,RY)
#fwin "\ ";EventKey$
cls: render #fwin :gosub [gifplaatjes]:gosub [imgbuttons]
wait

[gifplaatjes]
html"<img src = '/kruis2.GIF' style=' width:50px; height:50px; position:absolute; left:500px; top:470px'>"
html"<img src = '/camel/flipfrog.gif' style=' width:150px; height:150px; position:absolute; left:300px; top:150px'>"
RETURN

[imgbuttons]
div omh
imagebutton #omhoog3, "\raket\omhoog.jpg", [richting]
end div
div lir
imagebutton #links1, "\raket\links.jpg", [richting]
imagebutton #rechts2, "\raket\rechts.jpg", [richting]
end div
RETURN


Sub setCSS
cssid #lir, "{
position: absolute;
left: 644px;
top: 523px;
}"
cssid #omh, "{
position: absolute;
left: 683px;
top: 446px;
}"
end sub
Gordon[br]www.libertybasic.nl/index1
meerkat
Senior Member
****

meerkat Avatar

Posts: 250