Search found 1113 matches

by cogier
Sunday 27th November 2022 3:53pm
Forum: Beginners
Topic: Problems with Message and the window that creates it
Replies: 10
Views: 2800

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: 599

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: 2800

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: 599

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: 917

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: 917

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: 917

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
by cogier
Friday 18th November 2022 3:07pm
Forum: General
Topic: Program that Starts other programs
Replies: 8
Views: 1072

Re: Program that Starts other programs

I am running Linux Mint 21 with the Cinnamon desktop. It has "Startup applications" menu. Here you can see my music player that will wait for 15 seconds before starting. I expect other distros have something similar. Does this help?

Image
by cogier
Thursday 17th November 2022 2:44pm
Forum: Beginners
Topic: I have a big problem with the help in the Gambas IDE
Replies: 13
Views: 3062

Re: I have a big problem with the help in the Gambas IDE

Have you tried setting the help files for offline? Tools>Preferences>Help & applications

Image
by cogier
Tuesday 15th November 2022 3:54pm
Forum: Project showcase
Topic: Routines for Set manipulation
Replies: 3
Views: 4426

Re: Routines for Set manipulation

Use of sets can quite often shorten code; suppose you want to take some action depending on whether a number is in a certain range, eg, IF(n >= 5 AND n <= 10) OR (n >= 25 AND n <= 30) THEN... Using a set with the appropriate range you need only write IF set_in(n, ranges) THEN... which is simpler an...