Register for your free account! | Forgot your password?

You last visited: Today at 00:30

  • Please register to post and access all features, it's quick, easy and FREE!


ExpansionSlot01 V19 Taskbar Problem

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 117
Received Thanks: 29
ExpansionSlot01 V19 Taskbar Problem

So here is my problem, i got it to work, but it's like f*cked up, i just wanted some help because i'm haveing headaches of the taskbar...
Code:
void CWndSlideBar::OnLButtonDown(UINT nFlags, CPoint point)
{

	MouseLocation = point;
  SetCapture();
}
void CWndSlideBar::OnMouseMove(UINT nFlags, CPoint point)
{
  CRect rectRoot = m_pWndRoot->GetLayoutRect();
  CRect rectWindow = GetWindowRect();
  int FixedY = rectWindow.top;
  int FixedX = rectWindow.bottom;
  int yLimit = rectRoot.bottom - 65;
  
  //Move54 = (MouseLocation.x - point.x);

  if(FixedY != yLimit)
       FixedY = yLimit;

  if(FixedX < rectRoot.bottom - 65)
	  FixedX = rectRoot.bottom - 65;
  else if(FixedX > rectRoot.bottom - 15)
	  FixedX = rectRoot.bottom - 15;

  int diff = (point.x) - (MouseLocation.x);
  FixedX += (diff);	  

  //if(g_bKeyTable[0x01] && IsPush())
  //{
    CPoint point1( FixedX , FixedY );
    Move( point1 );
	//g_bKeyTable[ dwHotkey[i] ] = 0;
  //}
  
	CWndNeuz::OnMouseMove( nFlags, point );
}
As you see here, i wanted to do my own way to move it, and as the Capture thingy didn't work, i used my way to..

So the problem is here
Code:
  int diff = (point.x) - (MouseLocation.x);
  FixedX += (diff);
I hope that you guys will help me, i'll be soon releasing my taskbar after finishing all of it. And here is a lucky picture, using that code.


Thanks for helping.



max982 is offline  
Old 02/08/2013, 23:05   #2
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,149
Received Thanks: 1,531
look at your pn box for this.


Jopsi332 is offline  
Old 02/09/2013, 09:10   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 207
Received Thanks: 454
Flag the window style with WBS_MOVE, then restrict movement by overriding "CWndBase::SetWndRect"...
xMootie is offline  
Thanks
1 User
Old 02/09/2013, 10:58   #4
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,149
Received Thanks: 1,531
Quote:
Originally Posted by XorLethal View Post
Flag the window style with WBS_MOVE, then restrict movement by overriding "CWndBase::SetWndRect"...
Hrlped himalready.but in wndbase where he move and change the rect with stops etc. Working already


Jopsi332 is offline  
Old 02/09/2013, 17:01   #5
 
elite*gold: 0
Join Date: Mar 2011
Posts: 125
Received Thanks: 241
Quote:
Originally Posted by XorLethal View Post
Flag the window style with WBS_MOVE, then restrict movement by overriding "CWndBase::SetWndRect"...
I already did it move into the position x e blocked the y, but
does not have a limit of x (left or right) for him to go, so it goes until the end of the flyff screen
adeilson123 is offline  
Old 02/09/2013, 17:52   #6
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,149
Received Thanks: 1,531
Quote:
Originally Posted by adeilson123 View Post
I already did it move into the position x e blocked the y, but
does not have a limit of x (left or right) for him to go, so it goes until the end of the flyff screen
Just check the actual point and block with if
Jopsi332 is offline  
Old 02/19/2013, 15:55   #7
 
elite*gold: 85
Join Date: Jan 2012
Posts: 1,143
Received Thanks: 876
can you post it here the slidebar source code?
Rhyder` is offline  
Old 02/19/2013, 17:46   #8

 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,337
Received Thanks: 505
Wäre nett wenn wer schreiben würde wie der Error zu fixen geht oder ob er gefixed ist? Oo
mfg. Crowley
Crowley™ is offline  
Old 02/19/2013, 18:06   #9
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 230
Quote:
Originally Posted by adeilson123 View Post
I already did it move into the position x e blocked the y, but
does not have a limit of x (left or right) for him to go, so it goes until the end of the flyff screen
As Lethal already said, override your CWndBase::SetWndRect and add something like this (Just for example, don't now the real var-names right now, and you should calculate the x-coord by substracting the width of the taskbar + the width of the new slotbar, to make it "floating" right, means you wont get problems with users using other resolutions then you do):
Code:
if(x < g_Neuz.GetWndRect().right - 500) return;
Unleashed! is offline  
Old 02/19/2013, 22:42   #10
 
elite*gold: 0
Join Date: Mar 2011
Posts: 125
Received Thanks: 241
Quote:
Originally Posted by Unleashed! View Post
As Lethal already said, override your CWndBase::SetWndRect and add something like this (Just for example, don't now the real var-names right now, and you should calculate the x-coord by substracting the width of the taskbar + the width of the new slotbar, to make it "floating" right, means you wont get problems with users using other resolutions then you do):
Code:
if(x < g_Neuz.GetWndRect().right - 500) return;
this is no longer necessary already for more than a week since I made him move properly
adeilson123 is offline  
Old 02/22/2013, 00:29   #11
 
elite*gold: 85
Join Date: Jan 2012
Posts: 1,143
Received Thanks: 876
Quote:
Originally Posted by adeilson123 View Post
this is no longer necessary already for more than a week since I made him move properly

Can you post your code here of your Expasionslot?
Rhyder` is offline  
Old 02/22/2013, 14:13   #12
 
elite*gold: 0
Join Date: Nov 2010
Posts: 117
Received Thanks: 29
Quote:
Originally Posted by jayjei14 View Post
Can you post your code here of your Expasionslot?
He won't, because, he, jopsi and me are using the same, and we won't post it right now, it's be on the next source update.


max982 is offline  
Reply



« Guild House Entering | WindowsApplication1 funktioniert nicht mehr »

Similar Threads
Problem beim Taskbar Design
12/10/2012 - Flyff PServer - Discussions / Questions - 9 Replies
#close pls
Problem mit der Taskbar [Grafik]
08/05/2012 - Flyff PServer - Discussions / Questions - 3 Replies
Ich hab ein neues Design aufgesetzt wo ich es dann ingame anshauen wollte kam das hier http://www10.pic-upload.de/04.08.12/x5kj6bmznoj.jpg weis einer wo der fehler liegt :confused: Vielen dank schon mal :handsdown:
windows7 problem mit der taskbar :D
03/21/2011 - Main - 4 Replies
hi epvp com ich habe mir vor ein paar tagen einen neuen pc gekauft der funktioniert wunderbar ;D aber ich habe das problem das egal wa sich mache egal ob bei,browsern,games,oder sonstige programe immer die taskleiste im bild ist das ist aber...
need some help with taskbar name
03/18/2006 - CO2 Main - Discussions / Questions - 0 Replies
can someone tell me how to rename the title of the program running on the task bar (ie it says "" right now and i would like to change it to something else it hopes a program i have will work...) also, would it mess up bots like n3w8y&#39;s...



All times are GMT +2. The time now is 00:30.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.