AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

:: SmartGUI Creator ::
Goto page Previous  1, 2, 3 ... 33, 34, 35 ... 38, 39, 40  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
AGU
Guest





PostPosted: Fri Sep 01, 2006 6:45 pm    Post subject: Reply with quote

Quote:
You it help, if ...
I think you meant "Would it help, if ..." or do you expect me to do s.th?

adjustable distance would be good. But I think some fixed values between 1px to 5px would be enough, don't you think so? Maybe a little slider? There's definitely no need for an edit control and absolutely free values.
________________________
Cheers
AGU
Back to top
AGU
Guest





PostPosted: Fri Sep 01, 2006 6:46 pm    Post subject: Reply with quote

"absolutely free" in the sense of "user-defined". Just to clarify. Very Happy
___________________
Cheers
AGU
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Fri Sep 01, 2006 8:56 pm    Post subject: Reply with quote

Yes, you were right, I misspelled a lot in that post.
I will make a note on these snap grid.
I just looked at the code, it snaps every 10 pixel. The only way around that for now is to allow MicroEditing. I do not see a quick solution for it.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AGU
Guest





PostPosted: Fri Sep 01, 2006 10:27 pm    Post subject: Reply with quote

Ok, made some basic thoughts about it. We can maybe workaround this when SGUI provides different methods of moving controls. Well, I think I have to explain this. Wink

Holding Ctrl while moving a control would move it 5px-wise
Holding Alt while moving a control would move it 2px-wise
Holding Shift while moving a control would move it 1px wise

*braindump*
_______________________
Cheers
AGU
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Fri Sep 01, 2006 10:35 pm    Post subject: Reply with quote

moving by 1px is no snap movement, that is free movement.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Sat Sep 02, 2006 7:30 am    Post subject: Reply with quote

well the algorithm that calculates the current snap points can probably be easily modified to allow other snapping points beside 10, but the grid won't show the effect. just so that its clear.

and by the way, i think the current priority for me, for 4.1 would be to add support for Treeview controls. yeah, its support isn't added yet (don't know how nobody complained!).
_________________
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Sun Sep 03, 2006 9:14 pm    Post subject: Reply with quote

Just a *braindump* on the 'help line' (Führungslinie)

Would it be possible to adapt the vertical ruler script to let you create a line on top of your GUI draft?

Let's say you create a vertical ruler line with the exact dimensions of your GUI draft, place the line, the line stays in place and saves its x-value into a variable.
When you move your control, you would log the x-value of the mouse cursor/the left top corner of the control, and when the two x-values differ a certain amount it would automatically MouseMove to the saved x-value of the ruler line.

As said it's a rough guess. Mr. Green
________________________
Cheers
AGU
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Sun Sep 03, 2006 10:11 pm    Post subject: Reply with quote

I'll look into it when time permits. But maybe someone does it before me, we'll see.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AGU
Guest





PostPosted: Sun Sep 03, 2006 11:22 pm    Post subject: Reply with quote

btw. when do you guess will you be ready with the basic gui/new version?
___________________
Cheers
AGU
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Mon Sep 04, 2006 5:19 am    Post subject: Reply with quote

two or three weeks.

How many "help lines" do you think should be available? I guess minimum 4 (2 horizontal & 2 vertial). But that will not be enough to allign a complete array of controls.
But if the lines are unlimted it will be a lot of checking against all of them.

Wouldn't it be better to have these actions instead (you might know them from PowerPoint as well):
- align selected controls left/right/up/down
- make selected controls width/height equal
- distribute selected controls equaly horizontally/vertically
My feeling is that these actions are easier to implement and better to use then the "help lines" when it comes to arranging a big number of controls. Plus it would be more flexible. Helper lines could maybe still be available but without snap. What do you think?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AGU
Guest





PostPosted: Mon Sep 04, 2006 8:25 am    Post subject: Reply with quote

Quote:
Wouldn't it be better to have these actions instead (you might know them from PowerPoint as well):
- align selected controls left/right/up/down
- make selected controls width/height equal
- distribute selected controls equaly horizontally/vertically
This would be okay with me. Very Happy

Do you really think this would be easier to implement? Surprise me. Mr. Green
________________________
Cheers
AGU
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Mon Sep 04, 2006 8:35 am    Post subject: Reply with quote

AGU wrote:
Do you really think this would be easier to implement? Surprise me.
Yes, because this operation is outside of the move routine, where mouse positions are checked and controls moved. If I would have snap lines, in these loop all snap lines would need tobe checked (a lot of code, which will slow down movement/responsiveness).

But these extra actions would just loop over the selected controls, get their values, maybe sort and arrange them, calculate the new values, move the controls, done. That is pretty straight forward, doesn't include long or complicated loops, thus fast and shouldn't be that complicated at all.
There are only some things that need to be considered: Which value is the master value? Is it the first control in the selection? Is it the control with the highest/lowest value? Should the master value be an average of all values?
But even then there are ways around that by giving options.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Mon Sep 04, 2006 8:44 am    Post subject: Reply with quote

It's great that there is some real movement! Thx Toralf!

2 points:
+ Will it be possible to edit GUIs of existing scripts and save them without using all the settings and wroten lines of code?*
+ I would really like to see "Section" also available, because this is my absolut favorit way of arranging controls relative!**

I am looking forward to you first release!

Thalon

*: This is the main-reason why I build my script-GUIs still the manual way
**: The second main-reason *g*
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
SacredVault
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Mon Sep 04, 2006 9:01 am    Post subject: Reply with quote

Thanks Thalon,

The second point is planed.
The first point I do not understand. Please clarify.

To make it clear. In two or three weeks I plan to have a first prototype. Which will be more or less just a GUI. I do not know how much funtionality will be in that GUI. We'll see how much I can take from version 4. Over the time we (yes all of you) can help to add functions. Even if you do not write code, you can work out algorithms (not just giving an hint for a new feature), describe them clearly (!!!) (what comes in, what is exacty done, what goes out, when does it start, how is it triggered, what are the limitations, etc.), create icons for the button, etc.. Then I can code and implement them if you do not want to get into the code.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3652
Location: Belgrade

PostPosted: Mon Sep 04, 2006 9:09 am    Post subject: Reply with quote

Hi there

Is it possible for you to do following changes to SGC 4:

Selection, resize & movement of controls via mouse, like in all developers. It is not practical like this.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 33, 34, 35 ... 38, 39, 40  Next
Page 34 of 40

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group