=?us-ascii?Q?Re=3A=20newbie=20question=3A=20how=20to=20create=20variable?=

=?us-ascii?Q?Re=3A=20newbie=20question=3A=20how=20to=20create=20variable?=

Post by ?us-ascii? » Mon, 14 Aug 2006 14:35:43


> ------------ Podn?zpra ------------




None of this actually works quite well for me. I am using SWIG directors to embed ruby (and python, perl) into C# application trough C++ layer value actually wraps C++ object . InterpreterCallback actually extends c++ class and I am calling set_object() from C++ - set_object("editor", getEditor() ) - "editor" then can be used in the global namespace for scripting convenience:

editor.DrawGrid

I actually get it working with

def set_object(var, value)
eval("def #{var}; $#{var}; end; proc{|_v| $#{var} = _v}", TOPLEVEL_BINDING).call(value)
end

but it goes through global variable. I believe there is simpler way how to do this.
Kind regards,
Karel
 
 
 

1. =?us-ascii?Q?RE=3A=20=5BPHP=5D=20How=20to=20submit=20form=20via=20PHP?=

2. Re%3A%20How%20to%20clear%20just%20a%20small%20region%20to%20background%20color%3F


> You could use wxDC::DrawRectangle setting the pen to transparent and
use a solid brush with the color needed. If the region is not rectangular,
> use the wxDC::SetClippingRegion and draw a rectangle covering the
whole dc.

It's genarally enough to say wxDC::Clear(), after you have set the
ClippingRegion for your DC, you don't need to draw a rectangle or
something else
A convinient way is to use the wxDCClipper like this:

...
//create a new scope
{
*wxDCClipper* clipper(* dc, rect); //removes the clipping region
from the dc at destruction
dc.clear();
}
...

*


---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM

3. =?us-ascii?Q?Re=3A=20Use=20variable=20in=20regular=20expression?=

4. =?us-ascii?Q?Re=3A=20Combinate=202=20lists=20to=20a=20dict=20=3F?=

5. =?us-ascii?Q?Re=3A=20Reversing=20a=20string?=

6. =?us-ascii?Q?Re=3A=20GUI=20apps=20in=20Windows=20with=20native=20widgets=3F?=

7. =?us-ascii?Q?=5BUniface=2DL=5D=20Re=3A=20regarding=20perform=20statement?=

8. =?us-ascii?Q?Re=3A=20multiline=20regular=20expression=20=28replace=29?=

9. =?us-ascii?Q?Re=3A=20Getting=20original=20working=20directory?=

10. =?us-ascii?Q?=5BUniface=2DL=5D=20Re=3A=20Using=20ddl=20in=20stored=20proc=2Evia=20signature?=

11. =?us-ascii?Q?=5BPATCH=5D=20Re=3A=20READ=2DONLY=20mmap=20not=20present=20in=20core?=

12. =?us-ascii?Q?=5BUniface=2DL=5D=20Re=3A=20Using=20ddl=20in=20stored=20proc=2Evia=20signature=20?=

13. =?us-ascii?Q?AW=3A=20=5BUniface=2DL=5D=20Connectivity=20to=20Oracle=2010g=20to=20Uniface=208=20?=

14. =?utf-8?q?2=2e6=2e17=2drc6=3a=20Fails=20to=20compile=20on=20PowerBook?=

15. =?UTF-8?q?=5BRFC=5DDocumentation=3Aaccounting=3Agetdelays=2Ec=20Fix=3A=20warning=3A=20variable=20=E2=80=98i=E2=80=99=20set=20but=20not=20used?=