User forums > Nightly builds

The 22 April 2007 build will NOT be out.

<< < (2/2)

raph:
Well, that explains it  :(

@byo
Could you add a property to every widget called "Code after widget creation" or something like that, where the user can input code which is placed right after widget creation?
There are some cases when this is useful.
e.g. when you have a wxMenuItem FileSave, you could enter the code

--- Code: ---FileSave->SetBitmap(wxArtProvider::GetBitmap(wxArt_FILE_SAVE));
--- End code ---
The reason is, that setting a bitmap on WinXP doesn't seem to work after a wxMenuItem is appended to wxMenu.
This is just one case I found recently.

regards raph

byo:

--- Quote from: raph on April 23, 2007, 04:40:55 pm ---
Could you add a property to every widget called "Code after widget creation" or something like that, where the user can input code which is placed right after widget creation?
There are some cases when this is useful.
e.g. when you have a wxMenuItem FileSave, you could enter the code

--- Code: ---FileSave->SetBitmap(wxArtProvider::GetBitmap(wxArt_FILE_SAVE));
--- End code ---
The reason is, that setting a bitmap on WinXP doesn't seem to work after a wxMenuItem is appended to wxMenu.
This is just one case I found recently.

regards raph

--- End quote ---

Sounds interesting :) Of course for this particular case it would be better to add icon into wxMenu items (in development version, wxSmith may have many gaps like this one, but they should be removed before stable version is released). Modifying wxMenu would be much harder than the solution you provided :) And since it may have more advnatages than tuning wxMenu only, It will be added soon (maybe even today ;) ).

Regards

  BYO

Navigation

[0] Message Index

[*] Previous page

Go to full version