Minimize problem

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 06, 2009 11:57 am

Hello again Klaus.
Is this correct?

Code: Select all

on openstack
set the rect of stack "trigger" to 9999,9999,10000,10000 
go stack "trigger" 
end openstack
Bidge

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 06, 2009 12:05 pm

Hi Bidge,

yes, this is correct, but you could add a line to make your skinned stack the defaultstack again, see below:
bidgeeman wrote:Hello again Klaus.
Is this correct?

Code: Select all

on openstack
  set the rect of stack "trigger" to 9999,9999,10000,10000 
  go stack "trigger" 
  set the defaultstack to "your skinned stack"
end openstack
Bidge
Best

Klaus

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 06, 2009 12:14 pm

Hi Klaus...IT NEARLY WORKED :)
Only problem was when you click the taskbar icon it fails to maximize!
I can't believe it...so close :)

Bidge

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 06, 2009 12:22 pm

Hi Bidge,

OK, try to omit the first line in the script of the trigger stack (set the rect of me...)
since it should know its old position and restore at that place automatically:

Code: Select all

on uniconifyStack 
   show stack "name of your skinned stack" 
end uniconifyStack
Best

Klaus

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 06, 2009 12:30 pm

Hi Klaus.
Sorry that did'nt work iether :( ....You have an option of maximizing from the taskbar...when I do this the empty Trigger stack is maximized to full screen.

Cheers
Bidge

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 06, 2009 12:49 pm

Hi Bidge,

DAMN!

Hmm, I will think it over, maybe I have another clever idea :-)


Best

Klaus

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 06, 2009 12:56 pm

Thanks Klaus. I appreciate your efforts mate!

Cheers
Bidge

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 06, 2009 3:25 pm

Hi Bidge,

OK, here we go, another brilliant idea! ;-)

We could try to set the maxheight and maxwidth for the stack,
so maximizing would be in this boundarys, know what I mean?

Script of skinned stack:

Code: Select all

on openstack 
  set the rect of stack "trigger" to 9999,9999,10000,10000
  set the maxheight of stack "trigger" to 1
  set the maxwidth of stack "trigger" to 1 
  go stack "trigger" 
  set the defaultstack to "your skinned stack" 
end openstack
At least worth another try :-D

Best

Klaus

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sun Jun 07, 2009 1:32 am

Klaus.
That was quite funny. :) When I tried to maximize the exe from the taskbar a tiny little stack flew upwards and sat offscreen in the upper left hand side of the monitor. At least something happened.

Cheers
Bidge

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jun 07, 2009 11:26 am

:-D

Sorry, I'm afrad I'm running out of ideas now...

Oh, no, wait, another flash of genius strucks me! :-D :-D :-D

OK, if all this "trigger" concept apparently only works with a "normal"
and visible stack, then we use a "normal and visible stack!
BUT we set its blendlevel to 100, so it is only visible to the computer.
Maybe this does work (somehow) ;-)

Try this:
Script of skinned stack:

Code: Select all

on openstack 
  set the rect of stack "trigger" to 9999,9999,10000,10000 
  set the maxheight of stack "trigger" to 1 
  set the maxwidth of stack "trigger" to 1 

  ## !!!
  set the blendlevel of stack "trigger" to 100
  go stack "trigger" 
  set the defaultstack to "your skinned stack" 
end openstack

Best

Klaus

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sun Jun 07, 2009 12:04 pm

Aaarg! Sorry Klaus. :( that did'nt work either. So close.... The icon is on the task bar but when maximized the trigger stack still shoots up into the upper left off screen.

Cheers
Bidge

Post Reply