forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SSTreeVw.dll BETA released
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
ACE
Valued Newbie


Joined: 05 Sep 2002
Posts: 34

PostPosted: Fri Mar 07, 2003 3:59 pm    Post subject: Reply with quote

of course there is a way to use hokeys with external glued controls

I didnt downloaded your dll, as my evaluation time of vds has ended like 1 or 2 months ago, but if i understand correctly you want to use the hotkeys defined in your vds script while you have a (dll ) control ( whatever control ) focused, right ?

Please download this file, and see if this is what you are looking for, it implements a TreeView control on a VDS dialog and it will work like a native vds control ( close ) you can use hotkeys like the menus or the buttons, Butt&on1, or even with hotkeys from vdskey.dll from Tommy without the "global" param. Even you can use the tab to jump to other controls, and still using the key index search on the control.

I cant compile a dll, as i mentioned above, so i make a .exe (slower than the dll) , first make a Dialog in vds, add hotkeys to menus , buttons run your script and run the exe. More instructions are in the readme file.

If this is what you need, please tell me so i can explain it more, if is not, please excuse me.

There is a drawing control at the left of the TreeView control, in the picture, you can draw with your mouse.

http://www.freewebs.com/vdscpp/release.zip

Thanks

Andres Carrera[/url]


Last edited by ACE on Fri Mar 07, 2003 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 4:13 pm    Post subject: Reply with quote

Hey ACE,

I'm always up for learning something. I would love to know how to cut out
the limitations that are mentioned earlier in this thread.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 5:36 pm    Post subject: Reply with quote

ACE wrote:
Quote:

Please download this file, and see if this is what you are looking for,


What file are you refering to ACE?

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 07, 2003 6:13 pm    Post subject: Reply with quote

Bill, when will the next update be? I'm anxious for the LCLICK
and DBLCLICK Smile

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 6:44 pm    Post subject: Reply with quote

Hey Garrett,

It's probably gonna be a few days before an update. I seem to have
developed a random little bug here. I can't seem to get the click events
to return correctly. I have implemented a CLICK event along with the
RCLICK event, but I believe I'm not gonna include a DBLCLICK event as
that makes it rather difficult in controling the TreeView controls behavior.

Please be patient all. I'd rather release this dll bug free rather than loaded
with all kinds of problems.

I haven't recieved much in terms of feedback as of yet. Did I do that good
already? Wink

Thanks again to all of you who use my dll's. Smile Mr. Green

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 07, 2003 7:19 pm    Post subject: Reply with quote

Well, we don't need double clicks on the on say the expandable folders,
just on the non-exanable items.

As for feedback, not sure what else I can say. It seems easy enough to
me to use, and it's working without error here.

One thing I haven't had the chance to try, is if I can update and item in
the tree without the tree itself closing or anything. Is that possible?

Oh, and is it possible to make one entry in bold text with the rest not bold?

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 7:49 pm    Post subject: Reply with quote

Try this Garrett. The TreeView's name is "TV1" in this example. In the
"treeview setItemText,..." command don't forget to include the items
ImageList index for the items image or the image will be removed from the
TreeView control. I didn't include them in this sample. The normal image is
the 1st parameter after "%%newText", and the selected image is the
2nd parameter after "%%newText" in the "treeview setItem,..." command.

Remember those are ImageList index numbers, not the actual image file.

Code:

:TV1RCLICK
  %%newText = @input(Change text,@treeview(itemText,TV1,@treeview(item,TV1)))
  if %%newText
    treeview setItem,TV1,@treeview(item,TV1),%%newText,,
  end
  goto Evloop



As far as selectively returning event, my main idea/purpose for writing
these extensions is to provide the easiest command/function interface for
VDS programmers while provding the most functionality. I will see what I
can do about checking to see if an item can be expanded or not. But I
believe in the end it will be the VDS programmers responsibility to deal
with those events accordingly.

Now, setting one item to bold text is not something that Windows has a
message or macro for, at least to my knowledge. However, I have seen it
done so there has to be a way to do it. I would like this feature myself, so
even if I have to create my own message/macro to achieve this effect, I
will. No promises though. I can't guarantee that I'll be able to accomplish
this task, but I will try. Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 07, 2003 8:23 pm    Post subject: Reply with quote

The bold text is not a serious need, just a "would be nice" thing Smile

For the click events, I have no problem if you make everything
clickable. It wouldn't take too much to check the items to see if it's
something I want to return info from. So whatever works best for
you. I'm just kind of along for the ride and appreciating what you
are doing here Smile But CLICK, DBLCLICK and RCLICK I believe are
essential for this element. Just having them in working order will be
wonderful.

Also, just a thanks for the menu dll also. I haven't had any problems
with that either.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ACE
Valued Newbie


Joined: 05 Sep 2002
Posts: 34

PostPosted: Fri Mar 07, 2003 8:35 pm    Post subject: Reply with quote

When i was uploading the file, vdsworld.com went down, a few hours ago, but here is the link, sorry for not posting the link before

http://www.freewebs.com/vdscpp/release.zip


About the font format and attributes, yes its easy to do, but you have to make an owner-draw control and grab the create, paint etc... messages and do your modifications. You can even have color, a diff fonts in each item, font size.


Andres Carrera
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Mar 07, 2003 8:56 pm    Post subject: Reply with quote

ACE wrote:
About the font format and attributes, yes its easy to do, but you have to make an owner-draw control and grab the create, paint etc... messages and do your modifications. You can even have color, a diff fonts in each item, font size.


Andres Carrera


Actually you don't need to sub-class the Treeview if you just want to change the font for the labels. Just send the Treeview a WM_SETFONT message... As far as changing the color of the text that you will need to sub-class the control...Wink You can prob change the fonts for individual items by getting the Window handle for the Item's edit box and sending it the WM_SETFONT message... You can get the handle of the edit control by sending a TVM_GETEDITCONTROL message to the Treeview but I don't know if this will work Bill Question

_________________
Home of

Give VDS a new purpose!


Last edited by vdsalchemist on Fri Mar 07, 2003 9:06 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 8:58 pm    Post subject: Reply with quote

WM_SETFONT sets the font properties for the whole treeview. Am wanting
to set say one item to BOLD text, not the text in the entire control.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Mar 07, 2003 9:00 pm    Post subject: Reply with quote

Did you edit you post MindPower?

Didn't see the get the items Edit control and send it WM_SETFONT when I
originally read your post. Embarassed

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Mar 07, 2003 9:13 pm    Post subject: Reply with quote

Quote:
Last edited by mindpower on 07 Mar 2003 05:06 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
ACE
Valued Newbie


Joined: 05 Sep 2002
Posts: 34

PostPosted: Fri Mar 07, 2003 9:36 pm    Post subject: Reply with quote

No, the item structure doesnt have a font attrib. You cant just grab a item handle and send a SETFONT message to it. Its the parent window ( in this case the TreeView control ) that is in charge of how it draws their childs items , so you have to make it Owner_Draw to change itms individually. I made this some time ago, i can send you if you need ( and if i can find it, or is not deleted ) an example somewhere, but its made in Cpp and MFC.

Andres Carrera
Lioric
Back to top
View user's profile Send private message
ACE
Valued Newbie


Joined: 05 Sep 2002
Posts: 34

PostPosted: Fri Mar 07, 2003 10:23 pm    Post subject: Reply with quote

As for the Bold Items, i think you just can set the Bold parameter (TVIS_BOLD) in the member (state) of the item structure.

Andres Carrera

Lioric
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group