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
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 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
Problem:Mouse offset on y axis over button #170890
12/03/07 21:24
12/03/07 21:24
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Hi,
Has anyone got this problem?
Gamestudio A7.06.1

I don’t know if anyone is experiencing this problem?

The mouse click/over on buttons in panels seem to have an offset on the Y axis.
The X axis is fine.

This is where the button is activated from below.


http://pararealist.pa.funpic.de/test2.html



And where it deactivates, right in the middle of the button.

It seems the offset is about half the size of the button below the button.

I am using window size of 800x600 and panels for this size screen.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: Problem:Mouse offset on y axis over button [Re: pararealist] #170891
12/05/07 23:37
12/05/07 23:37
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

Does your panel have a position?
Then, does your button have a position inside the panel?

Hope this helps

Ottawa

Re: Problem:Mouse offset on y axis over button [Re: Ottawa] #170892
12/06/07 12:11
12/06/07 12:11
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Yes, the bitmap for the panel is at 0,0.
panel is at 0,0

The button positions are inside the panel.

PANEL CODE:

PANEL* pAnimEditPanel =
{
pos_x = 0;
pos_y = 0;
//
bmap = animedit_pcx;
//
hslider (0,405,608,scrollbar_pcx,0,11000,aSlider1_val);
//
button_radio = 10,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 90,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 170,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 250,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 330,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 410,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button_radio = 490,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
//
// Clip load save del
button = 566,454,cliploadon_pcx,clipload_pcx,cliploadov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button = 565,482,clipsaveon_pcx,clipsave_pcx,clipsaveov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
button = 565,507,clipdelon_pcx,clipdel_pcx,clipdelov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
//
digits(530,430,"%s\n",dungeon14_fnt,1,aHoverButton_str);
//
digits(148,430," %02.2f\n",dungeon16_fnt,1,aCurMarkerStart);
// No 11
button = 123,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// clip set start marker 12
button = 190 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// clip delete 13
button = 225,427,clipdeleteon_pcx,clipdelete_pcx,clipdeleteov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
//
digits(285,430," %02.2f\n",dungeon16_fnt,1,aCurAnimCur);
// No 14
button = 258,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// clip insert 15
button = 330,427,clipinserton_pcx,clipinsert_pcx,clipinsertov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// clip set end marker
// 16
button = 363 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// end marker
digits(418,430," %02.2f\n",dungeon16_fnt,1,aCurMarkerEnd);
// No 17 - cur pos
button = 393,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
//
digits(585,537," %s\n",dungeon14_fnt,1, clipnum_str);
//
event = fDoClickOnPanel;
//
layer = 2;
flags = CENTER_X | CENTER_Y | OVERLAY ;
//
on_click = fDoAnimEditPanel;
}

If you can see something wrong please let me know.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: Problem:Mouse offset on y axis over button [Re: pararealist] #170893
12/06/07 23:59
12/06/07 23:59
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

There are at least two situations where a comma is missing
Code:
 button = 190   ,  427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver;
// clip delete 13




and
Code:
button = 363   ,  427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; 
// end marker



edit :
I have a question about the following two lines
event = fDoClickOnPanel;

on_click = fDoAnimEditPanel;

I would put them in another function
I saw that material can call an event this way but I wasn't aware
that panels could do this.

Last edited by Ottawa; 12/07/07 00:25.

Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Problem:Mouse offset on y axis over button [Re: Ottawa] #170894
12/07/07 01:56
12/07/07 01:56
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
My keyboard is giving me problems sometimes. It switches to insert mode, and i sometimes delete a letter or so.

But SED did not complain in the panel description with the two commas missing.

But the problem is still there after adding the commas.

It is new for the t7 templates A7.06.1
but i even commented that out, just in case, same problem.

I will create a simple level with a panel and button to see if this is a general problem or just with this project.

Thanks.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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