[TIP] Reusing Commands in Visual Mobile Designer

Programming for mobile device is hard. There are resctricted resources. You can save a few bits of memory with reusing commands. Every variable counts ;)

All the commands that you've added to a MIDlet are visible under node Commands in Inspector. You can reuse a command on particular screen in this way:
  1. Expand the screen node (e.g. form1) in Inspector
  2. Right click the Assigned Commands
  3. Select a command from Add | yourCommand
  4. you can even add new command


Lookt at the picture on right. It's self descriptive.

Unfortunatelly, there isn't a simple visual way how to do.
I proposed RFE about a pool with all reusable components like fonts, tickers, commands, images for your MIDlet. It could be visible somewhere and you'd just drag'n'drop the reusable components form the pool in the same way like it works with palette. They (developers) closed it :( Reason: "this could result into the FlowDesigner in "too-many-components-on-the-screen" state". Hehe, I reopen it again ;) It could be a new category in palette and it would be even more obvious. What do you think?
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is the main channel to share news, tips and other stuff related to my work. Sometimes you can find even personal stuff. Enjoy your reading...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
news
Blogroll

No bookmarks in folder

OldNews
MyTrash
NavBar
NetBeans
LinksToBeExpanded