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
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 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
Page 1 of 2 1 2
Panels and priorities #114724
03/02/07 15:17
03/02/07 15:17
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I’m having a problem with buttons in my panels. There seems to be a priority between them. It’s when I started moving then around in SED that things got better and I noticed a priority.

Here’s the situation :

On the left side of the screen there are 3 buttons (top to bottom)
On the right side there are 4 buttons (again ...top to bottom)

All these buttons are on level 7 (the highest level) and do not overlap.
I removed the overlay flag to check all buttons.
All panels have : flags = refresh, overlay ;

All buttons on the right work all the time...
But the buttons on the left work only when going from the bottom ...up.
When you choose the bottom one ...others at the top are available..
As you go up...the bottom one is not available....and so on.

I went into SED and moved the panel scrips around. Things got better, but not a 100%.

In this script I have.... (structure)

All bitmaps
One Text panel and function
Panel button one.... level 7
------panel that is visible when one chooses button one
panel button two.... level 7
-----panel that is visible when one chooses button 2
panel button three.... level 7
-----panel that is visible when one chooses button 3
panel button four.... level 7
-----panel that is visible when one chooses button 4
panel button five.....level 7
-----panel that is visible when one chooses button 5
the last 2 panels have the door and menu options ...(level 7)
there a 9 panels on level 1.
All the functions.
One Action

This is the best that I have right now.
Questions :
Is there a priority system for buttons?
This script was working very well in version 6.4. Is there a limit on the number of buttons in ver6.5 Pro.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114725
03/02/07 16:31
03/02/07 16:31
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
There is no "button priority", but maybe your problem is this:

"Panels with no bmap and undefined size now got a default size from it's upper left corner up to the lower right corners of it's elements. This can lead to a different mouse clicking or touching behavior when you had previously undefined size panels in your project."

From: http://manual.conitec.net/newfeatures65.htm

Make sure that all the buttons are inside the panel area that you give with size_x/size_y.

Re: Panels and priorities [Re: jcl] #114726
03/02/07 17:46
03/02/07 17:46
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

I'll look into this.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114727
03/03/07 03:31
03/03/07 03:31
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

Yep that's it....but I don't know how to control the size.

My buttons are 78 x 40 pixels
They are on the left hand side of the screen
And my code is :
Code:
 panel une_note 
{
size_x = 200;
size_y = 200;

layer = 7;
alpha = 100;
button = 10,96,note_1_R,note_1_R,note_1_V,choix_un_son,null,null;
flags = refresh, overlay ;
}



Can you give me an example


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114728
03/05/07 06:41
03/05/07 06:41
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
If you have only one button, you do not need to set a panel size - it's set automatically. However then don't give an offset to a non-existing panel background!

This is the correct way to define a 1-button panel:

panel une_note =
{
layer = 7;
button(0,0,note_1_R,note_1_R,note_1_V,choix_un_son,NULL,NULL);
flags = OVERLAY;
}

Re: Panels and priorities [Re: jcl] #114729
03/05/07 22:53
03/05/07 22:53
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Thanks jcl!

I've been experimenting and I haven't found the solution yet.

I'll try this..."The correct way..."
And get back to you!


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114730
03/06/07 21:32
03/06/07 21:32
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
HI jcl!

I removed the flags that were not important as you suggested.
It's still not working properly....when I open the level all buttons are ready and fonctionnal. If I choose the bottons on the left side and go up it's ok ...but I can't come down. The buttons on the right side are always fonctionnal and when I use them ...I can use the ones on the left side again from bottom to up.

question about
Quote:

panel one_note =


is the "=" important?


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114731
03/07/07 07:31
03/07/07 07:31
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The "=" should be used, but wrong syntax or outdated flags can not be the reason for a button problem. Such problems normally have a logical reason, like a button is outside the panel area, or the panel is covered by another panel, or something like that.

Re: Panels and priorities [Re: jcl] #114732
03/09/07 00:02
03/09/07 00:02
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline OP
User
Ottawa  Offline OP
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi jcl!

Could you explain where the “=” comes from in “panel one_note =”, what it does and when to use it?

I have gone through the script and placed “=” for every single button and all the others.
No change.

I’ve removed the overlay flag to see all of the bmapSS. There is no overlap for the 7 buttons and their actions (in the centre).

Since you were talking of panel viewing zones ...I moved the buttons away from the side of the window ...no change.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Panels and priorities [Re: Ottawa] #114733
03/09/07 11:02
03/09/07 11:02
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The "=" is an assignment in C-Script. Meaning that the right of the "=" is assigned to the left of the "=". I don't know what's wrong with your panels, but the basics of C-Script are described in the tutorial.

When your panels don't behave correctly and you can't find the reason, I suggest that you post a thread in the "Scripting" forum. The "Ask Conitec" Forum is more for general questions, but not for problems in your script. Explain how many panels your are using, what the buttons are supposed to do, and - if its not too long - post the code of all your panels (not only one button). 100 eyes see more than two and other users can probably help you when you encounter a scripting problem. If it's still unsolved after some days, please post here again with the details - I'll then look into it.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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