Liberty BASIC code snippet 
Author Message
 Liberty BASIC code snippet

Here's a useful snippet if you want to change the size of the default
window that opens when you run a Liberty BASIC program.  This routine
calls two API functions to do its thing.

    'Place this at the beginning of your program
    'Open USER.DLL to call Windows APIs
    open "user.dll" for dll as #user

    'Get the handle for the active window
    calldll #user, "GetActiveWindow", _
        hMain as ushort

    'Move the window to 10,10 and make it 500 by 400
    calldll #user, "MoveWindow", _
        hMain as word, _
        10 as short, _
        10 as short, _
        510 as short, _
        410 as short, _
        1 as word, _
        result as void

    close #user

    'Now start your program code here



author of Liberty BASIC,  "EASY Windows and OS/2 programming!"
http://www.*-*-*.com/ ~carlg/basic.html

Sun, 01 Nov 1998 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. FAQ - BASIC code snippets (long)

2. ANN: Visual Basic Code Snippets

3. FAQ - BASIC code snippets (longish)

4. FAQ - Basic code snippets (longish)

5. Basic code snippets

6. ANN: Visual Basic Code Snippets

7. Visual Basic code packets (snippets)

8. Code Database Program - Store your code Snippets

9. Code Database Program- Store your code snippets

10. samples code snippets?

11. combobox: converting code snippet from VBA to VB

12. Code Snippet: Browse for Folder


Powered by phpBB® Forum Software