![]() |
#1 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
Attribs Maker
OK, i've made an Attribs Maker if u find any bugs please report them. This one can't make windows menu items as yet but it will be soon but it allows u to have mulipage menu etc. One things i like is that if u dont want to complete it in one day u can save it in tcdam format(The Cool Dude's Attribs Maker) and continue later!
|
![]() |
![]() |
![]() |
#2 |
Senior Member
|
ok, first: remove MessageBox that appears on startup (lot of people, including me, hates NAG screens, if you want to put some credits do that in about window...),
second: when you click cancel in save dialog it's saves file! (to fix this check for E******mber = cdlCancel before saving file) third: why the hell you are declaring ConfigItem as ConfigAttribute?? i mean, when you want to have separate submenu for e.g. Drawers and put some items in it, code will be: code: but, this is what your tool generate: code: i hope you'll fix this soon... cheers, krcko |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
will do that. + thanks for the shell thing the next version(being made) will associate .tcdam files! it works! but since u spotted this wont publish it now but next time thanks a lot.
|
![]() |
![]() |
![]() |
#4 |
Senior Member
|
np
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
|
one more thing:
it seems that your tool can't generate separators?!? if you noticed in my Menu Maker when you set - as a caption it generates code for separator... |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
Update
OK heres the latest update it associates .tcdam files with the Attribs Maker. It doesnt create a ConfigAttribute instead of a ConfigItem. krckoorascic, thanks for that i'll do that too. If anyone suggestions, bug reports, etc then post it here. After all this is for you.
|
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
Update
Now makes seperators too. just put "-" in the Caption and it will generate the code for that.
krckoorascic, 1 more thing - how did you make the test menu? i know u make a menu with visible unchecked and then make sub menu(arrays) then what do you do? thanks |
![]() |
![]() |
![]() |
#8 |
Senior Member
|
very good job!
![]() about test menu: i didn't used that metod (to lame ![]() ![]() these are functions i used for generating menu: code: download API-Guide from www.allapi.net if you're not fimiliar with these api's and this is code which generates menu: code: hope, this helped ![]() cheers, krcko |
![]() |
![]() |
![]() |
#9 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
have saved it will tell u about the test menu once i try that out. thnks a lot.
|
![]() |
![]() |
![]() |
#10 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
sorry not that great @ vb pls explain each api 4 me.
|
![]() |
![]() |
![]() |
#11 |
Senior Member
|
:D
ok, Declare Function CreatePopupMenu Lib "user32" () As Long this one creates a popup menu ;) use it like this: code: now myMenu holds handle of new menu, but before you show it you have to add something to it ;D Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long with this api you add items to your menu: code: myMenu is handle of menu on which you're adding item, MF_STRING is a constant, here are some constants you'll maybe need: code: 0 is a value which will be returned when is clicked on that menu item (in this case you may put all zeros, cuz you only want to show menu) and "Some text" is a text that will be shown in menu ;) to add separator use this code: code: just simple as that :D Declare Function TrackPopupMenuEx Lib "user32" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal X As Long, ByVal Y As Long, ByVal HWnd As Long, ByVal lptpm As Any) As Long this api shows your menu, use this code code: for that you'll need these constants: code: myMenu is a handle of menu you want to show TPM_BOTTOMALIGN Or TPM_RETURNCMD Or TPM_RIGHTBUTTON are some flags (you may leave them alone) Pt.X and Pt.Y are x and y positions on screen where you want your menu to popup (i used here POINTAPI structure, you'll see below) frmMain.HWnd is a hande of a window on which you want to show this menu :p Declare Function DestroyMenu Lib "user32" (ByVal hMenu As Long) As Long with this you delete menu from memory (you MUST do this) use like this: code: Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long this one returns cursor position on screen in POINTAPI strutcure: code: this is how you add submenus: first create whole submenu (use CreatePopupMenu and AppendMenu, just like i sad above) and then add it (that submenu) to your "parent" menu like this: code: myMenu is a handle of parent menu MF_STRING Or MF_POPUP defines this like submenu subMenu is a handle of menu you want to add as submenu and "Submenu text"... you now what is it :D hope this helped... p.s. have you downloaded API-Guide? you have this explained much more better in it :D |
![]() |
![]() |
![]() |
#12 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
thanks a lot i'm sure this will help!
|
![]() |
![]() |
![]() |
#13 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
Update
Now it has a test menu and one more bug fixed: when u move(up or down) a attrib only the caption moved not the name so the caption had the name of the attrib that was there before it so all the names went wierd. now that doesnt happen.
|
![]() |
![]() |
![]() |
#14 |
Senior Member
|
excelent!
but, one more thing you should fix ![]() i noticed that your shell command "Open With Attrims Maker" is not a default action for .tcdam files (my bad, i give you a code that only adds items to context menu), to make your action be a default, use something like this (using my reg class i sent you): code: |
![]() |
![]() |
![]() |
#15 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
thanks i just realized that when my tcdam file opened with another app.
|
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
Update
OK fixxed that. Heres the update. can other users give reviews too? cause krckoorascic gives me all the coding probs if someone dowsnt like something else then i can fix that too.
|
![]() |
![]() |
![]() |
#17 |
Senior Member
Join Date: Mar 2002
Location: Kingdom of Amber
Posts: 281
|
Seems to be useful.... But how do you use it?
|
![]() |
![]() |
![]() |
#18 |
Senior Member
|
yeah, tcd you should write some help
![]() and one more bug cought ![]() when you click on about you got a file not found error how to fix: don't use LoadPicture on frmAbout_Load load picture in picture box in design-time (or load it from resource) |
![]() |
![]() |
![]() |
#19 |
Senior Member
Join Date: Jul 2004
Location: hell
Posts: 343
|
will make. thanks!
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|