Search found 220 matches

by jornmo
Monday 18th March 2019 9:00am
Forum: General
Topic: How to draw in a GLArea?
Replies: 6
Views: 9867

Re: How to draw in a GLArea?

Hi Quin :) Actually, NeHe is on the Farm. I used that for some insight on the GL code itself. But, it is cool seeing from where it came. Thanks! It seeems when using the GLArea one needs to use .Begin() and .Flush() in addition to the code used in the NeHe app on the Farm. One also needs to be aware...
by jornmo
Sunday 17th March 2019 8:53pm
Forum: General
Topic: How to draw in a GLArea?
Replies: 6
Views: 9867

Re: How to draw in a GLArea?

I read some C++ examples and "figured it out". ' Gambas class file Public Sub Form_Open() gl.ClearColor(0.0, 0.0, 0.0, 0.0) gl.Viewport(0, 0, 500, 500) gl.MatrixMode(gl.PROJECTION) gl.LoadIdentity() gl.Ortho(0, 500, 0, 500, 1, -1) gl.MatrixMode(gl.MODELVIEW) End Public Sub GLArea1_Draw() g...
by jornmo
Sunday 17th March 2019 7:42pm
Forum: Lounge
Topic: I created a new subforum
Replies: 0
Views: 7373

I created a new subforum

Hi!

I created a new subforum for SDL and OpenGL. I just though that since there's so little information about it around on the internet (in regards to Gambas that is), all the information this forum can produce on the topic deserves to be easily found :)
by jornmo
Sunday 17th March 2019 7:40pm
Forum: General
Topic: How to draw in a GLArea?
Replies: 6
Views: 9867

How to draw in a GLArea?

Hi! Does anyone know how I can draw inside a GLArea ? I tried some GL methods inside the GLArea's Draw event, but the area remains pitch black. The farm has no examples, exept the ones using OpenGL combined with SDL, which is not what I want. DuckDuckGo ( ddg.gg ) leaves me non the wiser as well... ...
by jornmo
Wednesday 13th March 2019 11:58am
Forum: General
Topic: DateTime Error
Replies: 17
Views: 17687

Re: DateTime Error

cogier wrote: Wednesday 13th March 2019 11:45am I did not need either the following worked fine: -
Sure, but that's another story ;)
by jornmo
Wednesday 13th March 2019 11:41am
Forum: General
Topic: DateTime Error
Replies: 17
Views: 17687

Re: DateTime Error

@Cedron .Move() does what you four lines did in one :)

http://gambaswiki.org/wiki/comp/gb.qt4/control/move
by jornmo
Sunday 10th March 2019 9:31pm
Forum: Component
Topic: Install Custom Control - help needed
Replies: 6
Views: 9371

Re: Install Custom Control - help needed

I am glad to hear my component is still usefull, even though I haven't touched it in years :) You can of course also just copy over the class file, and use it directly in your project as any other class file. That is the very simplest way to go about it, but you lose the abillity to have it shared a...
by jornmo
Friday 8th March 2019 4:24pm
Forum: Lounge
Topic: Hi everybody!
Replies: 6
Views: 9992

Re: Hi everybody!

Hi, and welcome! That, cogier my friend, is only for those who were kids after 1977 to know anything about :D
by jornmo
Friday 8th March 2019 4:21pm
Forum: General
Topic: The worst insult ever?
Replies: 5
Views: 6710

Re: The worst insult ever?

You can also use the "gb-button" to make the code look more nice like this. If the code contains URLs, also tick the "Do not automatically parse URLs", or else the URLs will mess up the code :) theFile = Open "~/test.txt" For Write Create ' Your Home Directory Print #th...
by jornmo
Sunday 24th February 2019 12:02pm
Forum: General
Topic: Reading groups of RadioButtons
Replies: 4
Views: 5722

Re: Reading groups of RadioButtons

Ahh, yes! Sorry :) I meant Group, not Action.