Jump to content

GUICreate


Bert
 Share

Recommended Posts

I'm on my blackberry, so my ability to post is limited.

Is there a reason why a scrollbar won't work with GUICreate? It says it supported in the help file, and you can see the scrollbar. If you make, for example, a button that is on purpose outside the edge of the bordor, the scrollbar won't work. Am I missing something here, or am I coding it wrong?

Link to comment
Share on other sites

I'm on my blackberry, so my ability to post is limited.

Is there a reason why a scrollbar won't work with GUICreate? It says it supported in the help file, and you can see the scrollbar. If you make, for example, a button that is on purpose outside the edge of the bordor, the scrollbar won't work. Am I missing something here, or am I coding it wrong?

Documentation is just what MS wrote in this specific case the scrolling bar need to be managed by the programmer. I am not sure it is easy to implement the scrolling perhaps Larry or some other Windows dev people. :P
Link to comment
Share on other sites

Documentation is just what MS wrote in this specific case the scrolling bar need to be managed by the programmer. I am not sure it is easy to implement the scrolling perhaps Larry or some other Windows dev people. :P

Is there any plan to fix the bug?

Link to comment
Share on other sites

It is not a bug. a lot of code should be written to have scrolling of the control drawn on a window.

I think I will remove the style WS_HSCROLL and WS_VSCROLL from the doc to avoid misunderstanding of those styles

:P

I really hoped this function would be corrected so it would be supported. I frequently run into this problem, for the amount of information I need to show is more than the GUI can handle. In the past I have used tabs or child windows as a workaround. Currently I have a project in mind that really needs this ability to be most effective.

I have a list of applications (300+) that I would like to have listed along with a checkbox becide each app. I would check the ones I would like to install, click run, and let all the scripts do their thing. I could do it with tabs, but it would force the program to be much more complex. This being from a user's prespective, and from a coding aspective.

Link to comment
Share on other sites

Currently I have a project in mind that really needs this ability to be most effective.

Is there a way to have just a scrolling list, from which you can select multiple items? I know windows supports this type of selection. MyUninstall does the opposite by showing a list of all installed apps and letting you pick individual apps from the list to uninstall. Or, you can select the entire list with Ctrl-A...

I'm working on a control panel that creates a seperate button for each computer in an Active Directory Operating Unit. These can vary from 3 to more than 40. Perhaps you could do something similar with checkboxes, where the checkbox label was the name of the software to be installed? You could fit a lot of these into one screen...

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
Share on other sites

I really hoped this function would be corrected so it would be supported. I frequently run into this problem, for the amount of information I need to show is more than the GUI can handle. In the past I have used tabs or child windows as a workaround. Currently I have a project in mind that really needs this ability to be most effective.

I have a list of applications (300+) that I would like to have listed along with a checkbox becide each app. I would check the ones I would like to install, click run, and let all the scripts do their thing. I could do it with tabs, but it would force the program to be much more complex. This being from a user's prespective, and from a coding aspective.

Scrolling bar are associated with a control as edit not with a window. so you need to use a control allowing checkbox/scrolling.

for the 300+ you certlainly can use the listview or the treeview control with a style displaying checkbox for each item. Holger is the specialist. perhaps some example in the help or in the "scripts and scraps" forum. :P

Link to comment
Share on other sites

  • 2 weeks later...

It takes still some days.

I still working on a new function GUIRegisterMsg($MsgID, "function").

Then there are 4 available macros during the function:

@GUI_WinHandle, @GUI_MSG, @GUI_WPARAM, @GUI_LPARAM.

At the moment I have only 1-2 hours in the evening to do something but not every day.

Right now I have some troubles with an ownerdrawn created button.

The painting with my own WM_DRAWITEM-function (a lot of lines :P ) works but I have a strange effect.

I registered also WM_COMMAND and strange is when I click the button I get my wm_command-function but the msg-ID in itself is the one from WM_DRAWITEM.

So I have to solve this strange things - tried the last 2 days...

So the result is when it's finished and maybe implemented in one of the next (not so far) betas then you could register this WM-messages and write your own function for it.

I made it so that if you not "Return" a value then the default internal Autoit-function will also be called - if there is something.

I will make an example of this WM_SCROLL-stuff and test it with these function-things.

So long

Holger

Link to comment
Share on other sites

Sound good Holger. No need to rush because I ended up using a combobox instead of filling up the GUI with edits :-)

I seem to remember a similar topic a while back and the end answer was to use a slider bar.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • 4 months later...

It takes still some days.

I still working on a new function GUIRegisterMsg($MsgID, "function").

Then there are 4 available macros during the function:

@GUI_WinHandle, @GUI_MSG, @GUI_WPARAM, @GUI_LPARAM.

At the moment I have only 1-2 hours in the evening to do something but not every day.

Right now I have some troubles with an ownerdrawn created button.

The painting with my own WM_DRAWITEM-function (a lot of lines :D ) works but I have a strange effect.

I registered also WM_COMMAND and strange is when I click the button I get my wm_command-function but the msg-ID in itself is the one from WM_DRAWITEM.

So I have to solve this strange things - tried the last 2 days...

So the result is when it's finished and maybe implemented in one of the next (not so far) betas then you could register this WM-messages and write your own function for it.

I made it so that if you not "Return" a value then the default internal Autoit-function will also be called - if there is something.

I will make an example of this WM_SCROLL-stuff and test it with these function-things.

So long

Holger

Hi Holger!

Any news regarding this? :P I just run into the same problem.. I simply need to create GUI with multiple Edit controls (created dynamically with variable number of edits), which needs to be scrolled on the GUI. The solution for me would be to replace the edits with editable ListView (as discussed here). Unfortunately, there is currently no known way how to select/edit cells in other listview columns than first one, so it's not very useful for my needs :D

Link to comment
Share on other sites

Hi Holger!

Any news regarding this? :D I just run into the same problem.. I simply need to create GUI with multiple Edit controls (created dynamically with variable number of edits), which needs to be scrolled on the GUI. The solution for me would be to replace the edits with editable ListView (as discussed here). Unfortunately, there is currently no known way how to select/edit cells in other listview columns than first one, so it's not very useful for my needs :D

For big number of controls on GUI use Tab Control with Tabs.

Link to comment
Share on other sites

For big number of controls on GUI use Tab Control with Tabs.

Thanks for suggestion, but that's not a solution in my case. I simply need list of inputs (3 of them in a row) and unspecified number of "rows". Using tabs will not help in that case. And the same apply for ListView, which is not useful here as well. But nevermind, I just found at least two possible workarounds. None of them is perfect, but I hope, one of them will work for my needs. Though the ability to scroll a defined group of objects will be a great feature..
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...