mIRC Home    About    Download    Register    News    Help

Print Thread
Named ID Tags for Dialogs (Woo!) #136126 23/11/05 02:53 AM
Joined: Oct 2005
Posts: 54
B
benjy355 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
It would be nifty if you could set IDs for Dialogs like... say
dialog omfgl33tdiag {
title "bleh"
size -1 -1 -1 -1
option dbu
...
check "Use l33t in Text", leetchk, ...
...
}
anyone with me? =D


Chat NSN
My Server: sleepystickman.ircxpro.com
Re: Named ID Tags for Dialogs (Woo!) #136127 23/11/05 03:58 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I think so...if I'm following you then that would've made the making of a dialog that I'm still working on easier, because, I'd be able to use a name, rather than a number to be associated with the different edit boxes.

If this is what you mean, then I'm for it.

Re: Named ID Tags for Dialogs (Woo!) #136128 23/11/05 04:33 AM
Joined: Oct 2005
Posts: 54
B
benjy355 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
yup, thats what i meant =D


Chat NSN
My Server: sleepystickman.ircxpro.com
Re: Named ID Tags for Dialogs (Woo!) #136129 23/11/05 04:43 AM
Joined: Oct 2005
Posts: 54
B
benjy355 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Opp and another idea for dialogs! a previewer =D
Instead of having to save everything and open it through a menu you can have an interactive preview! =D
that would be perfect for sizing and placing text and edit boxes ect.


Chat NSN
My Server: sleepystickman.ircxpro.com
Re: Named ID Tags for Dialogs (Woo!) #136130 23/11/05 04:43 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I've not checked through Khaled's mIRC todo list but in my opinion if it was a priority it would have been added when dialogs were first implemented.

-Andy

Re: Named ID Tags for Dialogs (Woo!) #136131 23/11/05 04:51 AM
Joined: Oct 2005
Posts: 54
B
benjy355 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
ehehe, i can always dream wink


Chat NSN
My Server: sleepystickman.ircxpro.com
Re: Named ID Tags for Dialogs (Woo!) #136132 23/11/05 06:05 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Quote:
Opp and another idea for dialogs! a previewer =D
Instead of having to save everything and open it through a menu you can have an interactive preview! =D
that would be perfect for sizing and placing text and edit boxes ect.

For this, I personally use Dialog Studio

Re: Named ID Tags for Dialogs (Woo!) #136133 23/11/05 04:18 PM
Joined: Jan 2003
Posts: 249
C
ClickHeRe Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
It's not there for the simple reason that it's not in the win32 API, controls have an HWND (Window Handle given by the system) and an optional ID which is a numerical value between 0 and 32767. It can't be named and API calls rely on the HWND, not on the ID. The ID only serves internal dialog purposes to retrace a control HWND based on the known ID (for puristes, the ID is in fact stored as the MENU handle in child controls because they don't have menus)

In all the case, Khaled would need to implement en axtra mapping layer between control name and ID which I think is unecessary. If you can't cope with arranging your IDs (manage some ranges if you need expandible space) so there is no conflict, then I gues you shouldn't create and manage dialogs.

I don't know what the limit is in mIRC for IDs as maximum value, but just so you know, mIRC dialog IDs start at 6000 and not at 1. You use 1 in the dialog table but it's really 6001. That would mean that the upper limit is 32767 - 6000 for the max ID that can be used in mIRC.

Re: Named ID Tags for Dialogs (Woo!) #136134 24/11/05 05:09 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
For the amount of coding that I do that uses dialogs, using numbers isn't a problem, I just simply said that I would've found it easier to be able to use names.

Re: Named ID Tags for Dialogs (Woo!) #136135 24/11/05 06:12 AM
Joined: Feb 2004
Posts: 206
D
Darwin_Koala Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
Can't you set variables to the numbers?

set %dialogCtrl.xxx 1
set %dialogCtrl.xxx 2
set %dialogCtrl.xxx 3

etc?


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!
Re: Named ID Tags for Dialogs (Woo!) #136136 24/11/05 06:55 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Probably, if I didn't require the actual numbers so that Dialog Studio would work properly with my dialog. As I said earlier, I use that to help with the layout, since I can see the layout as it's being coded.