We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UCI Chess Engine
#2
Updated LitDev extension Beta (1.2.28.0) to better manage TW hide and show.  There are a couple issues:

1] TextWindow.Read for example will show the TextWindow if currently hidden
2] TextWindow object keeps track of the current state and this is not updated if the user minimises window for example

This is why minimising TW with Cute Chess works - it is minimised but SB thinks it is shown.

Try using:

Code:
LDTextWindow.UpdateShowHide = "False"
LDTextWindow.Minimise()

or

PHP Code:
LDTextWindow.UpdateShowHide "False"
LDTextWindow.Hide() 

The new property UpdateShowHide (default True) will also update the internal variable, which in this case you don't want since we want TextWindow.Read to think the window is currently shown when in fact it is hidden or minimised.  Its all a bit hacky, but we are working within the original SB code.
Reply


Messages In This Thread
UCI Chess Engine - by Scout - 05-22-2024, 09:44 PM
RE: UCI Chess Engine - by litdev - 05-23-2024, 05:21 PM
RE: UCI Chess Engine - by Scout - 05-23-2024, 06:38 PM
RE: UCI Chess Engine - by litdev - 05-23-2024, 07:48 PM
RE: UCI Chess Engine - by litdev - 05-24-2024, 08:36 PM
RE: UCI Chess Engine - by Scout - 05-24-2024, 09:46 PM
RE: UCI Chess Engine - by litdev - 06-03-2024, 10:23 PM
RE: UCI Chess Engine - by AbsoluteBeginner - 06-04-2024, 08:42 AM
RE: UCI Chess Engine - by litdev - 06-04-2024, 02:02 PM
RE: UCI Chess Engine - by AbsoluteBeginner - 06-04-2024, 04:06 PM
RE: UCI Chess Engine - by WhTurner - 06-04-2024, 05:42 PM
RE: UCI Chess Engine - by Scout - 10-24-2024, 08:12 PM
RE: UCI Chess Engine - by litdev - 10-25-2024, 07:56 AM
RE: UCI Chess Engine - by AbsoluteBeginner - 10-25-2024, 08:02 AM
RE: UCI Chess Engine - by Scout - 10-25-2024, 08:27 AM
RE: UCI Chess Engine - by z-s - 10-25-2024, 09:46 AM
RE: UCI Chess Engine - by litdev - 10-25-2024, 06:18 PM
RE: UCI Chess Engine - by Scout - 10-30-2024, 10:41 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)