Search found 12 matches

by seany
Wednesday 15th June 2022 9:56pm
Forum: Beginners
Topic: Richtext Cursor position
Replies: 5
Views: 220

Re: Richtext Cursor position

Hello
This si absolutely fantastic. Thank you
:D :D
by seany
Saturday 11th June 2022 1:56pm
Forum: Beginners
Topic: Richtext Cursor position
Replies: 5
Views: 220

Richtext Cursor position

I am using a qt5 TextEdit in Gambas3 for rich text. Please consider the code: Dim cursorpos As Integer If Key.Code = Key.Left Or Key.Code = Key.Up Or Key.code = Key.Right Or Key.Code = Key.Down Or Key.Code = Key.Delete Or Key.Code = Key.Backspace Then cursorpos = TextEdit1.Pos ' just pick the positi...
by seany
Saturday 11th June 2022 1:54pm
Forum: Beginners
Topic: Foreground of qt5.textedit.
Replies: 5
Views: 227

Re: Foreground of qt5.textedit.

Excellent.
Thank you
by seany
Friday 10th June 2022 4:32pm
Forum: Beginners
Topic: Foreground of qt5.textedit.
Replies: 5
Views: 227

Foreground of qt5.textedit.

Hello I am trying to work with a q5 textedit. The one highlighted in picture: https://i.imgur.com/qWoHctI.png I have the following code: Public Sub Form_Resize() ToolBar1.Width = Me.W TextEdit1.W = Me.W / 2 - 10 TextEdit1.Background = Color.RGB(190, 190, 190) TextEdit1.Top = ToolBar1.H + 10 TextEdit...
by seany
Saturday 21st December 2019 2:13am
Forum: General
Topic: Reading file, line by line
Replies: 2
Views: 3486

Reading file, line by line

Hi, Consider this snippet please: Dim hFile As Stream Dim sline As String Dim linecntr As Integer hFile = Open FMain.appDefPath & FMain.projectPath & projectName & "/dtls.txt" For Input ' this opens linecntr = 0 While Not Eof(hFile) Line Input #hFile, sline Print sline Print Chr(13) Print linecntr s...
by seany
Saturday 21st December 2019 2:09am
Forum: Web
Topic: ssh from gambas on linux
Replies: 5
Views: 7863

Re: ssh from gambas on linux

I want to log in, and execute a script.
by seany
Sunday 08th December 2019 12:52am
Forum: General
Topic: Drawing on a map
Replies: 1
Views: 2415

Re: Drawing on a map

Okey, I solved it by randomizing the key

Code: Select all

"c"
.

Having initiated the the key at the drawPoint function - given we are working with a pseudorandom - generate the same key every time.

Having generated the key at the loop where the drawPoint function is being called solves the issue.
by seany
Saturday 07th December 2019 11:23pm
Forum: General
Topic: Drawing on a map
Replies: 1
Views: 2415

Drawing on a map

Hello I want to dynamically add points on a gb.map I have : Public Sub _New() MapView1.Map.AddTile("OpenStreet", "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") MapView1.Map.AddShape("P") End then, this function is called periodically : Public Sub drawPoint() Dim c As String c = Str(Rand(65, 90...
by seany
Saturday 07th December 2019 7:01pm
Forum: Web
Topic: ssh from gambas on linux
Replies: 5
Views: 7863

ssh from gambas on linux

Hi
Its me again

I wish to ssh to a target server (say, a.b.c.d) from gambas.

I know i could use some "exec" trics, but does gambas provide a way to use ssh or curl or anything to quickly check the last few line on a file in an web server? thank you
by seany
Saturday 07th December 2019 6:50pm
Forum: General
Topic: Rich text editor
Replies: 7
Views: 6739

Re: Rich text editor

Hi
Thank you
This happened after deselecting qt4 and selecting qt5:

Image

Thank you.