Search found 1547 matches

by BruceSteers
Tuesday 2nd April 2024 9:52am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 728

Re: Problem with menu in gridview

bill-lancaster wrote: Tuesday 2nd April 2024 7:23am Thanks Bruce,
My right button gives mouse.button = 2!
Hmm , thanks for letting me know, it means some of my software is not coded right as i assume right mouse to be Button 3 ! :-\

Something to be aware of i guess if we want portability between machines.
by BruceSteers
Sunday 31st March 2024 11:27am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 728

Re: Problem with menu in gridview

HANG on a minute!!! I just noticed something... In your first example you use the following code... Public Sub gdvData_MouseUp() Select Case Mouse.Button Case 1 Print "click" Case 2 Print "menu" gdvData.PopupMenu = "Menu1" End Select End Is that your code or did you jus...
by BruceSteers
Sunday 31st March 2024 11:12am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 728

Re: Problem with menu in gridview

thatbruce wrote: Sunday 31st March 2024 11:08am
BruceSteers wrote: Sunday 31st March 2024 10:12am And If i use Menu event i get a 3 hits not just one event...
Mmmyes. I was wondering about that.

b
it is odd, But it only gives one hit if you stop the event.


Public Sub GridView1_Menu()
 
  If GridView1.Row = -1 Then Return
  Debug GridView1.row
  Stop Event
 
End
by BruceSteers
Sunday 31st March 2024 10:12am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 728

Re: Problem with menu in gridview

That makes sense! I notice that the gridview.row 'selected' property changes after the right click. I need to refer to the selected row so have to do it in the menu event. Thanks again Gridview.Row doesn't The Row is only "not yet" set in the MouseDown event. In the MouseUp event the row ...
by BruceSteers
Saturday 30th March 2024 2:04pm
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 728

Re: Problem with menu in gridview

Yes the first right click will only set the Menu1 as the popup but at the time of the click the popup is not set. On the second click the Popup is now set so will be opened. Solution.. Do not bother to assign the Menu1 to the control in the MouseUp event, just open it... Public Sub gdvData_MouseUp()...
by BruceSteers
Saturday 30th March 2024 12:10pm
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 419

Re: Playground is broken

cogier wrote: Saturday 30th March 2024 8:48am It's not the Development Team that needs to look at this, it's me. I will sort it as.soon as I can.

10:10am 30/03/2024
Now fixed

https://gambas.one/playground/
Aaaah , so does the gambas website playground link to you than?
by BruceSteers
Saturday 30th March 2024 1:26am
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 419

Re: Playground is broken

It links to the Playground from the main gambas website.
https://gambas.sourceforge.net/en/main.html#

The error is there.

I have reported it to the development team.
by BruceSteers
Thursday 28th March 2024 5:52pm
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 45
Views: 8185

Re: Blockski+ , like Klotski but with a board editor.

Since the last update i have been trying to iron out some of the bugs, 1 of which I introduced by changing from single selection to multiple selection. Mostly the problems were caused by 2 things i think... 1. The BlockOverlap(hBlock, X, Y) method was returning the hBlock where it should have only r...
by BruceSteers
Thursday 28th March 2024 5:48pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 1725

Re: [Solved - sort of] Get the Previous Sunday from a Date

Try it and see
by BruceSteers
Wednesday 27th March 2024 9:17pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 1725

Re: [Solved - sort of] Get the Previous Sunday from a Date

thatbruce wrote: Wednesday 27th March 2024 11:22am No more clues from me. If you want us to writ your damn pos system, send money. :x
Haha :D

Yep, give a man a fish and he eats for a day. And all that 😉