LB Booster
« Minimize or Maximize from within the program »

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



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: Minimize or Maximize from within the program  (Read 284 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Minimize or Maximize from within the program
« Reply #2 on: Sep 18th, 2017, 6:40pm »

Hi,

Sorry for my late reply - I was on travel.

Okay, my question is some kind of fuzzy.

My program's main window doesn't have the title bar appearing so I cannot click on the "minimize" button to get the Window's desktop. Nevertheless, I'd like to minimize the window like I would use the keys "Windows+Down".

Either I could create a button "Minimize" or, since my program is remotely controlled, I would use a received command to minimize the window. But what would the command look like?

Forget about the "maximize" question - this one is completely s****d grin
User IP Logged

Roger
RobM
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 91
xx Re: Minimize or Maximize from within the program
« Reply #3 on: Sep 19th, 2017, 09:51am »

on Sep 18th, 2017, 6:40pm, flotulopex wrote:
I would use a received command to minimize the window. But what would the command look like?


https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx

Code:
nCmdShow=_SW_MINIMIZE
calldll #user32, "ShowWindow",_
h as ulong,_
nCmdShow as long,_
result As boolean 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Minimize or Maximize from within the program
« Reply #4 on: Sep 19th, 2017, 11:27am »

on Sep 18th, 2017, 6:40pm, flotulopex wrote:
But what would the command look like?

I linked to suitable code at LBPE in my reply.

Richard.

User IP Logged

flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Minimize or Maximize from within the program
« Reply #5 on: Sep 20th, 2017, 06:40am »

Thanks Richard,

I'll give it a try this evening.

I see, I have to get used to use those APIs....
User IP Logged

Roger
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Minimize or Maximize from within the program
« Reply #6 on: Sep 21st, 2017, 3:03pm »

Thanks Richard,

As always, you provide the needed help ;)

So this is the code I added to my code.

Code:
[MINIMIZE_WINDOW]
   hMain = hwnd(#Main)
   CallDLL #user32, "ShowWindow",_
   hMain as uLong,_        'handle of window
   _SW_MINIMIZE As Long,_  'message to minimize window
   r As Long
   WAIT
 
User IP Logged

Roger
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