Search found 1106 matches

by cogier
Saturday 3rd December 2022 12:17pm
Forum: Project showcase
Topic: I recreated one of the first programs I ever wrote.
Replies: 2
Views: 4225

Re: I recreated one of the first programs I ever wrote.

Hi rokyed and welcome to the forum. I had a look at your program, it does the job, but I felt there were a few additions I could add to help you on your way with Gambas. Download available below. Feel free to keep or ignore any changes. I have made the form fully resizeable. Note that if you have a ...
by cogier
Friday 2nd December 2022 1:47pm
Forum: Beginners
Topic: How to add checkbox or switch button column to tableview
Replies: 4
Views: 1731

Re: How to add checkbox or switch button column to tableview

Hi bored and welcome to the forum.

I have to agree with thatbruce. The Gambas version 2.23 was released in April 2011! We are now up to version 3.17.3.

What distro are you using?
by cogier
Tuesday 29th November 2022 3:36pm
Forum: General
Topic: Spaces instead of Tabs in a text area, did I miss a better way?
Replies: 4
Views: 1581

Re: Spaces instead of Tabs in a text area, did I miss a better way?

Have you had a look at the Gambas TextEditor? It has a TabSize property. Or am I missing the point?
by cogier
Sunday 27th November 2022 3:53pm
Forum: Beginners
Topic: Problems with Message and the window that creates it
Replies: 10
Views: 2668

Re: Problems with Message and the window that creates it

I assume you are using the message command in the form.open event? That won't work as the form.must open first. Best way is to create a timer and start it in the form open event. Have the timer event use the message command and form.open can continue to work Private hTimer as Timer Public sub Form_...
by cogier
Sunday 27th November 2022 3:39pm
Forum: General
Topic: Mouse dragging
Replies: 2
Views: 568

Re: Mouse dragging

Thanks Bruce, that did the trick. I had tried the IconX and IconY but couldn't get them to work as I put them in the wrong place.
by cogier
Saturday 26th November 2022 5:22pm
Forum: Beginners
Topic: Problems with Message and the window that creates it
Replies: 10
Views: 2668

Re: Problems with Message and the window that creates it

Try putting Me.Show before you open F1 and again before displaying the Message.
by cogier
Saturday 26th November 2022 4:38pm
Forum: General
Topic: Mouse dragging
Replies: 2
Views: 568

Mouse dragging

When I drag an image on the screen the mouse is positioned top left just outside the image. Is there a way to get the mouse cursor to be within the image being dragged?
by cogier
Saturday 26th November 2022 10:00am
Forum: General
Topic: Resize a picture
Replies: 5
Views: 857

Re: Resize a picture

Opps, sorry PJBlack. You were right, as is everybody else as well. It works like a charm.

Reminder, I must read posts more carefully! :?
by cogier
Friday 25th November 2022 4:19pm
Forum: General
Topic: Resize a picture
Replies: 5
Views: 857

Re: Resize a picture

I am aware of 'Stretch'. Much better to use Mode than stretch. What I am doing gets a picture to line up with a GridView when being dragged. Below you can see it works. This allows me to resize the form and the image still lines up, so it needs to be exact. So sorry, 'Stretch' doesn't cut it! https:...
by cogier
Friday 25th November 2022 2:58pm
Forum: General
Topic: Resize a picture
Replies: 5
Views: 857

Resize a picture

Can anybody tell me how to resize a picture without using a Shell command?

 Shell "convert pict.png -resize 100x100 /tmp/pict.png" Wait