Search found 1565 matches

by BruceSteers
Saturday 28th August 2021 10:43am
Forum: General
Topic: Cool way to "quick edit" my application
Replies: 0
Views: 4434

Cool way to "quick edit" my application

I just added this code to my application... Public Sub Form_KeyPress() Select Key.Code Case Key["e"] If Key.Control And Key.Shift Then If Not Exist(Application.Path &/ ".project") Then Message.Error("Error!\nCannot edit, I'm not in my project folder") Else Exec [&qu...
by BruceSteers
Friday 27th August 2021 5:57pm
Forum: Component
Topic: popup menu help
Replies: 4
Views: 4660

Re: popup menu help

Thank you both. I am glad cogier had to think about it hard. It makes me feel better that the expert himself had to think. I combined both approaches. I used the mouseup event to call the popup and a global variable that holds the name of the button. I put the code I used below in case others need ...
by BruceSteers
Friday 27th August 2021 1:50am
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 9411

Re: is there a tuturial for dynamic control creation

I got the dynamic creation of everything figured out and working. Thank you guys very much. Thank you both for the examples they helped. My next 2 issues are hopefully simple. How do I create a control array? This is rather important for this project. the 2nd is in the event handler. following cogi...
by BruceSteers
Thursday 26th August 2021 10:05am
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 9411

Re: is there a tuturial for dynamic control creation

PS. you must experiment with things like HBox, VBox, Panel.Arrangement = Arrange.Vertical or Arrange.None. experiment, experiment, then experiment some more :) You are having problems with buttons expanding. consider making a panel with Panel1.Arrangement = Arrange.Vertical ' (objects arrange downwa...
by BruceSteers
Thursday 26th August 2021 9:04am
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 9411

Re: is there a tuturial for dynamic control creation

PS. it's hard to tell what you are doing wrong if you do not post your code.
by BruceSteers
Thursday 26th August 2021 8:58am
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 9411

Re: is there a tuturial for dynamic control creation

I managed to get that far but the entire scope of what I am thinking may be beyond gambas ability. I am going to explore control arrays to do this. I have a tab panel that I was going to dynamically create additional tabs as needed each one needs about 2 dozen controls in it. labels, textboxes, but...
by BruceSteers
Wednesday 25th August 2021 11:33pm
Forum: Component
Topic: is there a tuturial for dynamic control creation
Replies: 11
Views: 9411

Re: is there a tuturial for dynamic control creation

I'm not exactly sure what you need exactly when you say "dynamic control creation" but maybe this helps. If you mean adding controls to your form with code then that's not too hard. consider this code... Private $hButton As Button Public Sub Form_Open() $hButton = New Button(MyButtonPanel)...
by BruceSteers
Wednesday 25th August 2021 8:15am
Forum: Component
Topic: popup menu help
Replies: 4
Views: 4660

Re: popup menu help

How I do it.... Do not use the Controls PopupMenu property . do it all in the MouseUp event using the PopUp function and the menu tag Public Sub MyButton_MouseUp() If Not Mouse.Right Then Return Menu1.Tag = Last.Name Menu1.PopUp(Mouse.ScreenX, Mouse.ScreenY) End Then when any command from the menu i...
by BruceSteers
Tuesday 24th August 2021 9:44am
Forum: Component
Topic: mediaview help
Replies: 5
Views: 5010

Re: mediaview help

1. In the form designer where you can select Form/View/container type objects there will be a new tab called Media on the far right hand side 2. & 3. looks like you fixed that. To make it not stretch it must not be in a panel that is 'arranged' (Arrange.fill, arrange.Horizontal, etc) It must be ...
by BruceSteers
Thursday 19th August 2021 6:24pm
Forum: Project showcase
Topic: InFile
Replies: 38
Views: 25361

Re: InFile

I have just been having a look at D-Bus. I just need to go into a darkened room for an hour! Am I any wiser - Er.. NO! There is a program called D-feet (available from the Ubuntu Repos) that shows all the available connections on the D-Bus. Have you created an example program in Gambas that will de...