Search found 1550 matches

by BruceSteers
Wednesday 3rd April 2024 3:42pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 1952

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

I read the original post as wanting the sunday of the last full week to print the last week activity report. as I need to get the Sunday to Monday dates for a report that run for the previous week (no matter what day the report would be run this week it would always report back the previous Monday ...
by BruceSteers
Tuesday 2nd April 2024 2:10pm
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 805

Re: Problem with menu in gridview

My centre button returns mouse.button=3 and Right click gives Mouse.Right=True. Be careful using Mouse.Left and Mouse.Right though Bill as they are more like button "down" registers than button "click". Ie , if you press left button while right button is also held down then Mous...
by BruceSteers
Tuesday 2nd April 2024 11:57am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 805

Re: Problem with menu in gridview

Is it the same for Mouse.State? Dang it, now i need a 2 button mouse to test with. And I gotta think of a workaround now :-\ Best i can think of is this,, Note the Mouse.Button value on MouseDown and then use the _Menu() event to set it. But the _Menu event needs to fire before it's known. Private $...
by BruceSteers
Tuesday 2nd April 2024 9:52am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 805

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

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

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

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

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

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

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.