Search found 20 matches

by vuott
Monday 14th January 2019 11:02am
Forum: General
Topic: using the progressbar ... foreground color
Replies: 5
Views: 76

Re: using the progressbar ... foreground color

Currently I would suggest something as this little example: :| Private da As DrawingArea Public Sub Form_Open() ProgressBar1.Background = Color.Lighter(Color.Green) da = ProgressBar1.Children[0] Object.Attach(da, Me, "DA") End Public Sub DA_Draw() With Paint .Brush = .Color(Color.Yellow) .Rectangle(...
by vuott
Friday 28th December 2018 7:25pm
Forum: General
Topic: How best to move a control
Replies: 7
Views: 380

Re: How best to move a control

...a little code: Private Label1 As Label Private spx As Short Private spy As Short Public Sub Form_Open() With Label1 = New Label(Me) As "Label1" .X = 100 .Y = 100 .W = 30 .H = 30 .Background = Color.Orange End With End Public Sub Label1_MouseDown() spx = Mouse.X spy = Mouse.Y End Public Sub Label1...
by vuott
Wednesday 26th December 2018 3:43pm
Forum: General
Topic: Using the media component
Replies: 3
Views: 167

Re: Using the media component

Just a little example: Private gPlayer As New MediaPlayer Public Sub Main() gPlayer.URL = Media.URL(User.Home &/ "a.mp3") gPlayer.Play() Print Date(0, 0, 0, 0, 0, 0, gPlayer.Length * 1000) Repeat Write "\r" & CStr(Date(0, 0, 0, 0, 0, 0, gPlayer.Position * 1000)) Wait 0.001 Until gPlayer.Position >= ...
by vuott
Saturday 22nd December 2018 7:45pm
Forum: General
Topic: Using the media component
Replies: 3
Views: 167

Re: Using the media component

Hello,

about audio file path you have to use:

gPlayer.URL = Media.URL(User.Home &/ "a.mp3")
by vuott
Wednesday 22nd August 2018 6:16pm
Forum: General
Topic: Gridline colours
Replies: 2
Views: 320

Re: Gridline colours

Hello,
if you want to set the color of cells borders (...a unique color for the grid):
Public Sub Form_Open()
 
  With GridView1
    .Columns.Count = 4
    .Rows.Count = 4
   
' We'll obtain a "red" grid:
    .Children[0].Background = Color.Red
  End With

End
by vuott
Friday 10th August 2018 6:11pm
Forum: General
Topic: A question about libraries
Replies: 9
Views: 856

Re: A question about libraries

but if LibA needs a function in LibB? You have to load LibB.gambas in LibA.gambas ( they must reside in the same folder, in the same path ), and then you have to load both .gambas libraries, libA.gambas and libB.gambas , in main program. Obviously the codes of the .gambas libraries must be preceded...
by vuott
Friday 10th August 2018 10:11am
Forum: General
Topic: A question about libraries
Replies: 9
Views: 856

Re: A question about libraries

Well, we have a main program and 2 .gambas libraries (libA and libB), containing Gambas code. Main program has to call a function in libA, this function has call a function in libB. In Project-->Property-->Libraries-->Add of main program you have to add both libraries (that is: libA and libB). In th...
by vuott
Thursday 09th August 2018 5:37pm
Forum: General
Topic: A question about libraries
Replies: 9
Views: 856

Re: A question about libraries

bill-lancaster wrote:
Thursday 09th August 2018 12:37pm
Make a simple runtime Gambas library MyLibA and another one, say MyLibB.
Excuse me,
so we have a " MyLibA.gambas " libray and a " MyLibB.so " library ?
by vuott
Saturday 04th August 2018 12:34pm
Forum: General
Topic: A question about libraries
Replies: 9
Views: 856

Re: A question about libraries

Hello,
3 questions:

1) What are these external functions?
2) Are you "translating" into Gambas a code already written in C ? If "yes", what ?
3) Is it possible to have some Gambas code that reproduces that problem?

vuott
by vuott
Monday 11th June 2018 10:22pm
Forum: General
Topic: Children problem
Replies: 4
Views: 549

Re: Children problem

Sometimes Gambas has problems with GTK..... :?