Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
May 25th, 2016, 06:00am


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Liberty BASIC Community WikiSpace
Frequently Asked Questions
Bay Six Software Forum
Liberty BASIC Home Page

Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   Novice / Re: Texteditor, place blinking cursor after !inser  on: Today at 05:04am
Started by Sver | Post by G. Rahman
on Yesterday at 3:19pm, Sver wrote:
Hallo Gordon,

When i insert a letter of word i want the next one after that letter and not of the end.

Starttext

t 'after secondpress on this place tt

Endtext

The cursor/caret go to the end. Thats the problem.
It is possible with virtuel keys when there is no other solution.

Bedankt !


Something like this?


Code:
[insert]
't = t + 1
varname$="test"'+str$(t)
#new.test "!insert varname$ ";
#new.test "!lines countvar";
print countvar
#new.test "!line 1 tekst$"
print tekst$
'#new.test " "; 'no highlight
'#new.test "!setfocus"
#new.test "!select ";len(tekst$)+1;" 1"  ';countvar
#new.test "!setfocus"
wait
 


Gordon
 
  Reply Quote Notify of replies

 2   Liberty BASIC Code / Re: Listview display horizontal bar graph  on: Yesterday at 9:24pm
Started by metro | Post by metro
Quote:
Thanks for your patience!!


It is I that should be thanking you, I appreciate you taking the time...

an old idiom I can relate to "never look a gift horse in the mouth"

all the best

Laurie


 
  Reply Quote Notify of replies

 3   Liberty BASIC Code / Re: Listview display horizontal bar graph  on: Yesterday at 8:58pm
Started by metro | Post by Brandon Parker
Laurie,
I am working on getting you a good example. I've been a little busy and the code is complex and deeply intertwined with other code for the project it belongs in. I'm getting it all fixed up; it's just taking a bit with everything else going on. Thanks for your patience!!


{:0)

Brandon
 
  Reply Quote Notify of replies

 4   Novice / Re: Texteditor, place blinking cursor after !inser  on: Yesterday at 3:46pm
Started by Sver | Post by G. Rahman



Hallo Sver,

The help-file says:

#handle "! select column row"

So, I think every place you want the cursor to be is available.
Just determine where you want the cursor to be and
do a setfocus statement afterwards.

Veel succes
Gordon


 
  Reply Quote Notify of replies

 5   Novice / Re: Texteditor, place blinking cursor after !inser  on: Yesterday at 3:19pm
Started by Sver | Post by Sver
Hallo Gordon,

When i insert a letter of word i want the next one after that letter and not of the end.

Starttext

t 'after secondpress on this place tt

Endtext

The cursor/caret go to the end. Thats the problem.
It is possible with virtuel keys when there is no other solution.

Bedankt !
 
  Reply Quote Notify of replies

 6   Novice / Re: Texteditor, place blinking cursor after !inser  on: Yesterday at 1:26pm
Started by Sver | Post by G. Rahman
Code:
button #new.1, "Button", [insert], UL, 240, 100, 60 , 30
texteditor #new.test 7, 7, 200, 200
open "" for window as #new
#new "trapclose [quit]"
wait
'---
[quit]
close #new
end


[insert]
t = t + 1
varname$="test"+str$(t)
#new.test "!insert varname$ ";
#new.test "!lines countvar";
print countvar
'#new.test " "; 'no highlight
#new.test "!select 1 ";countvar+1
#new.test "!setfocus"
wait


 



Gordon
 
  Reply Quote Notify of replies

 7   Novice / Texteditor, place blinking cursor after !insert  on: Yesterday at 03:14am
Started by Sver | Post by Sver
button #new.1, "Button", [insert], UL, 240, 100, 60 , 30
texteditor #new.test 7, 7, 200, 200
open "" for window as #new
#new "trapclose [quit]"
wait
'---
[quit]
close #new
end


[insert]
varname$="test"
print #new.test, "!insert varname$";
'print #new.test, "" 'no highlight
wait


Insert works good, but how to get the blinking cursor (caret) after "test" for the second button press ?

Result : testtest


How to get the position of the cursor?
Then i can use "print #handle, "!select column row" ;" and len()

Thanks

 
  Reply Quote Notify of replies

 8   Liberty BASIC Code / Re: Listview display horizontal bar graph  on: May 22nd, 2016, 9:22pm
Started by metro | Post by metro
Take your time Brandon, I appreciate the help grin
 
  Reply Quote Notify of replies

 9   Liberty BASIC Code / Re: Listview display horizontal bar graph  on: May 22nd, 2016, 9:19pm
Started by metro | Post by Brandon Parker
Laurie,
The progress bars are just that; progress bars that overlay a ListView cell. I can provide an example, but I will need some time to get one put together and make sure everything is there. Maybe a day or so....

{:0)

Brandon
 
  Reply Quote Notify of replies

 10   Liberty BASIC Code / Listview display horizontal bar graph  on: May 22nd, 2016, 9:06pm
Started by metro | Post by metro
Brandon's reply (16) of this thread
http://libertybasic.conforums.com/index.cgi?action=display&board=LB3&num=1462709248&start=15
has piqued my interest in the versatility of Listviews

The "PI Data Health" screen shot shows a column displaying what I would describe as a horizontal bar graph.

Brandon (or anyone else), would you mind giving us a code sample showing how this is done

thanks in advance

Laurie
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls