It is currently Sun Dec 15, 2019 1:42 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Fri Mar 29, 2019 2:15 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
I hope I can make all Macs peaceful and cooperative with this version.

Changes: Cursor Handling and Thread

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sat Mar 30, 2019 11:25 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 620
Hi Thorsten!

Thorsten1867 wrote:
I hope I can make all Macs peaceful and cooperative with this version.

Changes: Cursor Handling and Thread
It looks like you solved the issue with debugger on.
The window inclusive gadgets do appear and are working as expected.

But...

When closing the window in debug mode, the window disappeares but
PB is still in debug mode and the process PureBasic_Compilation0.exe
is still there. The process can only be closed by Task Manager.
This is also true running your code without debug mode.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sat Mar 30, 2019 12:47 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Try the Free() Command

Gesendet von meinem Aquaris X2 mit Tapatalk

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sat Mar 30, 2019 1:39 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2068
Location: Germany
One Delay too many for fast leave thread. Internal Dead-Lock under windows...
Code:
Procedure _CursorThread(*StrgEx.StrgEx_Structure)
   
    Repeat
     
      If Not IsGadget(*StrgEx\CanvasNum) : Break : EndIf
     
      If *StrgEx\Cursor\Elapsed < ElapsedMilliseconds()
       
        *StrgEx\Cursor\Elapsed = ElapsedMilliseconds() + *StrgEx\Cursor\Frequency
        *StrgEx\Cursor\State ! 1
       
        If *StrgEx\Cursor\Pause
          WaitSemaphore(*StrgEx\Signal)
        Else
          PostEvent(#PB_Event_Gadget, *StrgEx\Window\Num, *StrgEx\CanvasNum, #PB_EventType_Change)
          Delay(100)
        EndIf

      EndIf
     
      ;Delay(100) ; <----
     
    Until *StrgEx\Cursor\Thread = #False
   
  EndProcedure

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Mar 31, 2019 10:38 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 620
ozzie wrote:
...
Works fine now. Many thanks - ...
Now I can agree with that. :D

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Mar 31, 2019 12:35 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 450
Location: Canada
Work fine under Ubuntu 18.10 x64

Best regards
StarBootics

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Tue Apr 02, 2019 9:01 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Update:
  • global cursor thread for all StringEx gadgets in common
  • Support of 'ModuleEx' (master modules for all my gadgets)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Tue Apr 02, 2019 6:52 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 620
Hi!

Quote:
[19:46:08] Warte auf den Start des Executable...
[19:46:08] Executable-Typ: Windows - x64 (64bit, Unicode, Thread, Purifier)
[19:46:08] Executable gestartet.
[19:46:11] [ERROR] StringExModule.pbi (Zeile: 1224)
[19:46:11] [ERROR] Die Map hat kein aktuelles Element.
This is what I get when I make a RMB click in auto complete gadget, PW gadget and gadget with the delete button.

Makes no difference when comment is removed from XIncludeFile.
I also tried that include with an absolute path.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Wed Apr 03, 2019 6:59 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Bug fixed

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Wed Apr 03, 2019 7:18 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 620
Thorsten1867 wrote:
Bug fixed

Thanks for that and all your modules!

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Wed Jun 12, 2019 12:05 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Update:
  • Flags: #Left / #Center / #Right
  • Added: Attribute '#Padding'
  • automatic gadget size adjustment (#AutoResize)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Aug 18, 2019 8:18 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Bugfixes: Cursor

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Tue Sep 03, 2019 5:23 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Update: dynamic text size (needs ModuleEx.pbi)

Code:
StringEx::SetDynamicFont(#String, "Arial", 8)
StringEx::FitText(#String, 3, 3)

StringEx::SetAutoResizeFlags(#String, StringEx::#Width|StringEx::#FitText)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Last edited by Thorsten1867 on Sun Nov 17, 2019 2:28 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 1:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 165
How can I handle events like "Text Change"?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] StringEx (all OS)
PostPosted: Sun Nov 17, 2019 2:25 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1035
Location: Germany
Update: Added #EventType_Change / #EventType_Focus / #EventType_LostFocus

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye