Browsing this Thread:
1 Anonymous Users
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2005/8/17 15:57 From Germany
Group:
Registered Users Posts: 1322
Level : 31
HP : 152 / 760
![]() |
Please, show us the line of code which you use to move your window.
Posted on: 2006/3/12 11:16
|
||||||||||
|
_________________
AROS - Make code, not war
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I can move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2006/1/26 20:07 From Poland/Belchatow || Polska/Be?chatów || Look on Frappr
Group:
Registered Users Posts: 168
Level : 12
HP : 0 / 275
![]() |
sorry ;P
Now i know what i doing wrong :] The window cannot be moved, if there is Title after. [in static] But in dynamic version this dosent work:
Posted on: 2006/3/12 12:22
Edited by falemagn on 2006/3/18 3:25:56
|
||||||||||
|
_________________
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I can move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2005/8/17 15:57 From Germany
Group:
Registered Users Posts: 1322
Level : 31
HP : 152 / 760
![]() |
> #ifndef XILICZNIK
> int x=0; > #define XILICZNIK > #endif Do you want to increase x every time your hook is called? Then you should just write: static int x=0; > x++; > SetAttrs(noweOkno[x], MUIA_Window_LeftEdge, 2*x, > TAG_END); > noweOkno[x] = MUI_NewObject (MUIC_Window, > MUIA_Window_Title, (LONG)"Kolejne okno", > MUIA_Window_RootObject, What do you want to do? You are trying to move a non existing window and then you are creating it. Your are calling the hook in a loop. This means you are creating a new window every time you call the hook.
Posted on: 2006/3/12 14:03
|
||||||||||
|
_________________
AROS - Make code, not war
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I can move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2006/1/26 20:07 From Poland/Belchatow || Polska/Be?chatów || Look on Frappr
Group:
Registered Users Posts: 168
Level : 12
HP : 0 / 275
![]() |
Quote:
Yes this program is doing that, but even if i put the moving function after the creating the window this dosent work.
Posted on: 2006/3/13 11:24
|
||||||||||
|
_________________
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2006/1/26 20:07 From Poland/Belchatow || Polska/Be?chatów || Look on Frappr
Group:
Registered Users Posts: 168
Level : 12
HP : 0 / 275
![]() |
Please test that, and show me the right way.
Posted on: 2006/3/13 11:25
|
||||||||||
|
_________________
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2005/8/17 15:57 From Germany
Group:
Registered Users Posts: 1322
Level : 31
HP : 152 / 760
![]() |
I don't know very much about MUI.
But when you look in the MUI autodocs for the window class: MUIA_Window_LeftEdge -- (V4 ) [I.G], LONG "I" stands for "init" and "G" stands for "get". There is no "S" for set. This means you can't change the LeftEdge attribute with SetAttrs. I don't know if there is another way. I have decreased the value of tyleOkienekZostanieUruchomionych because *noweOkno[1024] can only store 1024 windows.
Posted on: 2006/3/13 13:43
|
||||||||||
|
_________________
AROS - Make code, not war
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2006/1/26 20:07 From Poland/Belchatow || Polska/Be?chatów || Look on Frappr
Group:
Registered Users Posts: 168
Level : 12
HP : 0 / 275
![]() |
Yes you have right i forgot to change that *noweOkno[1024];
The dynamic move in Zune, mayby can be made with Intuition?
Posted on: 2006/3/14 4:02
|
||||||||||
|
_________________
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2005/8/17 15:57 From Germany
Group:
Registered Users Posts: 1322
Level : 31
HP : 152 / 760
![]() |
Quote:
You can query the window address with MUIA_Window_Window and then use Intuition functions. I don't know if this is really allowed. I think moving is possible because the FKey commodity does it, too.
Posted on: 2006/3/18 1:59
|
||||||||||
|
_________________
AROS - Make code, not war
|
|||||||||||
|
|||||||||||
|
|
Re: [Zune] I cant move my window! |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2006/1/26 20:07 From Poland/Belchatow || Polska/Be?chatów || Look on Frappr
Group:
Registered Users Posts: 168
Level : 12
HP : 0 / 275
![]() |
Yes the dynamic move is possible in Zune, but that example [FKey] are using something, that in my case is not allowed.
In FKey is used active window. In my program i open windows with noactive option, because when is opened with active user cannot do something else or is hard to do something.
Posted on: 2006/3/18 11:34
|
||||||||||
|
_________________
|
|||||||||||
|
|||||||||||
You cannot start a new topic.
You can view topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.









