> Font metrics is essential in IUP layout computation. The iup*_font.c > module is one of the most important driver module. Without > iupdrvFontGetStringWidth, iupdrvFontGetCharSize, > and iupdrvFontGetMultiLineStringSize IUP will simply not work. >
I'm going to have to think about this. Each control in Cocoa has its own bounding box and its own rules about what is allowed and not allowed. I'm assuming Iup is trying to generalize font metrics to compute all sizing mechanisms, but I'm not sure how well that is going to work. (One example I'm looking at is buttons. Buttons in Cocoa are a separate widget that also happens to draw its own text and thus does not use NSTextField and also has its own layout rules. And I notice that Iup assumes you can have multi-line buttons. Apple doesn't allow multi-line buttons and you can't directly change the height of a standard push button.) > The dialog layout is automatically calculated, you just have to implement > the drivers methods. I'm getting garbage values in my cocoaDialogLayoutUpdateMethod callback for ih->currentwidth and ih->currentheight: 49730x213987. I'm trying to understand how these got set. ------------------------------------------------------------------------------ _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users