Search found 1552 matches
- Friday 10th November 2023 2:59pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
There is also an _Activate() event that fires when the user selects a word from the list you could possibly kill it there? Private hCompletion as MyCompletion Public Sub Form_Open() hCompletion = New MyCompletion(TextArea1) As "CMP" ' give the object CMP as the handler name example End ' T...
- Friday 10th November 2023 12:15am
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
Thanks both, the solution from BruceSteers works! When i bind Completion to a Datacontrol then everytime when the control is updatet, the completion popup will show, how i can unbind o destroy the completion popup after using them. Thanks Maybe like this... If $hCompletion then $hCompletion.Close $...
- Thursday 9th November 2023 8:56pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
Almost correct , i found a bug where if you do a file completion then do a normal one the Icons list does not clear
So start the statement for non-file completion part in the above example like this...
So start the statement for non-file completion part in the above example like this...
If Left(sText) <> "/" Then ' It's not a file path
Me.Icons.Clear
- Thursday 9th November 2023 8:07pm
- Forum: Beginners
- Topic: Using the same click event
- Replies: 6
- Views: 4072
Re: Using the same click event
Thanks for replying. When I look in the Group property (where your arrow is indicating) I get a drop down box with nothing in it. I can't manually edit that property. How do you create the group that goes into that property field? Pusherman I think it's a bug in the IDE/GTK Toolkit Just click the G...
- Thursday 9th November 2023 6:07pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
I have refined this a bit. Now it works better when pressing return. Now if the text does not begin with / then it searches the open document for matching possible words list like this... If Left(sText) <> "/" Then ' It's not a file path Dim hCtrl As Object = Me.Editor Dim aText As String[...
- Thursday 9th November 2023 5:02pm
- Forum: Beginners
- Topic: Using the same click event
- Replies: 6
- Views: 4072
Re: Using the same click event
You can set their Group Property to the same thing in the IDE if the Group property is set the event will be of the Group name So if you set both the menu and the button to be group MyFunctions they will both trigger.. Public Sub MyFunctions_Click() End Untitled.png You can tell what was pressed usi...
- Thursday 9th November 2023 4:00pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
You're right, I asked him what version it works for and he answered this: :roll: :roll: :mrgreen: AI say: The code I provided earlier is a hypothetical example and is not associated with a specific version of Gambas. Gambas is an evolving programming language, and features can vary by version. As o...
- Thursday 9th November 2023 2:07pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
And just a note to gambafeliz As i suspected all that AI code was incorrect in a big way. Please test anything you find via AI before posting or you are just wasting peoples time with incorrect code. I know you meant well but none of that AI code made sense and had syntax errors all over the place. ...
- Thursday 9th November 2023 1:10pm
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
What are you trying to do? Completion.class is kinda tricky but FileCompletion.class is easy ' Gambas class file Public hCompletion As FileCompletion Public Sub Form_Open() hCompletion = New FileCompletion(TextArea1) End That's all you need to enable file completion for TextArea1 To use Completion.C...
- Thursday 9th November 2023 11:17am
- Forum: Beginners
- Topic: How to use the completion Class
- Replies: 19
- Views: 12385
Re: How to use the completion Class
Does the AI produced code work?
Any other time I have seen ai used it produced a load of garbage code that looked a bit like gambas but didn't work because it was full of errors.
Any other time I have seen ai used it produced a load of garbage code that looked a bit like gambas but didn't work because it was full of errors.