PureBasic Forum
https://www.purebasic.fr/english/

[Module] StringEx (all OS)
https://www.purebasic.fr/english/viewtopic.php?f=27&t=72534
Page 2 of 4

Author:  Thorsten1867 [ Fri Mar 29, 2019 2:15 pm ]
Post subject:  Re: [Module] StringEx (all OS)

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

Changes: Cursor Handling and Thread

Author:  Lord [ Sat Mar 30, 2019 11:25 am ]
Post subject:  Re: [Module] StringEx (all OS)

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.

Author:  Thorsten1867 [ Sat Mar 30, 2019 12:47 pm ]
Post subject:  Re: [Module] StringEx (all OS)

Try the Free() Command

Gesendet von meinem Aquaris X2 mit Tapatalk

Author:  mk-soft [ Sat Mar 30, 2019 1:39 pm ]
Post subject:  Re: [Module] StringEx (all OS)

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

Author:  Lord [ Sun Mar 31, 2019 10:38 am ]
Post subject:  Re: [Module] StringEx (all OS)

ozzie wrote:
...
Works fine now. Many thanks - ...
Now I can agree with that. :D

Author:  StarBootics [ Sun Mar 31, 2019 12:35 pm ]
Post subject:  Re: [Module] StringEx (all OS)

Work fine under Ubuntu 18.10 x64

Best regards
StarBootics

Author:  Thorsten1867 [ Tue Apr 02, 2019 9:01 am ]
Post subject:  Re: [Module] StringEx (all OS)

Update:
  • global cursor thread for all StringEx gadgets in common
  • Support of 'ModuleEx' (master modules for all my gadgets)

Author:  Lord [ Tue Apr 02, 2019 6:52 pm ]
Post subject:  Re: [Module] StringEx (all OS)

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.

Author:  Thorsten1867 [ Wed Apr 03, 2019 6:59 am ]
Post subject:  Re: [Module] StringEx (all OS)

Bug fixed

Author:  Lord [ Wed Apr 03, 2019 7:18 am ]
Post subject:  Re: [Module] StringEx (all OS)

Thorsten1867 wrote:
Bug fixed

Thanks for that and all your modules!

Author:  Thorsten1867 [ Wed Jun 12, 2019 12:05 pm ]
Post subject:  Re: [Module] StringEx (all OS)

Update:
  • Flags: #Left / #Center / #Right
  • Added: Attribute '#Padding'
  • automatic gadget size adjustment (#AutoResize)

Author:  Thorsten1867 [ Sun Aug 18, 2019 8:18 pm ]
Post subject:  Re: [Module] StringEx (all OS)

Bugfixes: Cursor

Author:  Thorsten1867 [ Tue Sep 03, 2019 5:23 pm ]
Post subject:  Re: [Module] StringEx (all OS)

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)

Author:  Cyllceaux [ Sun Nov 17, 2019 1:23 pm ]
Post subject:  Re: [Module] StringEx (all OS)

How can I handle events like "Text Change"?

Author:  Thorsten1867 [ Sun Nov 17, 2019 2:25 pm ]
Post subject:  Re: [Module] StringEx (all OS)

Update: Added #EventType_Change / #EventType_Focus / #EventType_LostFocus

Page 2 of 4 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/