Search found 75 matches

by guest
Thu Aug 08, 2019 11:21 am
Forum: Liberty BASIC Language
Topic: Position cursor within textbox
Replies: 4
Views: 733

Re: Position cursor within textbox

I wish to be able to display text in a textbox, and then position the cursor at the end of the that text, so that any further text entered by the user would then be added at the end. I'm sure it's quite straightforward using an API call ( EM_SETSEL is the message you need), and somewhere I've got t...
by guest
Thu Jul 04, 2019 11:51 am
Forum: Liberty BASIC Language
Topic: SetSystemTimeAdjustment privileges
Replies: 2
Views: 510

Re: SetSystemTimeAdjustment privileges

How the hell simple comments after the critical system calls affect their proper execution? My suspicion is that it is a structure size issue. You have declared the TOKENPRIVILEGES structure as follows: struct TOKENPRIVILEGES, _ PrivilegeCount as ulong, _ Luid as long, _ Attributes as ulong but Mic...
by guest
Wed Jul 03, 2019 5:14 pm
Forum: Liberty BASIC Language
Topic: Defining controls
Replies: 3
Views: 532

Re: Defining controls

I'll have to rethink my plans here The anchor (which is rarely anything other than UL because of a longstanding bug in LB that causes the control to be mis-positioned) can easily be worked around by using a SELECT CASE statement to select one of the four kinds. The action is not so easily worked ar...
by guest
Tue Jul 02, 2019 8:29 am
Forum: Liberty BASIC Language
Topic: Defining controls
Replies: 3
Views: 532

Re: Defining controls

will not compile, it reports Missing ")" in the "button" line. Some parameters of the BUTTON statement are not numerics or strings, and therefore cannot be stored in an array. In particular the action (handler) and anchor parameters aren't: action is the name of a branch label or a SUB, anchor is o...
by guest
Mon May 27, 2019 9:27 am
Forum: Liberty BASIC Language
Topic: Handle variables in control definition statements
Replies: 2
Views: 681

Re: Handle variables in control definition statements

Enlightenment, or a pointer to enlightenment, would be welcome. If you read the 'Handle Variables' section of the LB4 documentation all should be revealed. There are a number of mistakes in your code: The first line should be hw$="#WIN" . I know that is effectively a duplication of the hash charact...
by guest
Tue May 21, 2019 3:45 pm
Forum: Compiler
Topic: Disabled or Hidden Control still has Focus
Replies: 7
Views: 1650

Re: Disabled or Hidden Control still has Focus

I simply thought that if Carl Gundel could get around this small discrepancy, then certainly you could. It's not a discrepancy, it's how Windows works. In the specific case of your program, I know of NO WAY to "get around it", because you are disabling every single control in a dialogue box, someth...
by guest
Mon May 20, 2019 5:12 pm
Forum: Compiler
Topic: Disabled or Hidden Control still has Focus
Replies: 7
Views: 1650

Re: Disabled or Hidden Control still has Focus

So how is this a "Windows" issue? Or do you just enjoy blowing me off? Despite your wish to abuse me, it is a Windows issue: https://devblogs.microsoft.com/oldnewthing/20040804-00/?p=38243 One way of working around the problem is to disable the button using STYLEBITS so that it never acquires focus...
by guest
Sat May 18, 2019 3:48 pm
Forum: Compiler
Topic: Disabled or Hidden Control still has Focus
Replies: 7
Views: 1650

Re: Disabled or Hidden Control still has Focus

JackKelly wrote:
Sat May 18, 2019 1:39 am
Is it possible to fix this on the next release?
That's determined by Windows, not LBB. I'm not sure how practical, or desirable, it would be for LBB to override Windows' default behavior. What window should have the focus, in your view (there must be one)?
by guest
Tue Apr 30, 2019 11:55 am
Forum: Program editor
Topic: Text Entry Cursor stops blinking
Replies: 17
Views: 3531

Re: Text Entry Cursor stops blinking

It happens on every Windows 10 PC, so this rules out a problem with my particular machine. So, then, how does one find the 'something' that is wrong with the edit control attributes or style? It's more fundamental than that. The problem doesn't just affect Edit Controls: I've noticed that in BBC BA...
by guest
Tue Apr 09, 2019 10:42 pm
Forum: Liberty BASIC Language
Topic: Generating events when focus changes
Replies: 2
Views: 783

Re: Generating events when focus changes

Sparks wrote:
Tue Apr 09, 2019 10:10 pm
Is there a way to trap a focus change event on a Textbox in LBB?
See here. You will probably want to use a SUB timer handler rather than the branch handler used in the examples.