Jump to content

Recommended Posts

  • Replies 133
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

What about a notify message for slider control? :)

<{POST_SNAPBACK}>

I know the question will come. When I send the code to Jon I realize that I miss to implement the notify. I have a look :)
Posted

Are there any styles implemented with the sliders yet? Maybe something to make it vertical, or turn off the little black lines that appear along side it, or (looking at sndvol32 here) make the black lines appear on both sides.

Eagerly awaiting the notify stuff too. Looks great so far!

Posted

Are there any styles implemented with the sliders yet? Maybe something to make it vertical, or turn off the little black lines that appear along side it, or (looking at sndvol32 here) make the black lines appear on both sides.

Eagerly awaiting the notify stuff too. Looks great so far!

<{POST_SNAPBACK}>

the following style as define in the window API should work

; Slider

Global $TBS_AUTOTICKS  =  0x0001

Global $TBS_VERT  =  0x0002

Global $TBS_TOP  =  0x0004

Global $TBS_LEFT  =  0x0004

Global $TBS_BOTH  =  0x0008

Global $TBS_NOTICKS  =  0x0010

Global $TBS_NOTHUMB  =  0x0080

I don't know which ones can solve your problem :)
Posted (edited)

I wasn't sure if I should post this message in this thread, or this thread, but I decided on this one since it seems more official.

Okay, first things first, the update is great, I'm experimenting with the slider styles now. Heh, I wonder though, what the practical use of TBS_NOTHUMB (0x0080) could be.

I thought I should mention a couple things though (just trying to be helpful, don't want to sound like I'm complaining):

1. When you move the slider control with the mousewheel, it does not notify. It works fine if you click&drag, or if you move with the arrow keys.

2. Notify doesn't seem to work for Listview at all. I tried the example script in the CHM, and when I click in the listview object, I don't get the msgbox: "clicked." A notification for double-clicking a value in the listview would be handy, is that what this was supposed to do?

And a couple questions about listview:

1. Is there any way to allow the selection of the whole row? Like in this screenshot.

2. How can I delete a row in a listview? Or even clear the whole thing (actually remove entries, not just make them blank), then I could just repopulate from scratch. Hmm... just had a thought, I can GuiCtrlDelete the listview, and recreate it. That works too.

3. Is there anyway to read the text in a Listview? I tried something like this:

$listview = GuiCtrlCreateListView ("col1|col2|col3",10,10,200,150)
$item[0]=GUICtrlSetData($listview,"item1|col12|col13")

...etc...

Case $n = $button
   $index = GuiRead($listview)-1;
   MsgBox(0,"listview item", $index & ':' & GuiRead($item[$index]))

...etc...

But when it just returned a number, I realized that it wasn't reading a Gui object at all.

The method I can see myself using now is just storing the values in an array and then crossreferencing. Does anybody else have any ideas?

Edited by Saunders
Posted

Heh, I wonder though, what the practical use of TBS_NOTHUMB (0x0080) could be.

no real idea I just put the Windows doc info perhaps Valik has some idea.

1. When you move the slider control with the mousewheel, it does not notify.

I choose to notify only when the action is done

2. Notify doesn't seem to work for Listview at all. I tried the example script in the CHM, and when I click in the listview object, I don't get the msgbox: "clicked." A notification for double-clicking a value in the listview would be handy, is that what this was supposed to do?

true the click does not work because I cannot find a way to sort when clicking the column. Perhaps I need to think again about it

1. Is there any way to allow the selection of the whole row?

Look at the windows API doc perhaps some style

2. How can I delete a row in a listview?

Certainly useful but some difficulty to implement because the numbering of the row will chain. So previous Guictrlsetdata return will be no more true.

3. Is there anyway to read the text in a Listview?

No, you right just the row number is return it is user responsability to make the correspondance. Only Guiread return the row as you figure out

Thanks for your all good comments :)

Posted (edited)

Thanks for your all good comments :)

<{POST_SNAPBACK}>

Thank you for answering them so quickly.

Not sure where I could find the Windows API to look for styles of a listview, but I'll start Googling that right away. :)

Thanks again.

*Edit*

I found... something...

There's this page, which lists Extended List View styles and it contains the one I'm looking for, LVS_EX_FULLROWSELECT. And also through Google, I found this piece of source code which has a bunch of listview styles defined as constants.

So putting two and two together, I can surmise that the code for LVS_EX_FULLROWSELECT is 0x00000020...

But now I have to figure out how to apply that to the listview in AutoIt. I tried putting it in the style param, no luck. I tried putting it in the exstyle param, same thing.

Any ideas? To be totally honest, I'm way in over my head here.

Edited by Saunders
Posted

So putting two and two together, I can surmise that the code for LVS_EX_FULLROWSELECT is 0x00000020...

As it is an extended style you need to put it in the GuiCtrlCreateListView creation.

I will add it in the doc. :)

Posted (edited)

As it is an extended style you need to put it in the GuiCtrlCreateListView creation.

I will add it in the doc. :)

<{POST_SNAPBACK}>

You mean that you have to put it in the code on your end (AutoIt source code)? Or on my end (AutoIt script)?

Cus I tried this:

GuiCtrlCreateListView ("col1|col2|col3",10,10,200,150,-1,0x00000020)

And it doesn't work.

Something I noticed in the manual, for the styles of a listview, it shows some styles that are forced. Does this mean I can't disable them? Cus I wanted to turn off LVS_SINGLESEL (tried setting the style to 0x0000), but I can't seem to make it work. I also can't seem to take it out of report view.

Thanks so much for taking the time to answer and help with my questions. Hope I'm not being a bother! :)

Edited by Saunders
Posted

You mean that you have to put it in the code on your end (AutoIt source code)? Or on my end (AutoIt script)?

Cus I tried this:

GuiCtrlCreateListView ("col1|col2|col3",10,10,200,150,-1,0x00000020)

And it doesn't work.

Something I noticed in the manual, for the styles of a listview, it shows some styles that are forced. Does this mean I can't disable them? Cus I wanted to turn off LVS_SINGLESEL (tried setting the style to 0x0000), but I can't seem to make it work. I also can't seem to take it out of report view.

Thanks so much for taking the time to answer and help with my questions. Hope I'm not being a bother! :)

<{POST_SNAPBACK}>

True the LVS_SINGLESEL is force as mention in the doc Style so the change seems imposssible I will put it as default but not forced.

I will put no more force style so you can set your own

Posted

True the LVS_SINGLESEL  is force as mention in the doc Style so the change seems imposssible I will put it as default but not forced.

I will put no more force style so you can set your own

<{POST_SNAPBACK}>

Cool, thanks very much!
  • 2 weeks later...
Posted (edited)

Might be an odd question... but is it possible to add a control that's an internet browser window? Kind of like <iframe> for html?

And was it ever figured out how I could utilize that LVS_EX_FULLROWSELECT for ListViews?

Edited by Saunders
Posted

I noticed that up/down control don't notify... :)

Because I find useful this...I ask:

Would be possible a notify too? (When it's released up/down button)

Or this is a bug..? :)

Edit: Fixed typo

<{POST_SNAPBACK}>

I don't if it is possible to notify on the updown click. :D I have a look ;)
  • Administrators
Posted (edited)

That's odd, I fixed a bug in it a few days ago because it was crashing and I saw that it definitely was notifying... maybe I changed something else too.

Edit: Ah it was notifying internally but there was a line missing that should have got the message to the outside world. SHould be fixed next upload.

Edited by Jon
  • 3 weeks later...
Posted

I read somewhere before how tabs cannot be colored ( too much code). Sounds logical. But is it possible to have the default color from white to the cream color that classic uses?

This would help to solve color issues experienced between classic theme and XP theme. It would make labels look much better in having the same background color as the tab color. :)

Posted

Tab color changes from one theme to the next. I may need to find a registry entry if available to change the label colors to suit the tab color?

I found the key for themes on and off, but different xp themes are still a problem.

Control colors are perhaps the issue for me?

Here is classic theme pic with no coloring on the label.

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
  • Recently Browsing   0 members

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