AutoHotkey Community

It is currently May 25th, 2012, 7:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 347 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 24  Next
Author Message
 Post subject:
PostPosted: June 5th, 2007, 8:11 pm 
toralf wrote:
renamed several functions to reflect their purpose and to follow some standard, too lazy to post them all.
That's true !!! Just nine versions (0.0.5 to 0.0.12 and 0.1.0) in 5 days. You are sleeping !!!! :D :D :D
I do not even dare to imagine what that could have been if you had not been so tired, toralf...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 8:13 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
toralf, amazing work on last version.

Here, everything behaves flowlesly.

applaud

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 8:26 pm 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
1. You still can't delete a status bar control and then add another one...a tooltip pops up saying that a status bar control already exists
2. Inconsistent behavior: Sometimes, you have to click on a control a couple of times to delete it.

Those are the only things i've noticed so far.

multiselect works perfectly.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 8:30 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
2. Inconsistent behavior: Sometimes, you have to click on a control a couple of times to delete it.

Yes, this is because delete works apperently only when selector is active.
Dblclick control and you can delete it every time.

Quote:
. You still can't delete a status bar control and then add another one...a tooltip pops up saying that a status bar control already exists
Yeh, this is trivial error. Property is not removed when statusbar is deleted.

Only IE control can't get multiselected for some reason.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 8:48 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
2. Inconsistent behavior: Sometimes, you have to click on a control a couple of times to delete it.

If you remove NA in Selector.ahk
Code:
  Gui, 1:Show, x%x% y%y% w%w% h%h% NA

this will not happen.

Toralf will say if this have side effects.

_________________
Image


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

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
No it doesn't have side effect, but I will add a hotkey for the user gui group, that is better IMO. I have fixed more things in the delete routine. just wait some more minutes. :)

Statusbar delete will be fixed then too. Thanks to all for testing and giving feedback.

_________________
Ciao
toralf
Image


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

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Titan wrote:
could you at least tell me the names on the storage and retrieval functions?
There isn't any functionality yet. Just an open playground. But there will be (in next release) several functions that will return a list of control HWND. With these all controll data can be retrieved. I could add some menu item to the toolbox for export/import. They will basically do that then in a new function.
We (I) do not have an idea of how an XML should look like to reflect the internal structure. Here we do need your help.

_________________
Ciao
toralf
Image


Last edited by toralf on June 5th, 2007, 9:15 pm, edited 1 time in total.

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

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
majkinetor wrote:
Only IE control can't get multiselected for some reason.
I guess, because it doesn't return a CtrlHWND on creation.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 9:26 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
toralf wrote:
We (I) do not have an idea of how an XML should look like to reflect the internal structure.
Microsoft use XAML as the basis of WPF in the .Net 3 framework. I suggested something similar a while back. If you like it, tell me how to get values like control positions and type so I can make you a prototype function.

_________________
GitHubScriptsIronAHK Contact by email not private message.


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

Joined: March 15th, 2007, 4:10 am
Posts: 70
Choosing a web control from the toolbox does one of 2 things for me:
1. spams the gui window with 6 controls
2. creates the control and creates a ragrid

I can't get it to do either consistently, so I don't know what's wrong.

EDIT: Now, it creates a random number of controls: one time 2, the next four, the next 3 times it will create 1 (like it's supposed to). It seems pretty random.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 10:47 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
New Version 0.1.0 is out
Quote:
Rev 17
- renamed Gui_GetListOfAllControls() in Gui_GetAllCtrlHWND()
- added Control_GetParentGuiHWND() to return Gui HWND of gui the control is on. Useful when control is on Tab page
- added 4th parameter to dictionaries Project(), Gui() and Control() to clear a value (set to "")
- added hotkey for deletion of selction to user gui group
- added control prop for statusbar "StatusBarDeleted"
- changed: statusbars can get deleted and added later again, but only one per gui. (internally: marked as deleted and hidden)
- changed: statusbars can't get added to tab pages, only to guis
- fixed: Gui_RemoveControl() remove a control from the list in gui or tabs
- fixed: tab selection when adding a tab, current tab stays selected now
- new functions to return a list of HWND
+ Gui_GetAllCtrlHWND(), Tab_GetAllCtrlHWND(), Tab_Page_GetAllCtrlHWND()
+ Gui_GetAllCtrlHWNDWTabActive(), Tab_GetAllCtrlHWNDFromActivePages(), Tab_Page_GetAllCtrlHWNDFromActivePage()
- new functions to delete controls
+ Selector_DeleteControl(), Tab_DeleteItself(), Tab_Page_DeleteAllCtrl(), Control_Delete()
- improved multiselction, only controls on active tab pages get selected, but when tab itself is in selection, all controls on all tab pages are checked if in box

_________________
Ciao
toralf
Image


Last edited by toralf on June 5th, 2007, 10:52 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 10:49 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
mwharri wrote:
Choosing a web control from the toolbox
I know nothing about the wrapper of custom controls. I hope maj can help.

_________________
Ciao
toralf
Image


Last edited by toralf on June 5th, 2007, 10:51 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 10:51 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Titan wrote:
If you like it, tell me how to get values like control positions and type so I can make you a prototype function.
Thanks, I'll come back to that tomorrow. Good night AHK lovers.

_________________
Ciao
toralf
Image


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

Joined: June 5th, 2007, 3:41 am
Posts: 12
Location: Auckland, New Zealand
gosh, and all that happened while I was sleeping :D

sweet dreams 8)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 6th, 2007, 6:40 am 
toralf, hi again
Here are the results of the tests you requested in your post on Tue Jun 05, 2007 3:11 pm (using LilBuilder v0.0.12).

*** :cry: Update: I just noticed v0.1.1 is posted. I downloaded it and got the same results (the error in Controls.ahk). :cry: ***

First test: Changed Control.ahk to:
Code:
   StandardCtrls := ToolBox_StandardCtrls()
MsgBox, t=%Type% c=%Content% s=%SpecialOption% g=%GuiID%`n%StandardCtrls%
    if Type in %StandardCtrls%
Clicking on AHK controls [Label] brings up your msgbox with the following:
Your msgbox text wrote:
t=Text c=Text Control 1 s= g=
Text,Edit,ComboBox,Button,CheckBox,Radio,Picture,ListBox,ListView,TreeView,Tab,HotKey,GroupBox,DateTime,MonthCal,Progress,UpDown,Slider,StatusBar
and a dump of local variables while the msgbox is present gives:
Ahk Local Variables wrote:
Local Variables for Control_CreateNew()
--------------------------------------------------
Content[14 of 63]: Text Control 1
CtrlCnt[1 of 3]: 1
CtrlHWND[0 of 0]:
GuiHWND[4 of 7]: 2880
GuiID[0 of 0]:
PrevCtrlType[4 of 7]: Text
pwb[0 of 0]:
SpecialOption[0 of 0]:
StandardControl[0 of 0]:
StandardCtrls[145 of 259]: Text,Edit,ComboBox,Button,CheckBox,Radio,Picture,ListBox,Lis...
STYLE_GRIDLINES[0 of 0]:
STYLE_VGRIDLINES[0 of 0]:
TabCnt[0 of 0]:
TabPageHWND[0 of 0]:
Type[4 of 7]: Text
VarName[0 of 0]:
Then after dismissing the msgbox this AHK error window pops up:
Ahk Error wrote:
Error in #include file "D:\DownLoads\AHK\test\LilBuilder012\inc\Control.ahk": Max window number is 99. The current thread will exit.

Specifically: :Add

Line#
079: if (TabPageHWND := Tab_AddCtrl2Page())
080: Tab_AddControl2Page(TabPageHWND, CtrlHWND)
081: Else
082: Gui_AddControl(GuiHWND,CtrlHWND)
084: Return,CtrlHWND
085: }
088: {
---> 090: Gui,%GuiID%:Add,%Type%,%Options% HWNDCtrlHWND,%Content%
091: Return,CtrlHWND
092: }
095: {
096: Property := Control(CtrlHWND,PropertyName)
097: Loop,Parse,ValuesToRemove,,
098: Property := RegExReplace(Property, "\b" A_LoopField "\b")
099: Control(CtrlHWND,PropertyName, Property . NewValue)
and while this error message is active a dump of local variables gives:
Ahk Local Variables wrote:
Local Variables for Control_CreateControl()
--------------------------------------------------
Content[14 of 63]: Text Control 1
CtrlHWND[0 of 0]:
GuiID[0 of 0]:
Options[12 of 63]: x0 y0 vNew1
Type[4 of 7]: Text

**********************************************************************************
Second test: Restored Control.ahk to original and changed Toolbox.ahk to:
Code:
MsgBox, t=%Type% c=%A_GuiControl% g=%Toolbox_GuiID%
  CtrlHWND := Control_CreateNew(Type, GuiHWND)

Clicking on AHK controls [Label] brings up your msgbox with the following:
Your msgbox text wrote:
t=Text c=res\Std\Text.png g=2
and a dump of local variables while the msgbox is present gives:
Ahk Local Variables wrote:
Local Variables for Toolbox_OnClick()
--------------------------------------------------
ch[0 of 0]:
CtrlHWND[0 of 0]:
cw[0 of 0]:
GuiHWND[4 of 7]: 1628
SM_CXFIXEDFRAME[0 of 0]:
SM_CXSIZEFRAME[0 of 0]:
SM_CYCAPTION[0 of 0]:
SM_CYFIXEDFRAME[0 of 0]:
SM_CYSIZEFRAME[0 of 0]:
SM_CYSMCAPTION[0 of 0]:
Toolbox_GuiID[1 of 3]: 2
Type[4 of 63]: Text
ux[0 of 0]:
uy[0 of 0]:
Then after dismissing the msgbox this AHK error window pops up:
Ahk Error wrote:
Error in #include file "D:\DownLoads\AHK\test\LilBuilder012\inc\Control.ahk": Max window number is 99. The current thread will exit.

Specifically: :Add

Line#
078: if (TabPageHWND := Tab_AddCtrl2Page())
079: Tab_AddControl2Page(TabPageHWND, CtrlHWND)
080: Else
081: Gui_AddControl(GuiHWND,CtrlHWND)
083: Return,CtrlHWND
084: }
087: {
---> 089: Gui,%GuiID%:Add,%Type%,%Options% HWNDCtrlHWND,%Content%
090: Return,CtrlHWND
091: }
094: {
095: Property := Control(CtrlHWND,PropertyName)
096: Loop,Parse,ValuesToRemove,,
097: Property := RegExReplace(Property, "\b" A_LoopField "\b")
098: Control(CtrlHWND,PropertyName, Property . NewValue)
and while this error message is active a dump of local variables gives:
Ahk Local Variables wrote:
Local Variables for Control_CreateControl()
--------------------------------------------------
Content[14 of 63]: Text Control 1
CtrlHWND[0 of 0]:
GuiID[0 of 0]:
Options[12 of 63]: x0 y0 vNew1
Type[4 of 7]: Text


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 347 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 24  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: nightson, Retro Gamer, sks and 12 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