Add news resource ids to app ?

Add news resource ids to app ?

Postby ShumingWang » Tue Jan 16, 2007 3:19 am

Hi,
An app dialog linked with DLL ,could I add new resource ids at runtime ?
for example:

function main()

define dialog odlg resource "odlg"

redefine get cget1 id 101 of odlg
redefine button id 102 of odlg

activate dialog odlg on init (addnewids())

return

function addnewids()
redefine button id 103 of odlg
// id 103 does not exists in resource odlg
return



Best regrad!
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Tue Jan 16, 2007 3:35 am

Shuming,

function addnewids()
@ 2, 2 BUTTON "Another" of odlg
return
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ShumingWang » Tue Jan 16, 2007 7:12 am

Antonio,

Thanks!

Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Frank Demont » Tue Jan 16, 2007 12:30 pm

Hi,

Antonio , can objects from source be merged with objects from resources ?

Maybe a better aproach is to first redefine all objects from the dll , but then hide what not is needed

frank
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Tue Jan 16, 2007 2:10 pm

Frank,

> can objects from source be merged with objects from resources ?

viceversa: objects from resources with objects from source code
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests