Page 17 of 24 FirstFirst ... 71516171819 ... LastLast
Results 161 to 170 of 236

Thread: thinBasic 1.11.x.x

  1. #161
    Quote Originally Posted by primo View Post
    Thank you ReneMiner , yes it works, when we replace 90 by -1 the right hand border is disabled
    found here
    <options name = "edge">
    <item name = "mode">1</item>
    <item name = "column">90</item>

    regarding the crash of the IDE, it seems stable in my win7 x64, but a shoot in the Dark that the reason happened when Process is active, i say that because in winXP the process does not stop when we close the program, it continue counting in the End: line until the IDE crash, i don't ask to correct this for XP but it may refer to the IDE crash in win 10.
    Hi Primo,

    to disable, set <item name = "mode">0</item>
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #162
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171

    Exclamation

    Yes IT has Something to so with a setting that can be changed through themes. I can Not Tell which but i did not overwrite my buggy OS yet. All i did was to use a Copy of thinair default.theme and created a new theme of it.since i use IT last night i had less Crashes of thinair so i think IT IS Something maybe related to window-settings in themes. Because i made a completely new one. Perhaps another process that is started by thinair and that uses values stored in themes and when IT finished will save(?) But has No permission (did Not inherit Admin-Privileges by thinair?) Just i read Eros Post again and have to add:IT Crashes Always instantly after i Close the os-message If for example Administrator-rights required to execute a command. IT Crashes also when the Script was terminated by thinBasic but then i See the prrocess-window doing some Action and thinair disappears without further Message. That Happens also If i start a Script that i Just typed in and IT Claims error, Missing Parenthesis or If without endif or Something that is the usual when i try to run a Test, normally i would fix the Missing Parenthesis, Look for the if-endif etc. But now its crashing when i click the thinBasic-error-message "OK" - i See behind that Message thinair going to the Position of the error- but AS soon that process of thinBasic ends and thinair should have full Control again thinair Windows vanishes. Its Not in taskbar Nor listed in Task-Manager. So i assume its Crashes or run into gpf an was terminated by Windows-Policy because of illegal accessing Something. Sorry typing into the Phone i try to correct but IT IS.... Grrrr
    Last edited by ReneMiner; 15-04-2020 at 19:33.
    I think there are missing some Forum-sections as beta-testing and support

  3. #163
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171
    definetely something changed. i made sure it will not start thinair without admin privileges. So its no more crashing as before and i am sure it must be a setting in the theme-file that i exchanged. Thats the one i use at the time. I don't know why but thinair is not able to handle few scripts in memory , currently i have like 8 or 9 open scripts, none more than 16kB. But its 2 of 3 hours thinair is not responding and it shows a hilarious number how much memory it consumes. See screenshot. If my scripts occupy altogether 300kB - and none is
    running you will know that i am bit shocked and its annoying to wait until it responds again so i can save and close it. Why no autosave with a timer that saves configurable every x minutes all scripts that have been changed in that time to some backup folder. Not just for that current cause but also sometimes i code and type
    and type and type and - no i dont like the approach - i want to go back 1 hour. Then it would be nice to have backups in different stages. just with a data-time-stamp into a folder that i provide lets say i could set it to 20 stages that will be kept of a script. if it is more than it will not instantly delete any script but ask to zip all of the backups into an archive. then if more than 20 stages of that script again and i already gave permission to zip the backups let it add them to the zip archive. and lets say it makes the 100 full- no problem. Give the message once (the backup-archive of scriptfile xy.tBasic already contains 100 stages of development". "OK" i move it somewhere or rename it and put it somewhere and if project done maybe i will delete it, maybe i only finished because i had plenty of backups. if not important to me, i will change settings maybe save once in 30 minutes or per hour.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    	Copyright (c) Eros Olmi
    
    
    	Permission is hereby granted, free of charge, to any person obtaining a copy
    	of this software and associated documentation files (the "Software"), to deal
    	in the Software without restriction, including without limitation the rights
    	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    	copies of the Software, and to permit persons to whom the Software is
    	furnished to do so, subject to the following conditions:
    
    
    	The above copyright notice and this permission notice shall be included in all
    	copies or substantial portions of the Software.
    
    
    	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    	SOFTWARE.
      -->
    
    
      		<!-- 
    			Parent theme file name.
    			IMPORTANT: ALWAYS INDICATE a parent theme. Default.theme.xml is the preferred.
    			Any setting not found in this theme will be derived from parent theme.
    			Parent theme is recursive: a theme can have a parent that has another parent ...
    		--> 
    <ThinAirTheme version = "1" parent = "Default.theme.xml">
    
    
    	<ThemeInfo>
    
    
    		<!-- Version of souce code example --> 
    		<Version>1.0</Version>
    
    
    		<!-- Last update date --> 
    		<UpdateDate>2018/04/30</UpdateDate>
    
    
    		<!-- Description of the souce code example --> 
    		<Description_Short>Modified thinBasic theme</Description_Short> <!-- Name to be displayed in the templates listing -->
    		<Description_Long>no never Default. Always special thinBasic theme</Description_Long> <!-- Description to be displayed --> 
    
    
    		<!-- Author information --> 
    		<Author_Name>RenePlayed</Author_Name>
    		<Author_eMail>try@thinbasic.com</Author_eMail>
    		<Author_WebSite>https://www.thinbasic.com</Author_WebSite>
    	</ThemeInfo>
    
    
    	<resources>
    
    
    		<editor>
    			<style name = "default">
    				<item name = "font.face">IBM Plex Mono</item>
    				<item name = "font.size">11</item>
    				<item name = "font.bold">false</item>
    				<item name = "font.weight">0</item> <!-- 0 to 900 by steps of 100 -->
    				<item name = "font.italic">false</item>
    				<item name = "font.underline">false</item>
    				<item name = "color.background">11,22,44</item>
    				<item name = "color.foreground">240,245,243</item>
    				<item name = "text.case">0</item> <!-- 0=mixed (as typed), 1=upper, 2=lower, 3=camel -->
    			</style>
    
    
    			<style name = "comments">
    				<item name = "color.foreground">40,140,80</item>
    				<item name = "font.italic">true</item>
    				
    			</style>
    
    
    			<style name = "keywords">
    				<item name = "color.foreground">250,185,165</item>
    				<item name = "text.case">3</item> <!-- 0=mixed (as typed), 1=upper, 2=lower, 3=camel -->
    				<item name = "font.face">IBM Plex Mono Semibold</item>
    		
    			</style>
    
    
    			<style name = "strings">
    				<item name = "font.face">IBM Plex Mono Medium</item>
    			<item name = "color.foreground">222,244,150</item>
    			</style>
    
    
    			<style name = "constants">
    				<item name = "text.case">1</item> <!-- 0=mixed (as typed), 1=upper, 2=lower, 3=camel -->
    				<item name = "color.foreground">120,220,240</item>
    				<item name = "font.face">IBM Plex Mono Semibold</item>
    		
    			</style>
    
    
    			<style name = "numbers">
    				<item name = "font.face">IBM Plex Mono Medium</item>
    				<item name = "color.foreground">180,160,240</item>
    			</style>
    
    
    			<style name = "operators">
    				<item name = "font.face">IBM Plex Mono Semibold</item>
    				<item name = "font.bold">true</item>
    				<item name = "color.foreground">255,200,130</item>
    			</style>
    
    
    			<style name = "whitespace">
    				<item name = "color.background">55,22,33</item>
    				<item name = "color.foreground">126,162,200</item>
    			</style>
    
    
    			<style name = "indentguide">
    				<item name = "color.background">55,22,33</item>
    				<item name = "color.foreground">126,162,200</item>
    			</style>
    
    
    			<style name = "caret">
    			<!-- Cursor -->
    				<item name = "color.foreground">200,250,180</item>
    				<item name = "width">1</item> <!-- The width of the line caret: 0, 1, 2 or 3 pixels. The default width is 1 pixel-->
    				<item name = "period">220</item> <!-- The rate at which the caret blinks in milliseconds -->
    			</style>
    
    
    			<style name = "caretline">
    			<!-- Line containing the cursor -->
    				<item name = "visible">true</item>
    				<item name = "font.weight">600</item> <!-- 0 to 900 by steps of 100 -->
    				<item name = "color.background">95,184,248</item>
    				<item name = "alpha">66</item> <!-- Alpha ranges from 0 which is completely transparent to 255 which is opaque. The value 256 is opaque and uses code that is not alpha-aware and may be faster -->
    				<item name = "visiblealways">true</item> <!--TRUE to make the caret line always visible even when the window is not in focus-->
    				<item name = "frame">0</item> <!-- supported from scintilla 3.7.5. If 1 means no caret line color but a frame-->
    			</style>
    
    
    			<style name = "selection">
    			<!-- selected text -->
    				<item name = "overridestyle">true</item>
    				<item name = "font.weight">900</item> <!-- 0 to 900 by steps of 100 -->
    				<item name = "color.background">40,240,212</item>
    				<item name = "color.foreground">240,230,20</item>
    				<item name = "alpha">80</item>
    				<item name = "frame">4</item>
    				<item name = "eol.filled">false</item> <!-- select the entire line up to the right hand border -->
    			</style>
    
    
    			<style name = "brace">
    			<!-- brace matching -->
    				<item name = "highlighting.color.foreground">194,156,250</item>
    				<item name = "highlighting.color.background">99,66,33</item>
    				<item name = "bad.color.foreground">240,254,160</item>
    				<item name = "bad.color.background">250,80,50</item>
    			</style>
    
    
    			<style name = "margin.linenumber">
    				<item name = "font.face">larabiefont rg</item>
    				<item name = "font.size">9</item>
    				<item name = "font.bold">false</item>
    				<item name = "font.weight">300</item>
    				<item name = "font.italic">false</item>
    				<item name = "font.underline">false</item>
    				<item name = "color.background">10,35,20</item>
    				<item name = "color.foreground">250,230,200</item>
    			</style>
    
    
    			<style name = "margin.folding">
    				<item name = "flags">8</item> <!-- https://www.scintilla.org/ScintillaDoc.html#SCI_SETFOLDFLAGS -->
    
    
    				<item name = "highlightblock">true</item>
    
    
    				<item name = "color.background">33,166,166</item>
    				<item name = "color.foreground">33,99,66</item>
    
    
    				<item name = "folder.color.background">33,166,166</item>
    				<item name = "folder.color.foreground">0,188,3127</item>
    
    
    				<item name = "folder.open.color.background">33,166,166</item>
    				<item name = "folder.open.color.foreground">124,35,88</item>
    
    
    				<item name = "folder.openmid.color.background">33,166,166</item>
    				<item name = "folder.openmid.color.foreground">124,35,88</item>
    
    
    				<item name = "folder.sub.color.background">33,166,166</item>
    				<item name = "folder.sub.color.foreground">124,35,88</item>
    
    
    				<item name = "folder.midtail.color.background">33,166,166</item>
    				<item name = "folder.midtail.color.foreground">124,35,88</item>
    
    
    				<item name = "folder.tail.color.background">33,166,166</item>
    				<item name = "folder.tail.color.foreground">124,35,88</item>
    
    
    				<item name = "folder.end.color.background">33,166,166</item>
    				<item name = "folder.end.color.foreground">124,35,88</item>
    
    
    			</style>
    
    
    			<style name = "margin.error">
    				<item name = "color.background">27,74,98</item>
    				<item name = "color.foreground">225,222,200</item>
    			</style>
    
    
    			<style name = "calltip">
    				<item name = "activate">true</item>
    				<item name = "showlevel">9</item>
    				<item name = "font.weight">600</item>
    				<item name = "font.face">Borgen Bold</item>
    				<item name = "font.size">11</item>
    				<item name = "alpha">75</item>
    				<item name = "color.background">16,12,50</item>
    				<item name = "color.foreground">234,245,80</item>
    			</style>
    
    
    			<style name = "indicator.region">
    				<item name = "active">true</item> <!-- tru/false if activate indicator for regions -->
    				<item name = "style">9</item> <!-- 0 ... 19 7 = INDIC_ROUNDBOX: https://www.scintilla.org/ScintillaDoc.html#Indicators -->
    				<item name = "color.foreground">230,221,87</item>
    				<item name = "alpha">165</item>
    				<item name = "alpha.outline">140</item>
    				<item name = "setunder">true</item>
    			</style>
    
    
    			<style name = "indicator.function">
    				<item name = "active">true</item> <!-- tru/false if activate indicator for regions -->
    				<item name = "style">7</item> <!-- 0 ... 19 7 = INDIC_ROUNDBOX: https://www.scintilla.org/ScintillaDoc.html#Indicators -->
    				<item name = "color.foreground">0,225,125</item>
    				<item name = "alpha">140</item>
    				<item name = "alpha.outline">120</item>
    				<item name = "setunder">true</item>
    			</style>
    
    
    			<style name = "indicator.sub">
    				<item name = "active">true</item> <!-- tru/false if activate indicator for regions -->
    				<item name = "style">7</item> <!-- 0 ... 19 7 = INDIC_ROUNDBOX: https://www.scintilla.org/ScintillaDoc.html#Indicators -->
    				<item name = "color.foreground">0,225,125</item>
    				<item name = "alpha">140</item>
    				<item name = "alpha.outline">120</item>
    				<item name = "setunder">true</item>
    			</style>
    
    
    			<style name = "indicator.callback">
    				<item name = "active">true</item> <!-- tru/false if activate indicator for regions -->
    				<item name = "style">7</item> <!-- 0 ... 19 7 = INDIC_ROUNDBOX: https://www.scintilla.org/ScintillaDoc.html#Indicators -->
    				<item name = "color.foreground">225,115,0</item>
    				<item name = "alpha">100</item>
    				<item name = "alpha.outline">100</item>
    				<item name = "setunder">true</item>
    			</style>
    
    
    			<style name = "indicator.type">
    				<item name = "active">true</item> <!-- tru/false if activate indicator for regions -->
    				<item name = "style">7</item> <!-- 0 ... 19 7 = INDIC_ROUNDBOX: https://www.scintilla.org/ScintillaDoc.html#Indicators -->
    				<item name = "color.foreground">185,12,116</item>
    				<item name = "alpha">200</item>
    				<item name = "alpha.outline">150</item>
    				<item name = "setunder">true</item>
    			</style>
    
    
    			<options name = "edge">
    				<item name = "mode">0</item>
    				<item name = "column">90</item>
    				<item name = "color">11,22,44</item>
    			</options>
    
    
    			<options name = "mouseover">
    				<item name = "delay">80</item>
    			</options>
    			
    			<options>
    				<item name = "margin.linenumber.width">32</item>				
    				<item name = "margin.symbol.width">8</item>
    				<item name = "margin.folding.width">18</item>
    
    
    				<item name = "tabs.usetabs">true</item>
    				<item name = "tabs.tabwidth">2</item>
    				
    				<item name = "tabs.indent">2</item>
    				<item name = "tabs.tabindent">1</item>
    				<item name = "tabs.backspaceunindent">1</item>
    
    
    				<item name = "word.chars"><![CDATA[_#%$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]]></item>
    
    
    				<item name = "scroll.width">1366</item> <!-- max hor scrollbar width. 0 to use default -->
    				
    			</options>
    
    
    			<options name = "whitespace">
    				<item name = "viewws">2</item>
    				<!-- viewws:
    							0	The normal display mode with white space displayed as an empty background colour.
    							1	White space characters are drawn as dots and arrows,
    							2	White space used for indentation is displayed normally but after the first visible character, it is shown as dots and arrows.
    							3	White space used for indentation is displayed as dots and arrows.
    				-->
    				<item name = "size">0</item>
    				<item name = "tab.drawmode">1</item>
    				<!-- tab.drawmode:
    							0	The default mode of an arrow stretching until the tabstop.
    							1	A horizontal line stretching until the tabstop.
    				-->
    				<item name = "extra.ascent">0</item>
    				<item name = "extra.descent">0</item>				
    			</options>
    			
    		</editor>
    
    
    		<codebrowser>
    			<style>
    				<item name = "color.background">11,22,44</item>
    				<item name = "color.foreground">240,245,243</item>
    				<item name = "color.line">204,228,134</item>
    				<item name = "font.face">PT Mono</item>
    				<item name = "font.size">10</item>
    				<item name = "font.width">0</item>
    				<item name = "font.weight">0</item> <!-- 0 to 900 by steps of 100 -->
    			</style>
    		</codebrowser>
    
    
    		<filebrowser>
    			<!--
    				DO NOT USE:
    					still under development
    			-->
    			<style>
    				<item name = "treeview.background">11,22,44</item>
    				<item name = "treeview.foreground">240,245,243</item>
    		
    				<item name = "treeview.selected.background">0,180,255</item>
    				<item name = "treeview.selected.foreground">215,223,0</item>
    
    
    			</style>
    		</filebrowser>
    
    
    		<panels>
    			<style>
    				<item name = "main.color.background">55,125,185</item>
    				<item name = "output.color.background">45,105,25</item>
    				<item name = "info.color.background">33,77,133</item>
    				<item name = "todo.color.background">133,77,33</item>
    				<item name = "process.color.background">0,35,75</item>
    			</style>
    			
    			<options>
    				<item name = "process.monitoring.active">true</item>
    				<item name = "process.html.template">ProcessMonitor\Html\ProcessMonitor_Template_1Chart.htm</item>
    				<item name = "process.monitoring.sampling.points.max">30</item>
    				<item name = "process.monitoring.sampling.delay">900</item> <!-- DO NOT GO BELOW 500 -->
    			
    				<item name = "process.onstart.maximize">false</item>
    				<item name = "process.onstop.minimize">true</item>
    			
    			</options>
    
    
    		</panels>
    		
    	</resources>
    
    
    </ThinAirTheme>
    
    dont bother -the fonts will not effect that and it will drop back to defaults. I used these fonts many times already.
    Now check "the screenshock"
    Attached Images Attached Images
    I think there are missing some Forum-sections as beta-testing and support

  4. #164
    Quote Originally Posted by ReneMiner View Post
    definetely something changed. i made sure it will not start thinair without admin privileges. So its no more crashing as before and i am sure it must be a setting in the theme-file that i exchanged. Thats the one i use at the time. I don't know why but thinair is not able to handle few scripts in memory , currently i have like 8 or 9 open scripts, none more than 16kB. But its 2 of 3 hours thinair is not responding and it shows a hilarious number how much memory it consumes. See screenshot. If my scripts occupy altogether 300kB - and none is
    running you will know that i am bit shocked and its annoying to wait until it responds again so i can save and close it. Why no autosave with a timer that saves configurable every x minutes all scripts that have been changed in that time to some backup folder. Not just for that current cause but also sometimes i code and type
    and type and type and - no i dont like the approach - i want to go back 1 hour. Then it would be nice to have backups in different stages. just with a data-time-stamp into a folder that i provide lets say i could set it to 20 stages that will be kept of a script. if it is more than it will not instantly delete any script but ask to zip all of the backups into an archive. then if more than 20 stages of that script again and i already gave permission to zip the backups let it add them to the zip archive. and lets say it makes the 100 full- no problem. Give the message once (the backup-archive of scriptfile xy.tBasic already contains 100 stages of development". "OK" i move it somewhere or rename it and put it somewhere and if project done maybe i will delete it, maybe i only finished because i had plenty of backups. if not important to me, i will change settings maybe save once in 30 minutes or per hour.
    Hi

    If it can help about the memory consumption,
    I monitored here thinAir (launched without admin privilege), It looks that memory usage grow with usage from around 20Mb (start) to 39Mb (some minutes later) then never cross beyond 40Mb. Memory seems released correctly after closing a tab.

    If I understand correctly you think your problem is related with the theming ? Do you have the same problem with the default theme ?

    About auto save, if evolution is made, can it be compatible with this ?
    https://www.thinbasic.com/community/...hp?issueid=588

    Edit: monitored in task manager, the thinAir integrated monitoring shows grater memory usage (about 45Mb), curious.
    Last edited by DirectuX; 16-04-2020 at 12:25.
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  5. #165
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10
    Renè,


    copy/paste xml file in forum as code is not a good way to share because forum parser destroy it adding special chars. Better to attach xml file as zip file.
    I've also added xml files as forum supported files so now it is possible to attach an xml file directly into posts



    Anyway here attached a fixed xml version of your theme.
    It seems working fine here.

    Capture.PNG

    Please try on your system and let me know if it works so we can start from this point.


    In a couple of days I will release thinBasic new version that has a lot of changes in thinAir process monitor mechanism and I hope some of your bad experiences will disappear.
    I've never had all the GPF you had.
    I also tested under Windows 7 with no error.

    But this doesn't mean there are no problems.
    I had some GPF on slow Windows 10 Hyper-V virtual machine at the very first thinAir execution: problem was caused because thinAir was using Web Browser control DOM document before the slow machine was able to load all web control dependencies like javascript engine but in new version I will release very soon I should have solved this issue testing web control loading status and waiting till DOM document is finally loaded.



    Also consider theming is still under development so there will be some changes in next thinBasic release.
    For example I will remove OPTIONS (settings that change thinAir behaves) from themes and I will left only UI aspects.
    Options will be inside dedicated xml file and there will be a mechanism of user option override in such a way default thinAir options that come from installation can be modified by local user options.



    Ciao
    Eros
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #166
    can we add color to the textBox (ie vb6 style) like this vb6 example
    Private Sub Form_Load()
    Text1.ForeColor = RGB(255, 0, 0)
    Text1.Text = "okay"
    Text1.BackColor = RGB(0, 255, 0)
    End Sub

    also how to print text to the Form

    here is the TextBox in thinBasic in vb6 style introduced in TB versions 1.11. ..., note that it is supporting Unicode
    USES "UI"
    '---Define a button and textBox ID
    begin ControlID
      %txtBox
      %btnPush
    end ControlID
    
    dialog Font "Courier New", 14
    DIALOG New Pixels   , Name Form, 0, "tests",-1,-1, 640, 400,
                          %WS_DLGFRAME | %DS_CENTER | %WS_CAPTION  | %WS_SYSMENU | %WS_OVERLAPPEDWINDOW
    CONTROL ADD Textbox , Name txtBox  , Form.Handle, %txtBox   , "",  10,  30, 350,  350, %ES_AUTOHSCROLL | %WS_VSCROLL | %ES_AUTOVSCROLL | %ES_WANTRETURN | %ES_MULTILINE |  %WS_TABSTOP ' | %ES_NUMBER
    CONTROL ADD BUTTON  , Name btnPush , Form.Handle, %btnPush  , "Okay"     , 480, 340, 150,  25, %BS_NOTIFY | %BS_CENTER | %BS_VCENTER | %WS_TABSTOP
    control set Color Form.Handle , %txtBox, rgb(255,0,0), rgb(0,255,0)
    DIALOG SHOW MODAL Form.Handle
    '------------------------------------------------
    CallBack Function Form_OnLoad() As Long
    '------------------------------------------------
      txtBox.Text  = "visual basic 6" + $CRLF
      '---Change name to Run me
      btnPush.Text = "Run me"
    
    End Function
    '------------------------------------------------
    ' Function fired when button Run me is clicked
    '------------------------------------------------
    CallBack Function btnPush_OnClick() As Long
    '------------------------------------------------
    long i, total
    string Txt
    'txtBox.Color = rgb(0,100,0) 'doess not work
    Txt = "まど を 閉じる。"
    
    txtBox.Text = txtBox.Text + Txt + $CRLF
    txtBox.Text = txtBox.Text + Peek$(strPtr(Txt), len(Txt)) + $CRLF
    txtBox.Text = txtBox.Text + len(Txt) + $CRLF
    End Function
    
    Last edited by primo; 17-04-2020 at 09:10.

  7. #167
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171
    I am sure your joker to colorize a Control ist sendMessage. It's a Function from win32api, butits available AS many Others through thinBasic already. I don't know exactly the Syntax but IT IS not prefixed "Win_" AS Most of the other adopted Windows Functions. Get the win32.chm there in any Case AS Long its still available http://laurencejackson.com/win32/
    Its Not a mistake to have a book about the engine that is driving your Scripts

    Oops... Sorry i did Not read completely. But the Link ist useful. So i leave it AS ist now, Walking from the doctor Back Home and seems since i am sick since december already that i will also in the next weeks have some time to Code and test.while i am waiting for surgery.
    @Eros; Just asking did you See my thread in the members-only-area about multihreading? I am pretty certain the language there ist fast and powerful enough to run thinBasic in 40 to 48 threads at the Same time. You should probably Check. Sadly Petr was Not Able to come online because He is the Kind of Guy who will get a Basic running example within minutes. And i would like to implement thinBasic into the visual Assembler that comes with Compiler and i think a dozen different dialects of ASM and it has the complete visual Designer including the controls that createtheirs Events procedures automatic instantly when sa Control ist placed in the Editor
    Last edited by ReneMiner; 17-04-2020 at 10:05.
    I think there are missing some Forum-sections as beta-testing and support

  8. #168

    Question

    Quote Originally Posted by ErosOlmi View Post
    Options will be inside dedicated xml file and there will be a mechanism of user option override in such a way default thinAir options that come from installation can be modified by local user options.
    Something persistent through new tb release (like thinAir_Tools_Usr.ini ) ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  9. #169
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10
    Quote Originally Posted by primo View Post
    can we add color to the textBox (ie vb6 style) like this vb6 example
    Private Sub Form_Load()
    Text1.ForeColor = RGB(255, 0, 0)
    Text1.Text = "okay"
    Text1.BackColor = RGB(0, 255, 0)
    End Sub
    Yes sure, it is already developed. Add something like the following in Form_OnLoad function for example
      txtBox.forecolor = rgb(255,0,0)
      txtBox.backcolor = rgb(0,255,0)
    
    .forecolor and .backcolor are also available in other controls I've already converted into VB style

    Quote Originally Posted by primo View Post
    also how to print text to the Form
    Can you explain?

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  10. #170
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10
    Quote Originally Posted by ReneMiner View Post
    @Eros; Just asking did you See my thread in the members-only-area about multihreading? I am pretty certain the language there ist fast and powerful enough to run thinBasic in 40 to 48 threads at the Same time. You should probably Check. Sadly Petr was Not Able to come online because He is the Kind of Guy who will get a Basic running example within minutes. And i would like to implement thinBasic into the visual Assembler that comes with Compiler and i think a dozen different dialects of ASM and it has the complete visual Designer including the controls that createtheirs Events procedures automatic instantly when sa Control ist placed in the Editor

    Sorry, not. But I will, you ideas are always so clever to not have a look
    I need to go in order and give priority to more basic things that give value to all using thinBAsic
    Multithreading in script is one of the ideas I have for thinBasic 2.x version

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 17 of 24 FirstFirst ... 71516171819 ... LastLast

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •