LB Booster
« Main Win, How to ..? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:08am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Main Win, How to ..?  (Read 292 times)
SarmedNafi
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 93
xx Main Win, How to ..?
« Thread started on: May 8th, 2015, 7:52pm »

Dear Richard,

I saw in your previous replay, how can we make the main win run in full screen, I make search in BBC tutorial I found nothing look like what you post.
However now I am asking if there is a way to let the main win appears in the upper left corner after we run the program with LBB?

Thank you for your efforts in LBB.
Sarmed
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Main Win, How to ..?
« Reply #1 on: May 8th, 2015, 10:13pm »

on May 8th, 2015, 7:52pm, SarmedNafi wrote:
I am asking if there is a way to let the main win appears in the upper left corner

If you know the window handle of the mainwin (for example by calling FindWindow, or using the !BBC-code escape) you can move it anywhere you like with the SetWindowPos API:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545.aspx

For example using the FindWindow method (for compatibility with LB4):

Code:
    title$ = "My Unique Window Title"
    TITLEBAR title$
    CALLDLL #user32, "FindWindowA", 0 AS LONG, _
      title$ AS PTR, hwmain AS ULONG
    flags = _SWP_NOSIZE OR _SWP_NOZORDER
    CALLDLL #user32, "SetWindowPos", hwmain AS ULONG, _
      0 AS LONG, 0 AS LONG, 0 AS LONG, 0 AS LONG, _
      0 AS LONG, flags AS LONG, ret AS LONG 

« Last Edit: May 8th, 2015, 10:45pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls