Search found 78 matches

by guest
Wed Nov 20, 2019 2:59 am
Forum: Compiler
Topic: Disabled or Hidden Control still has Focus
Replies: 11
Views: 2475

Re: Disabled or Hidden Control still has Focus

The stylebits suggestion doesn't change the peculiarity that I observed It does when I try it. Here is your original demo program, modified solely by the inclusion of the STYLEBITS. Now pressing the space bar does not result in the button handler being called (the difference being that the button n...
by guest
Wed Nov 13, 2019 5:32 pm
Forum: Liberty BASIC Language
Topic: Font size in window title bars
Replies: 4
Views: 498

Re: Font size in window title bars

As far as I can ascertain, the option to change titlebar fonts has been removed from win10 settings and I can not find any api method or BBC code either. Microsoft rarely remove any API methods; their obsession with 'app compatibility' tends to preclude that. So, although I haven't tried it, I thin...
by guest
Thu Oct 24, 2019 2:16 pm
Forum: General Board
Topic: 3.10 OOP try
Replies: 1
Views: 340

Re: 3.10 OOP try

how do i do this This works: new a as v3d 1, 2, 3 new b as v3d 4, 5, 6 call a::add 7, 8, 9 call b::add 10, 11, 12 call a::get d, e, f call b::get g, h, i discard a discard b print d, e, f print g, h, i end class v3d dim x , y , z sub v3d x = 0 y = 0 z = 0 end sub sub v3d a , b , c x = a y = b z = c...
by guest
Thu Aug 08, 2019 11:21 am
Forum: Liberty BASIC Language
Topic: Position cursor within textbox
Replies: 4
Views: 1076

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: 742

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: 783

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: 783

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: 919

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: 11
Views: 2475

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: 11
Views: 2475

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...