Topic: Problem with radio buttons in dialogues (1 of 6), Read 31 times, 2 File Attachments
Conf: VEDIT Macro Language Support
From: Clive Pottinger
Date: Friday, August 25, 2006 03:24 PM

Hi folks. This is my first time on this message board, but if it is anything like the message board for Winbatch, I'm sure some guru out there will have a solution in no time.

I have run into an odd problem wherein it seems that if the 15th item in my dialogue box is a radio button, then it is always treated as the first radio button in a new group, whether I define it as such or not.

The attached files will show what is happening. This vdm is used to allow me open multiple log files on various servers that I have open as mapped drives. To see the problem, just execute the vdm and try to select each of the different "Clients" in turn. You will see that JKL_COMPANY acts as if it is the start of a new radio button group. Altering the number of sys, env, app and/or client entries in the ini file just shifts which button is the offending entry (it is always the 15th item). Note: if the 15th item is NOT a radio button (e.g. a text line) then the vdm operates as you would expect.

Any ideas? Thanks for taking the time look.

 
Opens log files on mapped drives
  Config file - place in user-mac folder

 


Topic: Re: Problem with radio buttons in dialogues (2 of 6), Read 27 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Saturday, August 26, 2006 12:10 PM

On Fri, 25 Aug 2006 15:24:00 -0400, Clive Pottinger wrote:

>Hi folks. This is my first time on this message board

Welcome on board!

>I have run into an odd problem wherein it seems that if the
>15th item in my dialogue box is a radio button, then it is
>always treated as the first radio button in a new group,
>whether I define it as such or not.


Yes, there seems to be something wrong within Dialog_Input_1().

To make it easier to show the problem I created a simple demo macro:

Dialog_Input_1(5,"`VEDIT Dialog Test`,
`The following Radio Buttons behave strange.`,
`The ones 1-10 are normal,
but at no. 11 there always begins a new group,
regardless the grouping command '.g'.`,
`.g()Radio1`,
`()Radio2`,
`()Radio3`,
`()Radio4`,
`.g()Radio5`,
`()Radio6`,
`()Radio7`,
`()Radio8`,
`.g()Radio9`,
`()Radio10`,
`()Radio11`,
`()Radio12`,
`.g()Radio13`,
`()Radio14`,
`()Radio15`,
`[&Ok]`,`[&Cancel]`",SET+APP+CENTER,0,0)


I suspect that is a remnant of earlier VEDIT versions where only 10
items were allowed per type.

Probably it's an easy-to-fix bug.
I don't know a workaround until then.


Christian

 


Topic: Re: Problem with radio buttons in dialogues (3 of 6), Read 29 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Saturday, August 26, 2006 12:43 PM

At 12:11 PM 8/26/2006, you wrote:
>>I have run into an odd problem wherein it seems that if the
>>15th item in my dialogue box is a radio button, then it is
>>always treated as the first radio button in a new group,
>>whether I define it as such or not.

I will add this to the bug list.

BTW - Tom and I have fixed several several other of the minor reported bugs in 6.15 and I hope to release an update soon.

BTW2 - By coincidence Christian and I will both be in San Francisco from Sept 24 - Sept 27. We are exhibiting our SpamStopsHere at the IT Security World Expo in SF.

Ted.

 


Topic: Re: Problem with radio buttons in dialogues (4 of 6), Read 27 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Saturday, August 26, 2006 01:42 PM

For the report: A more detailed version of the demo macro:



#4=2
#5=2
#6=2
#7=2
Message("Before:
")
.#4
.#5
.#6
.#7
Dialog_Input_1(4,"`VEDIT Dialog Test`,
`The following Radio Buttons behave strange.`,
`The ones 1-10 are normal, but at no. 11 there begins always a
new group, regardless of the grouping command '.g'.`,
`But that new group is only a phantom, the numerical registers are
set correctly.`,
`You can test that in group 3 (Radio 9..12): For example set Rb9 and
then Rb11 too. Having a look at the result shown after pressing the
OK button shows that only no.11 is set in reality.`,
`.g()Radio1`,
`()Radio2`,
`()Radio3`,
`()Radio4`,
`.g()Radio5`,
`()Radio6`,
`()Radio7`,
`()Radio8`,
`.g()Radio9`,
`()Radio10`,
`()Radio11`,
`()Radio12`,
`.g()Radio13`,
`()Radio14`,
`()Radio15`,
`[&Ok]`,`[&Cancel]`",SET+APP+CENTER,0,0)

Message("Result:
")
.#4
.#5
.#6
.#7



Christian

 


Topic: Re: Problem with radio buttons in dialogues (5 of 6), Read 32 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Sunday, August 27, 2006 05:12 AM

On Fri, 25 Aug 2006 15:24:00 -0400, Clive Pottinger wrote:

>Attached file:
>http://webboard.dundee.net:80/upload/IPSMultiLogOpen.vdm


Clive,

independent from your problem with Dialog_Input_1() let me suggest two
little things.


In your macro you are using:

File_Open("C:\\vedit\\user-mac\\IPSMultiLogOpen.ini")

It may be better to use the variable USER_MACRO here:

File_Open("|(USER_MACRO)\IPSMultiLogOpen.ini")



And you are evaluating the date as

// *** Get today's date in yyyymmdd format
Reg_Empty(11)
Reg_Empty(19)
Out_Reg(11)
Date(NOCR)
Out_Reg(19)
Reg_Type_Block(11, 12, 16)
Reg_Type_Block(11, 6, 8)
Reg_Type_Block(11, 9, 11)
Out_Reg(CLEAR)


One could think of the shorter alternative

Date(REVERSE+NOMSG+VALUE, '')

but unfortunately that produces an error message.


Finally the following one works and gives a date as YYYYMMDD:

Out_Reg(19)
Date(REVERSE+NOMSG+VALUE, 0)
Out_Reg(CLEAR)



Christian

 


Topic: Re: Problem with radio buttons in dialogues (6 of 6), Read 22 times
Conf: VEDIT Macro Language Support
From: Clive Pottinger
Date: Monday, August 28, 2006 11:10 AM

Thank you Christian. I have implemented both of your suggestions.

And thank you to you and Ted for taking the time to look at this and determine that it is a bug (and not that I've been drinking too much coffee).

Clive Pottinger
Hamilton, ON