Search found 12 matches

by bazzvn
Sunday 18th July 2021 2:17am
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 563

Re: TextArea - Selecting text with code [SOLVED]

Thank you Bruce - that does exactly what I want, and when combined with cut, copy and paste as in Cogiers code above, the selection can moved or copied to wherever I choose.
Much appreciated.
bazzvn
by bazzvn
Wednesday 14th July 2021 3:36pm
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 563

Re: TextArea - Selecting text with code

Thank you Bruce and Cogier. Maybe I wasn't very clear. Basically what I want to do is use a single mouse right-click somewhere in a line of text to select the whole line (which could be wrapped within the control) and then use a popup menu to provide options for processing it further. It should be p...
by bazzvn
Wednesday 14th July 2021 9:43am
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 563

TextArea - Selecting text with code

I am trying to select a line of text in a TextArea programmatically, but I must have missed something because I keep getting an error. As an example, I have a form with two text areas, and I want to transfer some text from one to the other. Here is the code I have tried. Public Sub Form_Open() Dim i...
by bazzvn
Wednesday 02nd June 2021 2:16pm
Forum: General
Topic: Exclude files from being displayed in a FileView control
Replies: 10
Views: 1531

Re: Exclude files from being displayed in a FileView control

Thank you everyone. I did a quick check and I can't get any of the solutions suggested by tincho, Bruce or cogier to work. As pointed out already, odt files are excluded and as it turns out, so too are Freeplane *.mm files. I didn't have time to explore further, but it seems files with extensions th...
by bazzvn
Sunday 30th May 2021 9:06am
Forum: General
Topic: Exclude files from being displayed in a FileView control
Replies: 10
Views: 1531

Exclude files from being displayed in a FileView control

A simple, perhaps naive question. I can see how to use the filter property to display selected types of files in a FileView control. But how do you exclude certain files from being displayed? I specifically want to display all files in a directory EXCEPT "*.html" and "*.txt" files.
Thanks,
bazzvn
by bazzvn
Tuesday 18th May 2021 3:31am
Forum: General
Topic: Open gb.Form.Dialog maximised (full screen)
Replies: 4
Views: 749

Re: Open gb.Form.Dialog maximised (full screen)

Thank you all, especially Vuott. Your code works wonderfully.
The only thing I had to add was 1 line of code after resizing, to reposition the form: .Resize(Screen.AvailableWidth, Screen.AvailableHeight)
.Move(0,0) 'Move the dialog

With best wishes,
bazzvn
by bazzvn
Sunday 16th May 2021 1:23am
Forum: General
Topic: Open gb.Form.Dialog maximised (full screen)
Replies: 4
Views: 749

Open gb.Form.Dialog maximised (full screen)

Is it possible to automatically open gb.Form.Dialog full screen (i.e.maximized)? I know it is possible to click on the maximize button after the dialog is opened but this is an unnecessarily annoying extra step to get a better view of the directory structure when looking for a file. If it's not poss...
by bazzvn
Friday 14th May 2021 2:10am
Forum: General
Topic: Access the value of a TreeView Checkbox
Replies: 5
Views: 1051

Re: Access the value of a TreeView Checkbox

Thanks Cogier for taking the time to check the code. Your modifications result in more elegant code. I've never really understood how to use timers properly, so your addition of a timer was also instructive. The example project is just a subset of the code in my real FTags form, which includes addit...
by bazzvn
Thursday 13th May 2021 9:26am
Forum: General
Topic: Access the value of a TreeView Checkbox
Replies: 5
Views: 1051

Re: Access the value of a TreeView Checkbox

Thanks Quin, that partly answers my question, but I'm not sure whether it will serve my purpose. Basically, I have a large collection of documents that are catalogued in an sqlite database. The idea is to assign tags and attributes to them so that they can be found quickly and cross referenced. I pr...
by bazzvn
Wednesday 12th May 2021 8:21am
Forum: General
Topic: Access the value of a TreeView Checkbox
Replies: 5
Views: 1051

Access the value of a TreeView Checkbox

I am running Gambas 3.15.2 under Debian Testing with the Plasma 5.20 desktop and I see that it is possible to show a checkbox for each item in a qt4/qt5 TreeView control. I would like to be able to iterate through the items in the TreeView and find those that have been marked with a check. I know ho...