Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problems changing panel.size #265828
05/14/09 13:31
05/14/09 13:31
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Hey,

I'm trying to reduce the size of a panel to hide everything in that panel but the heading, and then restore it to it's original size later

if i have something like
PANEL* pnl_test = {
digits (12, 36, etc...
}

and then reduce its size
pnl_test.size_y = 12;

the digits are still visible, even though everything else in the panel greater than 12 will be hidden

also if there is a button
button(12, 24 etc...
moving the mouse quickly where the button would be when the button when it has been hidden by reducing the panel.size, it will for a frame flash onscreen

I can provide a project with this in if needed

Many thanks
MrGuest!

Re: problems changing panel.size [Re: MrGuest] #265833
05/14/09 14:12
05/14/09 14:12
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
All panel elements must be placed inside the panel. If you don't want an element to be seen, you must not reduce the panel size but just remove it.

Re: problems changing panel.size [Re: jcl] #266261
05/17/09 03:07
05/17/09 03:07
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
It sames strange that you've made the PANEL.size dynamic as you have with TEXT.size, but given it no reason for doing so?

and where text is masked by changing TEXT.size_y yet unsupported in PANELS

If it's not a bug, is it just laziness?

Re: problems changing panel.size [Re: MrGuest] #266265
05/17/09 06:07
05/17/09 06:07
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
Panel is a rectangular area that can have a bitmap and some elements that all must inside the area. Otherwise, they dont react on the mouse, because mouse is only checked within the panel area.

Hope this helps? For beginners, panels are good explained in the tutorial.

If you want to remove digits elements use pan_setdigits with a position outside the screen, its in the manual.

Re: problems changing panel.size [Re: Spirit] #266289
05/17/09 11:09
05/17/09 11:09
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: Spirit
Panel is a rectangular area that can have a bitmap and some elements that all must inside the area. Otherwise, they dont react on the mouse, because mouse is only checked within the panel area.

Hope this helps? For beginners, panels are good explained in the tutorial.

If you want to remove digits elements use pan_setdigits with a position outside the screen, its in the manual.
I am well aware of that panels are rectangular areas and what they do. (PANEL)
And, I am not saying that I'm trying to make an area react on the mouse, as it is only checked within he panel area. (BUTTON)
We can all quote manuals.

Though nowhere is it stated that digits must be inside a panels size to be displayed
Quote:
If no size is given in a panel definition, the panel is set to the size of the panel bitmap. If neither a size nor a bitmap is given, the panel is set to the size of its largest element (f.i. a button). If no size is given in a view definition, the view is set to the size of the screen.


Unfortunately, I don't have pan_setdigits in my manual, though I do have pan_setpos so it's possible to move each and every digit element out of the screen, then move it back when the panel is large enough.
As hopefully you'll be aware that this will then need me to store every original position...

As this still seems to be conitecs sensible way of doing things, would you recommend that I request the user should:
- be able to make different elements visible
- be able to set the panel size to hide all elements
- be able to pass variables for the digits position rather than constants
or just realise that if something is possible for the user no matter how much time/resources it would use... just get on with it?

I look forward to your next useful reply

Re: problems changing panel.size [Re: MrGuest] #266292
05/17/09 11:24
05/17/09 11:24
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
How about swapping the panels?
One full sized for one header sized or just a button.

For your resize prob, flags to show and hide txt/panels when called to?

...or is it a specific effect your after?


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: problems changing panel.size [Re: KiwiBoy] #266301
05/17/09 12:11
05/17/09 12:11
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
swapping the panels was one solution, but atm, i'm just placing other panels above the reduced ones to hide any digits,

there's a few workarounds, but it just seems everytime you get something done you need to do another workaround to make it work the way you'd expect

thanks for your reply! smile


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1