Source language: Translate to:

nbInterface improvement object selector

Post your suggestions for future versions of NeoBook

Moderator: Neosoft Support

nbInterface improvement object selector

Postby HPW » Tue Feb 19, 2008 1:05 am

It would be nice to have a generic one object-type only selector.

What nbInterface( 8, ...) does for rectangle only, should do a extended nbInterface( 1, ...)

Code: Select all
VAR Data         : PCHAR;
    MyObjectType : STRING;
    MyObjectName : STRING;

BEGIN
  MyObjectType := 'ObjectType=14';
  SetStr( Data, MyObjectType );
  nbInterface( 1, Data );
  MyObjectName := StrPas( Data );
  FreeStr( Data );
END;


So currently DATA can be nil or an objectname.
When the DATA starts with the key-string ''ObjectType=' it should only show objects with the matching type-number.

For example this would allow to select 'WebBrowser' only.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Neosoft Support » Tue Feb 19, 2008 12:15 pm

Good idea! I will add it to the list.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5603
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby HPW » Fri Feb 22, 2008 12:23 am

You should then also consider the possibility to allow more than one objecttype:

Code: Select all
VAR Data         : PCHAR;
    MyObjectType : STRING;
    MyObjectName : STRING;

BEGIN
  MyObjectType := 'ObjectType=14|22';
  SetStr( Data, MyObjectType );
  nbInterface( 1, Data );
  MyObjectName := StrPas( Data );
  FreeStr( Data );
END;


This would allow to select webbrowsers and flash-objects.

Then there come the next natural wish:

A new nbInterface ID (17 for the next free) for getting back a ObjecttypeID:

Code: Select all
VAR Data         : PCHAR;
    MyObject     : STRING;
    MyObjectType : STRING;

BEGIN
  MyObject := 'MyWebbrowserName';
  SetStr( Data, MyObject );
  nbInterface( 17, Data );
  MyObjectType := StrPas( Data );
  FreeStr( Data );
END;


Would return '14'.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany


Return to NeoBook Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest