Search found 195 matches

by bill-lancaster
Sunday 28th January 2024 12:25pm
Forum: The Gambas IDE
Topic: Can't Configue Executable
Replies: 6
Views: 2661

Re: Can't Configue Executable

Thanks Bruce, couldn't find that short cut anywhere.
The "Configure" option brings up the facility you mentioned but it seems to read-only.
My version is 3.18.4
by bill-lancaster
Sunday 28th January 2024 9:49am
Forum: The Gambas IDE
Topic: Can't Configue Executable
Replies: 6
Views: 2661

Can't Configue Executable

I've done something to my IDE and can't see the menu bar that had 'configure execxutable' and several more functions.
Please see attached.
Any help appreciated.
by bill-lancaster
Saturday 27th January 2024 1:37pm
Forum: General
Topic: Gambas executable entry value
Replies: 8
Views: 1537

Re: Gambas executable entry value

Thanks again Bruce, Exec ["gbr3", "GambasFolder/Executable/DocsViewer.gambas"] With ["sTemp=XXX"] opens "DocsViewer" OK but there is only one args.count. Shell "gbr3 ~/GambasFolder/Executable/DocsViewer.gambas sTemp=XXXX'" works fine, args.count = 2....
by bill-lancaster
Saturday 27th January 2024 9:42am
Forum: General
Topic: Gambas executable entry value
Replies: 8
Views: 1537

Re: Gambas executable entry value

Thanks Bruce, Having trouble with syntax, Print Exist(User.Home &/ "GambasFolder/Executable/Golf.gambas") Exec ["gambas3", "GambasFolder/Executable/Golf.gambas"] The first line confirms that the file exists. The second line produces an error:- "Cannot open a bi...
by bill-lancaster
Friday 26th January 2024 9:51am
Forum: General
Topic: Gambas executable entry value
Replies: 8
Views: 1537

Gambas executable entry value

I run a gambas executable from another gambas project by:-

Code: Select all

Exec ["/home/bill/GambasFolder/Executable/DocsViewer.gambas"]
How can I provide an entry value (a file name) to DocsViewer.gambas?
by bill-lancaster
Friday 26th January 2024 8:17am
Forum: General
Topic: Problem with pdf file view
Replies: 2
Views: 881

Re: Problem with pdf file view

That works very well vuott,
Thank you, don't know why I didn't think of it!
by bill-lancaster
Thursday 25th January 2024 3:45pm
Forum: General
Topic: Problem with pdf file view
Replies: 2
Views: 881

Problem with pdf file view

The following code:- Public Sub Form_Open() hPDF = New PdfDocument(User.Home &/ "Downloads/LancasterLmarriage.pdf") hImage = hPDF[0].Render(Desktop.Resolution) PictureBox1.W = hImage.W PictureBox1.Image = hImage End Displays the image OK but part of the left hand side of the image is c...
by bill-lancaster
Monday 6th November 2023 7:49am
Forum: General
Topic: find a control
Replies: 11
Views: 11780

Re: find a control

Thanks vuott, my project is a family tree where a frame represents a person so the number of frames is not known.
Regards
by bill-lancaster
Wednesday 1st November 2023 9:14am
Forum: General
Topic: find a control
Replies: 11
Views: 11780

Re: find a control

Thanks Vuott, this works and is much better than my original
Dim hFrm As Frame
hFrm = Me.Controls["A3"]
Print hFrm.Text
Thanks for your advice.
by bill-lancaster
Wednesday 1st November 2023 7:52am
Forum: General
Topic: find a control
Replies: 11
Views: 11780

Re: find a control

Sorry, correction. This is my current method:-

Code: Select all


Public Sub Button1_Click()
Dim hCtrl As Control
Dim hFrm As Frame
  For Each hCtrl In Me.Controls
    If hCtrl.Name = "A2" Then
      hFrm = hCtrl
      Print hFrm.Text
    Endif
  Next
End