Wish Double Click on a view in the Designer

trepdas

Active Member
Licensed User
Longtime User
it would be really cool if a double click on a view will take me straight to the code (if existing or if not or both) just like the vb6 does.



Sub View_Click
[cursor waiting]
End Sub

is there any way to do that?
any extra library?
 

Peter Simpson

Expert
Licensed User
Longtime User
This isn't something that a library can magically add, it's something that the developer will have to add into the designer code.

Sounds interesting though, but you soon get used to not having that feature...
 

trepdas

Active Member
Licensed User
Longtime User
and still, once getting used to , you start to wonder how come you managed so far without it...(I'm coming from the vb6 platform)

but of course, not critical.

 
Last edited:

Peter Simpson

Expert
Licensed User
Longtime User
@Erel @trepdas is talking about double clicking on a view and then the B4A IDE will popup in front of the designer in the correct activity with a cursor in the correct sub for the view that you just double clicked on. Basically the same thing that happens when you double click on a button in VB.
 

LucaMs

Expert
Licensed User
Longtime User
But you get the default event routine, then you must change it, if you want a different one.
 

LucaMs

Expert
Licensed User
Longtime User
When you create a vb form you double click on a button and an event is created... where? In the code module OF THAT form.

When you create a b4a layout, you can load this layout where you need, in a panel which can be an item of a customlistview, for example.

I mean... there is a big difference!
 

Peter Simpson

Expert
Licensed User
Longtime User
I understand. However there is already a very simple way to add events declarations (not limited to a "default" event). B4X isn't a VB clone.

I completely agree 100%

But you get the default event routine, then you must change it, if you want a different one.

I know that, you're saying that to the wrong person

...and the layout is not strictly related to one activity.

I will not say what I said above I'll think of something new to say

Yes that's true, but you should be telling that to @trepdas and not to myself, and you need to watch the usual suspects
 

trepdas

Active Member
Licensed User
Longtime User
Right click on the view -> Generate -> choose whichever event you like:

in the above example , it is good only upon creation (in the first time).
if I repeat and "regenerate" a member which was already declared - then, it would be
nice if the cursor in the IDE will still wait for me in : ...
sub Button1_Click
[here]
End Sub

(I mean even if the sub already exists)


I think that a feature like this will dramatically improve navigating within my code...
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…