;Autor: neotoma Procedure.f Editor_GetZoomPct(Gadget) Protected wParam.l, hParam.l , result.l result.l = SendMessage_(GadgetID(Gadget),#EM_GETZOOM,@wParam, @hParam) If wParam=0 And hParam = 0 ProcedureReturn 100 EndIf ProcedureReturn (wParam/hParam *100) EndProcedure Procedure Editor_SetZoomPct(Gadget,zoom.l) Protected result.l result.l = SendMessage_(GadgetID(Gadget),#EM_SETZOOM,zoom,10) EndProcedure If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) EditorGadget(1,10,10,480,230,0) AddGadgetItem(1,-1,"Teststring",0,0) Editor_SetZoomPct(1,50) MessageRequester("","Zoom-Faktor: "+StrF(Editor_GetZoomPct(1),0)+" %",0) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf