Visual Designer feature Request 2

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Visual Designer feature Request 2

Post by Num3 »

Eh, eh...

I would like Visual Designer to trim up constant naming when generating
source code, so this doesn't happen:

Now

Code: Select all

Enumeration
  #Radio_2
  #Radio_3
  #Radio_5
  #Radio_7
  #Radio_9
  #Radio_11
  #Radio_13
EndEnumeration
With Feature

Code: Select all

Enumeration
  #Radio_1
  #Radio_2
  #Radio_3
  #Radio_5
  #Radio_4
  #Radio_7
  #Radio_6
EndEnumeration
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Err, what happens, if you delete a Radiobutton after you started writing
your program?
All numbers get changed? Program screwed?

Timo
quidquid Latine dictum sit altum videtur
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

This happens when you copy paste gadgets around....

It will not follow the numering, if you copy #Radio_2, it will not paste
#radio_3, same aplies to all other gadgets.

And even if you create every gadget, it will skip numbers from time to time :P

When you delete a gadget and later on create another one it will skip the deleted gadget number...

It's kind of a nag when you have 4 radio buttons, and they do not follow a sequencial numbering...
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Num3 wrote:This happens when you copy paste gadgets around....

It will not follow the numering, if you copy #Radio_2, it will not paste
#radio_3, same aplies to all other gadgets.

And even if you create every gadget, it will skip numbers from time to time :P

When you delete a gadget and later on create another one it will skip the deleted gadget number...

It's kind of a nag when you have 4 radio buttons, and they do not follow a sequencial numbering...
I would like the VD to tap into my Cerebral Cortex and read my mind.
So that it knows exactly what I need it to do... :twisted:

Maybe I can work something up with the RS 232 com lib..

:lol:

- np
KuschelTeddy82
New User
New User
Posts: 9
Joined: Thu Jul 10, 2003 3:13 pm
Location: Germany

Post by KuschelTeddy82 »

The best ist a menu item 'trim gadget numbers' or something, where you can manually trim them all. I think it's not good at all, when you leave the predefined numbers. Better rename them to a word which describes the gadget. Eh, it's more easy to find gadgets in the code :wink:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

KuschelTeddy82 wrote:I think it's not good at all, when you leave the predefined numbers. Better rename them to a word which describes the gadget. Eh, it's more easy to find gadgets in the code :wink:
Yes, this is how VD should be used....
I remember the initial goal was to develop a simple form editor....and just generate the minimum code to display this form...
If I see wat functions i'm working on now.....
Post Reply