tg
New Member
Posts: 1
|
Post by tg on Feb 5, 2018 6:14:20 GMT -5
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.
|
|
|
Post by StefanPendl on Feb 11, 2018 3:19:49 GMT -5
|
|
|
Post by Gordon on Aug 18, 2018 15:07:36 GMT -5
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
|
|
|
Post by meerkat on Aug 18, 2018 21:24:32 GMT -5
|
|