AutoHotkey Community

It is currently May 27th, 2012, 10:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 264 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 18  Next

What should happen to this project?
Let's work on it, I'll help
Keep it alive
Let it go
I don't care
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: June 15th, 2007, 7:31 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
I've added Duplicate control.

would anybody be interested in conversion of plain old GUI scripts. the ones with defined positions as generated by SGUI? nothing fancy, just porting the function from there to here.

some views:
- the common control menu should apply to ALL controls. there's internal checking for individual controls built-in, so some can be ruled out there.

- when a selection is made for moving a group of controls, a listbox (just like SGUI) should be shown, where controls can be manually (de)selected. this is a must for selecting controls reaching out ofor just adjacent to border and for moving a group of controls while not moving a control in center.

by the way, is 'Gui, Font' coming?

Quote:
I updated the LilBuilder code with new grid approach so you can check it out in action

this looks good with no over the control blocks... but changing the grid size causes garbage (fixed by minimizing and restoring the gui).

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 7:44 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
quick question:

are the following supposed to be per-project or builder-wide settings:
Code:
LilBuilder_InitializeValues(){
  Project("_ShowToolBoxIconText", True)
  Project("_DockWindows", False)
  Project("_StartWithEmptyWindow", True)
  Project("_RestoreLastSession", False)
  Project("_LastSession", "")
  ToolTip_ShowTips4Pos(False)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Help getting started
PostPosted: June 15th, 2007, 8:57 pm 
Offline

Joined: August 31st, 2006, 2:57 pm
Posts: 64
I'm doing something wrong, obviously. This looks like a great development tool. I downloaded, and unzipped it to a new directory, then attempted to run the "Lilbuilder.ahk" file. I get the following dialog box.

Can someone let me know what I'm doing wrong?

Thanks,

Dave

===============================================
---------------------------
LilBuilder.ahk
---------------------------
Error at line 69 in #include file "C:\Documents and Settings\Dave\Desktop\Lil builder\wrapper\Dock.ahk".

Line Text: hwnd
Error: Default value not allowed with ByRef.

The program will exit.
---------------------------
OK
---------------------------


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 9:04 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
INSTALL latest ahk version please.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 9:36 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
Made some changes:
Quote:
'Duplicate Control' added to control menu.
Builder now saves/loads its settings in Settings.ini in its folder.
Added IniSettingsEditor() which shows a GUI for changing the builder options.
Added 'Restart' command to tray menu... great for debugging and devpt.


for some reason, i wasn't able to upload it on ahk.net ... was in a hurry, so upped it at http://www.mediafire.com/?czynmzm325y

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 11:13 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Merged your code into my repo. Thanks for it.

I looked at your code for duplicating a control. It only dublicates its content and size. I like its simplicity.
When you talked about duplicating controls, I was thinking of something more complex. I do not know if that is really wanted/needed. But I though it would be an "exact" dublicate, with all properties. But then it becomes kind of complicated. E.g. if a control is on a tab page, currently the duplicated control will only be added to the tab page when that tab page is set to accept newly created controls. If not, the control will get added to the gui.
I had in mind, that the control gets added to the same page, regardless of which or if a tab page is set to accept controls, just because its sibling belongs to it. And if a tab gets dublicated it gets duplicated with all its controls. But I guess you can see that this is getting kind of complex. But maybe I'm just thinking too complex.
Other things I wonderd:
- What happens with Label/VarName, one should the other has t be unique.
- Should the new control behind the initial control in the order of controls on the gui/tabpage, or just added to the end?

During sport I was thinking on how to apply some properties. I realized that some properties may only be applied when the control is created newly. I guessed Font is on of these props, but I just learned again that its not. But I think I will look into creating an exact duplicate with an customizable offset in X and Y and an option to remove its sibling. This would allow to apply props through new creation (by removing its first instance) or creating a pure duplicate.

Next thing I will look into is merging maj code into my repo.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 11:27 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
majkinetor wrote:
For instance WM_PAINT is not sent when you shrink window,[...]

BTW, I updated the code again. I fixed Properties so it doesn't spam with msgbox if you click on it, and it keeps the position you last put it. All changes are in inc\Properties.ahk. I think that this file should have another name as this is the prefix for PGUI. Perhaps I should change Properties wrapper to be named PGUI.

http://www.autohotkey.net/~majkinetor/- ... v0.6.5.rar
I checked the code. Am I right, that this version doesn't use WM_Paint yet. If so I'll just wait until you have found your best solution.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2007, 11:37 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
I never thought such a complex duplication would be needed... and it probably will not be used as much as the time would b spent on building it. i decidedly kept it so simple... as that's all i've needed so far.
yes, i forgot to add options to duplication. need to add that.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 12:03 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
New version 0.6.5 is out
I overwrite Maj version number, since it didn't seem a real release, just a test version.

Quote:
Rev 49 - Rajat
- 'Duplicate Control' added to control menu.
- Builder now saves/loads its settings in Settings.ini in its folder.
- Added IniSettingsEditor() which shows a GUI for changing the builder options.
- Added 'Restart' command to tray menu... great for debugging and devpt.
Rev 50 - Toralf
- added inc\IniFileCreator.ahk
- enhanced Settings.ini (hide LastSession)
- changed little how the ini values are read and written.
- added MMenu.html again with .css and .js, got damaged somehow.
Rev 51
- updated MMenu modul to r7
Rev 52 - Majkinetor
- fixed Properties so it doesn't spam with msgbox if you click on it, and it keeps the position you last put it.
Rev 53 - Toralf
- added Control_ApplyProp() And Gui_ApplyProp(), even though not used yet.
- renamed wrapper\Properties.ahk to wrapper\PGUI.ahk
- adjusted ScriptName to "Li'l Builder", it was "Lil' Builder"

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 12:08 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
toralf wrote:
- adjusted ScriptName to "Li'l Builder", it was "Lil' Builder"

i don't think its li'l anymore though. lol

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 12:11 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I like understatement. :) And what the hack, it is an historic name. M$ isn't that small (micro) any more too. :)

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 2:24 am 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
Why is the WinSet, Trans, 255 not in the function that creates the user gui? That was the problem with the control redrawing.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 6:24 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Oops, sorry I guess I was the one removing it, I didn't see a reason for it when I went through the code one day. Sorry about that. I'll add it again and add a comment.

Done: At line 19 of inc\Gui.ahk I'll added
Code:
  WinSet, Transparent, 255, ahk_id %GuiHWND%             ;avoid window redrawing problems for grid
Does that solve the problem or redrawing for users? Please give feedback! Specially maj.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 11:51 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I don't see any reason why that would solve anything. The LilBuilder behaves the same in latest version like before

GRID problem is much more complex then I thought. I litteraly tried everything, and picture in the background behaves the best apart from the fact that it will be hard to sync it with Tab (if it is fixed so doesn't go bellow the image)

I wonder how other IDE's implement this feature....

First thing I noticed is that its never line grid but always dot grid. Perhaps dots are there for a reason.

Now, I am thinking about drawing dot per dot. Combined with update region of WM_PAINT this might be fast enough. Dots will not be put over controls ofc, unless control is Tab....

Again, pic in the background is probably the best solution, if we can make it work.

2Toralf
We must see what takes focus to PGUI, its very important. Now PGUI steel focus, and its hard to use F6 & F7 for grid. Acctually, you must click on gui title to use it. I think some thing you did with selector is the problem... I will also check it out myself, but keep that in mind, maybe you solve it in a pass...

Acctually, control moving and resizing and everything works superb (I like very much how you implemented multiresize), the only problem is activation spaming. I will see how that can be solved without loosing already well evolved selector. Thats why Picture was there initialy on the User gui, I tried to use control as a selector...

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2007, 12:27 pm 
Great work! Now it works on Win2k too (it didn't in previous versions). 8)

Only the HLink control doesn't seem to work on Win2k. :?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 264 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 18  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333, XX0 and 25 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group